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

build/elf: handle SHT_RELR sections #744

Open fg-scontain opened 1 week ago

fg-scontain commented 1 week ago

Hi, I was using the elf builder with a binary from alpine 3.20. Apparently, that binary uses relative relocations (https://github.com/gimli-rs/object/issues/722). The following changes made the builder accept the binary.

philipc commented 6 days ago

I think it's best to add full support for SHT_RELR to the crate instead of trying to do a minimal patch for the build/elf. I've started working on this.