blob: 39e20e1468b7fe2e402a7863fb6a49bf7c87b7f7 [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
# Check that we can specify synthetic symbols without defining SECTIONS.
PROVIDE_HIDDEN(_begin_sec = _start);
PROVIDE_HIDDEN(_end_sec = ADDR(.text) + SIZEOF(.text));
# CHECK: 00000000002011ac .text 00000000 .hidden _begin_sec
# CHECK-NEXT: 00000000002011ad .text 00000000 .hidden _end_sec