18 lines · plain
1// REQUIRES: x862 3/// Synthesize __start_* and __stop_* even if there exists a definition in a DSO.4 5// RUN: echo '.globl __start_foo; __start_foo:' | llvm-mc -filetype=obj -triple=x86_64 - -o %t.o6// RUN: ld.lld -o %t.so -soname=so %t.o -shared7// RUN: llvm-mc -filetype=obj -triple=x86_64 %s -o %t2.o8// RUN: ld.lld -o %t %t2.o %t.so9// RUN: llvm-objdump -s -h %t | FileCheck %s10 11// CHECK: foo 00000000 000000000020124812 13// CHECK: Contents of section .text:14// CHECK-NEXT: 201240 48122000 0000000015 16.quad __start_foo17.section foo,"ax"18