[PATCH] D101332: [llvm-obcopy] Keep ihex sections with same address
James Henderson via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Apr 27 02:04:04 PDT 2021
jhenderson added a reviewer: MaskRay.
jhenderson added a comment.
Thanks for the patch! I'm not particularly familiar with IHex myself. Others in the reviewing list might be able to help out better.
Could you post an example of the output before your change, and after, so that we can see the difference? Also, what happens to empty sections in GNU objcopy when they don't share a physical address with another section? Finally, can you explain why switching the ordering from an address-based ordering to an offset-based ordering is safe?
================
Comment at: llvm/tools/llvm-objcopy/ELF/Object.h:371
-class IHexWriter : public Writer {
- struct SectionCompare {
- bool operator()(const SectionBase *Lhs, const SectionBase *Rhs) const;
- };
+namespace internal {
+struct SectionCompare {
----------------
Any particular reason you've wrapped this function in a distinct namespace?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D101332/new/
https://reviews.llvm.org/D101332
More information about the llvm-commits
mailing list