12 lines · plain
1# REQUIRES: x862# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %p/Inputs/synthetic-symbols.s -o %t3# RUN: ld.lld -o %t.exe --eh-frame-hdr --script %s %t4# RUN: llvm-objdump -t %t.exe | FileCheck %s5 6# Check that we can specify synthetic symbols without defining SECTIONS.7PROVIDE_HIDDEN(_begin_sec = _start);8PROVIDE_HIDDEN(_end_sec = ADDR(.text) + SIZEOF(.text));9 10# CHECK: 00000000002011ac l .text 0000000000000000 .hidden _begin_sec11# CHECK-NEXT: 00000000002011ad l .text 0000000000000000 .hidden _end_sec12