PR23611, objcopy is not removing executable relocatable sections

Michael Matz matz@suse.de
Tue Sep 11 16:43:00 GMT 2018


Hi,

On Tue, 11 Sep 2018, Alan Modra wrote:

> Incidentally, another wart is that not all relocation sections start 
> with ".rela." or ".rel.".  A section FOO has .relaFOO or .relFOO for 
> relocations.

As it should be.  The second '.' in ".rela.text" comes from ".text" not 
from ".rela.".  If $section is "FOO" the relocation section should be 
named .relaFOO, and if it's "%bar" it should be named ".rela%bar" 
(assuming '%' is a valid section name character of course :) ).  
Everything else introduces special cases (e.g. what if there's a "FOO" and 
a ".FOO" section, vs. if there's _only_ a ".FOO" section?).

> You might like to fix that, patch preapproved.

Ugh, please don't.


Ciao,
Michael.



More information about the Binutils mailing list