]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/ELF/linkerscript/parse-section-in-addr.test
Vendor import of lld trunk r338150:
[FreeBSD/FreeBSD.git] / test / ELF / linkerscript / parse-section-in-addr.test
1 # REQUIRES: x86
2 # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux /dev/null -o %t.o
3 # RUN: ld.lld -o %t.so --script %s %t.o -shared
4 # RUN: llvm-readelf -S %t.so | FileCheck %s
5
6 SECTIONS {
7  .foo-bar : AT(ADDR(.foo-bar)) { *(.text) }
8 }
9
10 # CHECK: .foo-bar