1# REQUIRES: x86
2# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %p/Inputs/synthetic-symbols.s -o %t.o
3# RUN: ld.lld -o %t --eh-frame-hdr --script %s %t.o
4# RUN: llvm-objdump -t %t | FileCheck %s
5
6SECTIONS {
7  . = 0x201000;
8  .text : { *(.text) }
9  PROVIDE_HIDDEN(_begin_sec = ADDR(.text));
10  PROVIDE_HIDDEN(_end_sec = ADDR(.text) + SIZEOF(.text));
11}
12
13# CHECK:       0000000000201054         .text     00000000 .hidden _begin_sec
14# CHECK-NEXT:  0000000000201055         .text     00000000 .hidden _end_sec
15