]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/ELF/linkerscript/synthetic-symbols3.test
Vendor import of lld trunk r338150:
[FreeBSD/FreeBSD.git] / test / ELF / linkerscript / synthetic-symbols3.test
1 # REQUIRES: x86
2 # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %p/Inputs/synthetic-symbols.s -o %t
3 # RUN: ld.lld -o %t.exe --eh-frame-hdr --script %s %t
4 # RUN: llvm-objdump -t %t.exe | FileCheck %s
5
6 # Check that we can specify synthetic symbols without defining SECTIONS.
7 PROVIDE_HIDDEN(_begin_sec = _start);
8 PROVIDE_HIDDEN(_end_sec = ADDR(.text) + SIZEOF(.text));
9
10 # CHECK:       0000000000201000         .text     00000000 .hidden _begin_sec
11 # CHECK-NEXT:  0000000000201001         .text     00000000 .hidden _end_sec