This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: PR23611, objcopy is not removing executable relocatable sections


Hi,

On Wed, 12 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 :) ).  
> 
> We are in agreement up to this point.
> 
> > 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.
> 
> At the moment "objcopy -R .relaFOO -R .relFOO" doesn't remove
> relocations for section "FOO" in a relocatable object file.  Why
> shouldn't we make that work?

Oh we should, I didn't get that _that's_ the wart you meant (I thought 
you meant that not all reloc sections are called .rela.$name is the wart).


Ciao,
Michael.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]