Skip to content

feat: Support --pack-dynamic-relocs=relr#1804

Merged
mati865 merged 1 commit intowild-linker:mainfrom
mati865:push-tqmtyzmmnnsq
Apr 4, 2026
Merged

feat: Support --pack-dynamic-relocs=relr#1804
mati865 merged 1 commit intowild-linker:mainfrom
mati865:push-tqmtyzmmnnsq

Conversation

@mati865
Copy link
Copy Markdown
Member

@mati865 mati865 commented Apr 4, 2026

Initially I thought --pack-dynamic-relocs=relr would be handled the same way as -z pack-relative-relocs, but this is not how LLD implemented that.
As shown by the tests, disabling one of them doesn't have any effect on the other option, and when either is enabled RELR will be used.

LLD also supports android and android+relr. They enable packing (IMO this is more a compression) of rela.dyn entries (both absolute and relative) as described in https://android.googlesource.com/platform/bionic/+/f5e0ba94d911ef2622ecfd3f7fabc4432a4806d3/tools/relocation_packer/README.TXT. I believe implementing them is not worth additional complexity, at least for now.

@mati865 mati865 changed the title feat: support --pack-dynamic-relocs=relr feat: Support --pack-dynamic-relocs=relr Apr 4, 2026
@mati865 mati865 merged commit 8708f55 into wild-linker:main Apr 4, 2026
24 checks passed
@mati865 mati865 deleted the push-tqmtyzmmnnsq branch April 4, 2026 21:23
@agrieve
Copy link
Copy Markdown

agrieve commented Apr 5, 2026

+1. I think the older and more complicated packed relocations format is unlikely to ever be used again, and there would be no value in adding support.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

wild: error: unrecognized option(s): --use-android-relr-tags, --pack-dyn-relocs=relr

3 participants