gimli-rs / object

A unified interface for reading and writing object file formats
https://docs.rs/object/
Apache License 2.0
673 stars 156 forks source link

Support ELF .relr relocations #722

Open bjorn3 opened 3 months ago

bjorn3 commented 3 months ago

https://maskray.me/blog/2021-10-31-relative-relocations-and-relr has an explanation of the format.

philipc commented 3 months ago

Is there anything in particular you want to be able to use this to do?

bjorn3 commented 3 months ago

At the very least I would like reader support for .relr relocations. Arch Linux started using them 6 months ago: https://gitlab.archlinux.org/archlinux/packaging/packages/pacman/-/merge_requests/6 As did Fedora: https://src.fedoraproject.org/rpms/redhat-rpm-config/c/5fca01a Without .relr support in object, this would mean every user of object that wants to read all relocations in executables would miss a ton of relocations in executables compiled by Fedora and Arch.