[PATCH] strip, unstrip: Handle SHT_GROUP correctly.

2018-10-13 Thread Mark Wielaard
The usage of annobin in Fedora showed a couple of bugs when using eu-strip and eu-unstrip on ET_REL files that contain multiple group sections. When stripping we should not remove the SHF_GROUP flag from sections even if the group section itself might be removed. Either the section itself gets rem

[PATCH] readelf: Handle multiple .debug_macro sections and decode header flag.

2018-10-13 Thread Mark Wielaard
In object files there could be multiple .debug_macro sections. These are COMDAT sections used as imports. Note that the output for DW_MACRO_import isn't ideal since the offset is printed against the start of the .debug_macro section, but it doesn't show which one. We currently don't have that infor

Re: [PATCH] Handle ADD/SUB relocations

2018-10-13 Thread Mark Wielaard
Hi Andreas, On Tue, 2018-10-02 at 14:46 +0200, Andreas Schwab wrote: > This adds support for ADD and SUB relocations as seen on RISC-V. Sorry this took 2 weeks. I should have reviewed it immediately because it looks just perfect. I pushed it to master. Thanks, Mark