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: Allocate a spare PT_NULL header for dynamic MIPS objects


On Fri, Oct 20, 2006 at 07:51:12AM +0100, Richard Sandiford wrote:
> "H. J. Lu" <hjl@lucon.org> writes:
> > On Thu, Oct 19, 2006 at 10:47:07PM +0100, Thiemo Seufer wrote:
> >> Eric Christopher wrote:
> >> > >
> >> > >Tested on mips{,64}{,el}-{elf,linux-gnu} and mips-sgi-irix6.5.
> >> > >OK to install?
> >> > >
> >> > 
> >> > OK.
> >> 
> >> Also ok with me.
> >
> > FWIW, I believe strip will remove PT_NULL header. I think a new
> > PT_XXX should be used here.
> 
> Thanks for the heads-up.  I couldn't convince either strip or objcopy
> to remove the header.  Where do you think this would take place?
> 
> However, even if the tools do strip PT_NULL, that shouldn't really be an
> issue.  As long as the room is there, the prelinker can use it.  (Like I
> say, the original 2.17 version of this patch didn't add any PT_* header;
> it just reserved room for one.  If strip does what you say, it will just
> returns us to that situation.)
> 

I was wrong since you always added PT_NULL back.


H.J.


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