[PATCH] D48247: lld: add experimental support for SHT_RELR sections.
Rahul Chaudhry via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 15 16:27:49 PDT 2018
rahulchaudhry added a comment.
This patch depends on https://reviews.llvm.org/D47919
I'm still working on adding some unit tests, but I thought I'd send this in for now in case there is any high level feedback on the overall approach.
I've tested this by linking chrome (for amd64 and arm) with '-pie --pack-dyn-relocs=relr'.
For amd64, chrome binary size goes down from 163M to 148M.
For arm, chrome binary size goes down from 101M to 96M.
Installed the generated binaries on both amd64 and arm chromebooks.
The chromebooks boot fine. Played with the browser a little bit. Everything looks ok.
(Support for SHT_RELR is already present in glibc dynamic loader in Chrome OS).
Repository:
rLLD LLVM Linker
https://reviews.llvm.org/D48247
More information about the llvm-commits
mailing list