diff options
Diffstat (limited to 'test/ELF/wrap-entry.s')
-rw-r--r-- | test/ELF/wrap-entry.s | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/ELF/wrap-entry.s b/test/ELF/wrap-entry.s new file mode 100644 index 000000000000..c746b8e6d118 --- /dev/null +++ b/test/ELF/wrap-entry.s @@ -0,0 +1,13 @@ +// REQUIRES: x86 +// RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o + +// RUN: ld.lld -o %t.exe %t.o -wrap=_start +// RUN: llvm-readobj -file-headers %t.exe | FileCheck %s + +// CHECK: Entry: 0x201001 + +.global _start, __wrap__start +_start: + nop +__wrap__start: + nop |