From 6abc2e58acf77abf9683fa1bd5cf12df829c0752 Mon Sep 17 00:00:00 2001 From: Kevin Enderby Date: Fri, 9 May 2014 23:57:49 +0000 Subject: Fix llvm-nm to print the full 64-bit address for symbols in 64-bit object files. The implementation might be better to have a method is64Bit() in the class SymbolicFile instead of having the static routine isSymbolList64Bit() in llvm-nm.cpp . But this is very much in the sprit of isObject() and getNMTypeChar() in llvm-nm.cpp that has a series of if else statements based on the specific class of the SymbolicFile. I can update this if folks would like. Also the tests were updated to be explicit about checking the address for 64-bits or 32-bits from object files. llvm-svn: 208463 --- llvm/test/Object/archive-symtab.test | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'llvm/test/Object/archive-symtab.test') diff --git a/llvm/test/Object/archive-symtab.test b/llvm/test/Object/archive-symtab.test index 6379504318a..88c9c989dcf 100644 --- a/llvm/test/Object/archive-symtab.test +++ b/llvm/test/Object/archive-symtab.test @@ -9,13 +9,13 @@ CHECK-NEXT: main in trivial-object-test2.elf-x86-64 CHECK-NOT: bar CHECK: trivial-object-test.elf-x86-64: -CHECK-NEXT: U SomeOtherFunction -CHECK-NEXT: 00000000 T main -CHECK-NEXT: U puts +CHECK-NEXT: U SomeOtherFunction +CHECK-NEXT: 0000000000000000 T main +CHECK-NEXT: U puts CHECK-NEXT: trivial-object-test2.elf-x86-64: -CHECK-NEXT: 00000000 t bar -CHECK-NEXT: 00000006 T foo -CHECK-NEXT: 00000016 T main +CHECK-NEXT: 0000000000000000 t bar +CHECK-NEXT: 0000000000000006 T foo +CHECK-NEXT: 0000000000000016 T main RUN: rm -f %t.a RUN: llvm-ar rcS %t.a %p/Inputs/trivial-object-test.elf-x86-64 %p/Inputs/trivial-object-test2.elf-x86-64 @@ -37,13 +37,13 @@ CORRUPT-NEXT: foo in trivial-object-test2.elf-x86-64 CORRUPT-NEXT: main in trivial-object-test2.elf-x86-64 CORRUPT: trivial-object-test.elf-x86-64: -CORRUPT-NEXT: U SomeOtherFunction -CORRUPT-NEXT: 00000000 T main -CORRUPT-NEXT: U puts +CORRUPT-NEXT: U SomeOtherFunction +CORRUPT-NEXT: 0000000000000000 T main +CORRUPT-NEXT: U puts CORRUPT-NEXT: trivial-object-test2.elf-x86-64: -CORRUPT-NEXT: 00000000 t bar -CORRUPT-NEXT: 00000006 T foo -CORRUPT-NEXT: 00000016 T main +CORRUPT-NEXT: 0000000000000000 t bar +CORRUPT-NEXT: 0000000000000006 T foo +CORRUPT-NEXT: 0000000000000016 T main check that the we *don't* update the symbol table. RUN: llvm-ar s %t.a -- cgit v1.2.3