This is the mail archive of the binutils@sources.redhat.com 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]

Re: DT_TEXTREL


On Wed, May 16, 2001 at 04:49:22PM +0200, Hans-Peter Nilsson wrote:
> > From: amodra@one.net.au
> > Date: Wed, 16 May 2001 21:46:33 +0930
> 
> > Here's one way to fix the problem.  If no one can think of anything
> > better, I'll commit it tomorrow.
> 
> One alternative is that you could avoid setting SEC_READONLY at
> all in wild_doit, and instead iterate over sections in
> ldlang.c:lang_check while iterating over inputs and set it
> there; it's called at a later point.  Not tested, though; one
> caveat is that the SEC_READONLY flag might be used before
> lang_check is called.  Heh, lang_check is my hammer and every
> bug looks like a nail. :-)

It might even be possible to use the existing linker_mark flag.
At the time, it seemed easier, and cleaner, to add a new flag than
to check all uses of the existing flag.  Your suggestion has the
same problem, ie. time taken to verify that it's OK.

> 
> > Index: bfd/section.c
> > +.  {* Anpther mark flag used by some of the linker backends.  Set for
>            ^ p and o sit just too close.

Thanks.  I must get back into the habit of scrutinizing my own diffs
as if they were from joe_random_luser.  :-)

Alan.


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