diff options
author | Fangrui Song <maskray@google.com> | 2019-05-20 15:25:01 +0000 |
---|---|---|
committer | Fangrui Song <maskray@google.com> | 2019-05-20 15:25:01 +0000 |
commit | 055906e1e50ddc35d6c8cdccab48ed83e93b47eb (patch) | |
tree | 3979652536adaef7ea39a107fbc33f57e3c274f9 /llvm/tools/llvm-readobj/llvm-readobj.cpp | |
parent | 1e593f342f00433c491c1f6db9dfe600a15ab2e8 (diff) | |
download | llvm-055906e1e50ddc35d6c8cdccab48ed83e93b47eb.zip llvm-055906e1e50ddc35d6c8cdccab48ed83e93b47eb.tar.gz llvm-055906e1e50ddc35d6c8cdccab48ed83e93b47eb.tar.bz2 |
[ELF] -z combreloc: sort dynamic relocations by (!is_relative,symbol_index,r_offset)
We currently sort dynamic relocations by (!is_relative,symbol_index).
Add r_offset as the third key. This makes `readelf -r` debugging easier
(relocations to the same symbol are ordered by r_offset).
Refactor the test combreloc.s (renamed from combrelocs.s) to check
R_X86_64_RELATIVE, and delete --expand-relocs.
The difference from the reverted D61477 is that we keep !is_relative as
the first key. In local dynamic TLS model, DTPMOD (e.g.
R_ARM_TLS_DTPMOD32 R_X86_64_DTPMOD and R_PPC{,64}_DTPMOD) may use 0 as
the symbol index.
Reviewed By: grimar
Differential Revision: https://reviews.llvm.org/D62141
llvm-svn: 361164
Diffstat (limited to 'llvm/tools/llvm-readobj/llvm-readobj.cpp')
0 files changed, 0 insertions, 0 deletions