replace strings in ELF .rodata sections #1344
Open
+469
−0
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.
With
tool/build/renamestr
(or an equivalent feature), I hope to avoid the/zip
folder when building binaries with https://github.com/ahgamut/superconfigure. Most of the folder locations involving/zip
are stored in the.rodata
section of the ELF binary, and/zip
is more useful for the APE than the debug ELF binaries.The current build process on
superconfigure
involves:/zip
folder using sudoterminfo
entries, SSL certs) is copied to/zip
/zip
folder (or crash)With this PR, the build process hopefully becomes:
/zip
folder with sudo$LOCATION/superconfigure/cosmos/$ARCH/$SUBFOLDER
)renamestr
on the ELF binary to replace$LOCATION/superconfigure/cosmos/$ARCH/
to/zip
, before runningapelink
Perhaps this feature can be part of
apelink
itself (the structure and some code ofrenamestr
is copied fromapelink
), but I wrote a separate tool in a draft PR, for an initial exploration.