mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-12-04 03:44:59 +00:00
d4306e90cb
Port the D64906 technique to EM_X86_64. Differential Revision: https://reviews.llvm.org/D67482 llvm-svn: 371958
18 lines
547 B
ArmAsm
18 lines
547 B
ArmAsm
// REQUIRES: x86
|
|
|
|
/// Synthesize __start_* and __stop_* even if there exists a definition in a DSO.
|
|
|
|
// RUN: echo '.globl __start_foo; __start_foo:' | llvm-mc -filetype=obj -triple=x86_64 - -o %t.o
|
|
// RUN: ld.lld -o %t.so -soname=so %t.o -shared
|
|
// RUN: llvm-mc -filetype=obj -triple=x86_64 %s -o %t2.o
|
|
// RUN: ld.lld -o %t %t2.o %t.so
|
|
// RUN: llvm-objdump -s -h %t | FileCheck %s
|
|
|
|
// CHECK: foo 00000000 0000000000201248
|
|
|
|
// CHECK: Contents of section .text:
|
|
// CHECK-NEXT: 201240 48122000 00000000
|
|
|
|
.quad __start_foo
|
|
.section foo,"ax"
|