llvm.org GIT mirror llvm / 95aa960
Revert r209235 as it broke two tests: Failing Tests (2): LLVM :: ExecutionEngine/MCJIT/stubs-sm-pic.ll LLVM :: ExecutionEngine/MCJIT/stubs.ll git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@209236 91177308-0d34-0410-b5e6-96231b3b80d8 Kevin Enderby 6 years ago
3 changed file(s) with 7 addition(s) and 15 deletion(s). Raw diff Collapse all Expand all
471471 uint64_t &Res) const {
472472 if (is64Bit()) {
473473 MachO::nlist_64 Entry = getSymbol64TableEntry(Symb);
474 if ((Entry.n_type & MachO::N_TYPE) == MachO::N_UNDF &&
475 Entry.n_value == 0)
476 Res = UnknownAddressOrSize;
477 else
478 Res = Entry.n_value;
474 Res = Entry.n_value;
479475 } else {
480476 MachO::nlist Entry = getSymbolTableEntry(Symb);
481 if ((Entry.n_type & MachO::N_TYPE) == MachO::N_UNDF &&
482 Entry.n_value == 0)
483 Res = UnknownAddressOrSize;
484 else
485 Res = Entry.n_value;
477 Res = Entry.n_value;
486478 }
487479 return object_error::success;
488480 }
5454 ABSOLUTE-ELF64: 0000000000000123 a a1
5555 ABSOLUTE-ELF64: 0000000000000123 A a2
5656
57 macho: U _SomeOtherFunction
57 macho: 00000000 U _SomeOtherFunction
5858 macho: 00000000 T _main
59 macho: U _puts
59 macho: 00000000 U _puts
6060
6161 macho64: 0000000000000028 s L_.str
62 macho64: U _SomeOtherFunction
62 macho64: 0000000000000000 U _SomeOtherFunction
6363 macho64: 0000000000000000 T _main
64 macho64: U _puts
64 macho64: 0000000000000000 U _puts
6565
6666
6767 Test that nm uses addresses even with ELF .o files.
1212 CHECK-AR: 000000000000003b s L_.str
1313 CHECK-AR: 0000000000000000 T _main
1414 CHECK-AR: 0000000000000080 S _main.eh
15 CHECK-AR: U _printf
15 CHECK-AR: 0000000000000000 U _printf
1616 CHECK-AR: macho-universal-archive.x86_64.i386:i386:foo.o:
1717 CHECK-AR: 00000008 S _bar
1818 CHECK-AR: 00000000 T _foo