[PATCH] D79664: [ELF] Support --pack-dyn-relocs=rel+relr
George Rimar via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue May 12 06:24:51 PDT 2020
grimar added inline comments.
================
Comment at: lld/ELF/Driver.cpp:743
- return {false, true};
+ return {false, true, false};
+ // Note there is no plain "rel" option here since rela->rel rewriting is
+ // motivated by space savings and relr is the biggest win for that, so "rel"
+ // alone is more likely to be a typo for "relr" than an intentional selection
+ // of rela->rel without relr.
+ if (s == "rel+relr")
+ return {false, true, true};
if (s == "android+relr")
- return {true, true};
----------------
arichardson wrote:
> grimar wrote:
> > aside: I wonder why we support "android+relr", but not "android,relr". The latter form looks more natural to me.
> I agree. How about allowing comma-separated list where the order does not matter?
It would look better to me.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D79664/new/
https://reviews.llvm.org/D79664
More information about the llvm-commits
mailing list