1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 19:23:23 +01:00
llvm-mirror/tools/llvm-objdump
James Henderson ec45a0d60a [llvm-objdump] Fix unstable disassembly output for sections with same address
When two sections shared the same address, the disassembly code was
using pointer values when sorting (see the SectionRef less than
operator). Since those values aren't guaranteed to have a specific
order, this meant the disassembly code would sometimes change which
section to pick when finding symbols targeted by calls in fully linked
objects.

This change fixes the non-determinism, so that the same section is
always picked. This might have a negative impact in that now a section
without any symbol might be picked over a section with symbols, but this
will be addressed in a later commit.

Fixes https://bugs.llvm.org/show_bug.cgi?id=45411.

Reviewed by: grimar, MaskRay

Differential Revision: https://reviews.llvm.org/D77640
2020-04-08 10:57:12 +01:00
..
CMakeLists.txt [llvm-objdump][XCOFF][AIX] Implement -r option 2020-03-27 16:05:42 +00:00
COFFDump.cpp [llvm-objdump][COFF][NFC] Split format-specific interfaces; add namespace 2020-04-02 18:42:13 -04:00
COFFDump.h [llvm-objdump][COFF][NFC] Split format-specific interfaces; add namespace 2020-04-02 18:42:13 -04:00
ELFDump.cpp [llvm-objdump][NFC] Declare command-line externs in headers with namespace 2020-04-06 16:58:01 -04:00
llvm-objdump.cpp [llvm-objdump] Fix unstable disassembly output for sections with same address 2020-04-08 10:57:12 +01:00
llvm-objdump.h [llvm-objdump][NFC] Declare command-line externs in headers with namespace 2020-04-06 16:58:01 -04:00
LLVMBuild.txt
MachODump.cpp [llvm-objdump][NFC] Declare command-line externs in headers with namespace 2020-04-06 16:58:01 -04:00
MachODump.h [llvm-objdump][NFC] Declare command-line externs in headers with namespace 2020-04-06 16:58:01 -04:00
WasmDump.cpp
XCOFFDump.cpp [llvm-objdump][XCOFF] Use symbol index+symbol name + storage mapping class as label for -D 2020-04-06 10:10:10 -04:00
XCOFFDump.h [llvm-objdump] Fix case of -Wmismatched-tags 2020-04-06 09:59:08 -06:00