boulder/data: Add LLVM CREL tuning flags - #862
Open
joebonrichie wants to merge 1 commit into
Open
Conversation
https://maskray.me/blog/2024-03-09-a-compact-relocation-format-for-elf Reduces the size of .o/.a files. Currently, final executables are unaffected as LLD consumes the crel symbols until support for DT_CREL is added to ABI and GNU toolchain The primary benefit is reducing size on disk for cached builds Be aware that ld.bfd cannot handle CREL static .a files. A simple lzip build: CREL disabled: 308K arg_parser.o 176K decoder.o 140K encoder_base.o 224K encoder.o 132K fast_encoder.o 112K list.o 248K lzip_index.o 608K main.o CREL enabled: 264K arg_parser.o 152K decoder.o 120K encoder_base.o 196K encoder.o 116K fast_encoder.o 92K list.o 212K lzip_index.o 520K main.o
Member
|
This is wild. Sorry I missed it. Could we link the toolchain commits/PRs to this PR so we know when it makes sense to begin testing with it against glibc/binutils/llvm packages which support CREL? |
Contributor
Author
|
Waiting on ABI changes to be accepted: https://groups.google.com/g/generic-abi/c/ppkaxtLb0P0 There seems to be not much discussion on the GNU side unfortunately glibc: https://sourceware.org/bugzilla/show_bug.cgi?format=multiple&id=31541 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
https://maskray.me/blog/2024-03-09-a-compact-relocation-format-for-elf
Reduces the size of .o/.a files.
Currently, final executables are unaffected as LLD consumes the crel symbols until support for DT_CREL is added to ABI and GNU toolchain
The primary benefit is reducing size on disk for cached builds
Be aware that ld.bfd cannot handle CREL static .a files.
A simple lzip build:
CREL disabled:
308K arg_parser.o
176K decoder.o
140K encoder_base.o
224K encoder.o
132K fast_encoder.o
112K list.o
248K lzip_index.o
608K main.o
CREL enabled:
264K arg_parser.o
152K decoder.o
120K encoder_base.o
196K encoder.o
116K fast_encoder.o
92K list.o
212K lzip_index.o
520K main.o