elf32-arm.c corrections

Daniel Jacobowitz drow@false.org
Sun Mar 20 19:45:00 GMT 2005


On Sun, Mar 20, 2005 at 10:26:12AM +0100, Peter S. Mazinger wrote:
> On Sat, 19 Mar 2005, Daniel Jacobowitz wrote:
> 
> > On Sun, Mar 20, 2005 at 02:15:24AM +0100, Peter S. Mazinger wrote:
> > > Hello!
> > > 
> > > add_dynamic_entry: changes !info->shared to info->executable (PIE)
> > > corrects typo, and syncs up with other archs (some others could do the 
> > > same). For !relocs the hole part would be omitted, probably some speed gain.
> > 
> > Um, why are disabling the setting of DT_TEXTREL for shared libraries?
> 
> The 1 line removal is because none of the archs has that.
> The i386 implementation has everything within if (relocs), the other 
> archs have it outside, but DT_TEXTREL is only valid for if (relocs), so we 
> would omit that part gaining some speed

Ah, not enough context in the diff.  Makes sense.

> > > Should the other patch (*3) for allocate_dynrelocs be applied (as done for 
> > > ppc32)?
> > 
> > Probably.
> 
> I am asking it, because no other arch has that, only ppc32, so there must 
> be some other solution to that as well.
> 
> > 
> > > Why is ELIMINATE_COPY_RELOCS not used for arm?
> > 
> > Because no one implemented it.
> 
> Would the implementation make the binaries smaller?

Not appreciably.

-- 
Daniel Jacobowitz
CodeSourcery, LLC



More information about the Binutils mailing list