aboutsummaryrefslogtreecommitdiff
path: root/flang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorIgor Kudrin <ikudrin@accesssoftek.com>2021-08-12 17:12:09 +0700
committerIgor Kudrin <ikudrin@accesssoftek.com>2021-08-12 17:12:09 +0700
commit68616584c3a5ce9352b37d24e408b171928f6840 (patch)
tree9c7e37a0fe275a9d99bf209e2d0636bd80836a61 /flang/lib/Frontend/CompilerInvocation.cpp
parenta1ef81de35a4bac6d3b22e9d7186d880124d7a55 (diff)
downloadllvm-68616584c3a5ce9352b37d24e408b171928f6840.zip
llvm-68616584c3a5ce9352b37d24e408b171928f6840.tar.gz
llvm-68616584c3a5ce9352b37d24e408b171928f6840.tar.bz2
[llvm-objcopy][ELF] Avoid reordering section headers
As for now, llvm-objcopy sorts section headers according to the offsets of the sections in the input file. That can corrupt section references in the dynamic symbol table because it is a loadable section and as such is not updated by the tool. Even though the section references are not required for loading the binary correctly, they are still handy for a user who analyzes the file. While the patch removes global reordering of section headers, it layouts the sections in the same way as before, i.e. according to their original offsets. All that helps the output file to resemble the input better. Note that the patch removes sorting SHT_GROUP sections to the start of the list, which was introduced in D62620 in order to ensure that they come before the group members, along with the corresponding test. The original issue was caused by the sorting of section headers, so dropping the sorting also resolves the issue. Differential Revision: https://reviews.llvm.org/D107653
Diffstat (limited to 'flang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions