blob: fb857e7f5849196fc8c28a7a0982039524f0ba2f [file] [log] [blame]
# REQUIRES: x86
# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %p/Inputs/synthetic-symbols.s -o %t
# RUN: ld.lld -o %t.exe --eh-frame-hdr --script %s %t
# RUN: llvm-objdump -t %t.exe | FileCheck %s
SECTIONS {
. = 0x201000;
.text : { *(.text) }
PROVIDE_HIDDEN(_begin_sec = ADDR(.text));
PROVIDE_HIDDEN(_end_sec = ADDR(.text) + SIZEOF(.text));
}
# CHECK: 0000000000201000 .text 00000000 .hidden _begin_sec
# CHECK-NEXT: 0000000000201001 .text 00000000 .hidden _end_sec