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]
Other format: [Raw text]

Re: Is the current ld brolen? (Re: ld is broken on Linux/alpha)


On Mon, Nov 26, 2001 at 12:26:18PM +0100, Jakub Jelinek wrote:
> 
> There are multiple things. One is that most of string2.h optimizations
> have to go for recent gcc versions, because gcc does a better job, second is
> I'd like to see why gcc does that poor job on strcpy small with -O2 -fPIC
> (while with -O2 alone it optimizes it fully).
> And the last thing is that I'm afraid following change is needed, because
> char *p = ".", *q = p + sizeof("."); while (--q > p) dosomething;
> needs to be supported IMHO and this wouldn't work (because "." + 2 would be
> considered as next string after "." which might be anywhere in the final
> .rodata section and not necessarily right after ".").
> This patch just doesn't keep SEC_MERGE local symbols in debugging section,
> where such problems don't exist (and it saves a lot of space).
> Ok to commit?

Yes.

I wonder.  Perhaps it might be safe to distinguish between .Lxx+num
and .Lxx, simplifying to the section sym in the latter case.

Alan


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