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