]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/ELF/startstop-shared2.s
Vendor import of lld trunk r290819:
[FreeBSD/FreeBSD.git] / test / ELF / startstop-shared2.s
1 // REQUIRES: x86
2 // RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %p/Inputs/startstop-shared2.s -o %t.o
3 // RUN: ld.lld -o %t.so %t.o -shared
4 // RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t2.o
5 // RUN: ld.lld -o %t %t2.o %t.so
6 // RUN: llvm-objdump -s -h %t | FileCheck %s
7
8 // CHECK: foo           00000000 0000000000201008
9
10 // CHECK: Contents of section .text:
11 // CHECK-NEXT: 201000 08102000 00000000
12
13 .quad __start_foo
14 .section foo,"ax"