Add a test for printing absolute symbols in ELF.
authorRafael Espindola <rafael.espindola@gmail.com>
Wed, 5 Feb 2014 04:36:47 +0000 (04:36 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Wed, 5 Feb 2014 04:36:47 +0000 (04:36 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@200818 91177308-0d34-0410-b5e6-96231b3b80d8

test/Object/Inputs/absolute.elf-x86-64 [new file with mode: 0644]
test/Object/nm-trivial-object.test

diff --git a/test/Object/Inputs/absolute.elf-x86-64 b/test/Object/Inputs/absolute.elf-x86-64
new file mode 100644 (file)
index 0000000..863ab58
Binary files /dev/null and b/test/Object/Inputs/absolute.elf-x86-64 differ
index c2d2ebb14b54a11ce0841933a66805a04d71b376..631e821134f357d501f38eb1c13efe3dd52e12f5 100644 (file)
@@ -8,6 +8,8 @@ RUN: llvm-nm %p/Inputs/trivial-object-test.elf-x86-64 \
 RUN:         | FileCheck %s -check-prefix ELF
 RUN: llvm-nm %p/Inputs/weak.elf-x86-64 \
 RUN:         | FileCheck %s -check-prefix WEAK-ELF
+RUN: llvm-nm %p/Inputs/absolute.elf-x86-64 \
+RUN:         | FileCheck %s -check-prefix ABSOLUTE-ELF
 RUN: llvm-nm %p/Inputs/trivial-object-test.macho-i386 \
 RUN:         | FileCheck %s -check-prefix macho
 RUN: llvm-nm %p/Inputs/trivial-object-test.macho-x86-64 \
@@ -41,6 +43,9 @@ WEAK-ELF: 00000000 W f2
 WEAK-ELF:          v x1
 WEAK-ELF: 00000000 V x2
 
+ABSOLUTE-ELF: 00000123 a a1
+ABSOLUTE-ELF: 00000123 A a2
+
 macho: 00000000 U _SomeOtherFunction
 macho: 00000000 T _main
 macho: 00000000 U _puts