xref: /llvm-project/lld/test/ELF/linkerscript/synthetic-symbols4.test (revision f9a0056016fb89c84b5663642d0c836430a3ad87)
1# REQUIRES: x86
2# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %p/Inputs/synthetic-symbols.s -o %t.o
3# RUN: ld.lld -o %t --eh-frame-hdr --script %s %t.o
4# RUN: llvm-objdump -t %t | FileCheck %s
5
6SECTIONS {
7  . = 0x201000;
8  .text : { *(.text) }
9  PROVIDE_HIDDEN(_begin_sec = ADDR(.text));
10  PROVIDE_HIDDEN(_end_sec = ADDR(.text) + SIZEOF(.text));
11}
12
13# CHECK:       0000000000201054 l       .text  0000000000000000 .hidden _begin_sec
14# CHECK-NEXT:  0000000000201055 l       .text  0000000000000000 .hidden _end_sec
15