diff options
Diffstat (limited to 'test/old-elf/X86_64/defsym.test')
-rw-r--r-- | test/old-elf/X86_64/defsym.test | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/test/old-elf/X86_64/defsym.test b/test/old-elf/X86_64/defsym.test new file mode 100644 index 000000000000..d98abf39d428 --- /dev/null +++ b/test/old-elf/X86_64/defsym.test @@ -0,0 +1,22 @@ +RUN: lld -flavor old-gnu -target x86_64 --defsym=main=fn --noinhibit-exec \ +RUN: %p/Inputs/fn.o -o %t +RUN: llvm-readobj -symbols %t | FileCheck %s + +CHECK: Symbol { +CHECK: Name: main (1) +CHECK: Value: 0x4001E0 +CHECK: Size: 0 +CHECK: Binding: Global (0x1) +CHECK: Type: Function (0x2) +CHECK: Other: 0 +CHECK: Section: .text (0x5) +CHECK: } +CHECK: Symbol { +CHECK: Name: fn (6) +CHECK: Value: 0x4001E0 +CHECK: Size: 6 +CHECK: Binding: Global (0x1) +CHECK: Type: Function (0x2) +CHECK: Other: 0 +CHECK: Section: .text (0x5) +CHECK: } |