Constructor order help (related to PR 6482)

Kean Johnston jkj@sco.com
Fri Apr 11 08:16:00 GMT 2003


> How much time can you put into this?  There are a whole
> sequence of cleanups I'd like to see in this area.  If
> I give you direction can you implement them?
My evenings are my own and unencumbered :) Point me at stuff.
What I cant do or don't understand I'll tell you as soon as
I know which of those two conditions hold true. I think I
need to get access to a Linux box so I can play with glibc
2.3 though. Currently I only have OSR5 and UW713 handy.

> > yup sco5.h now used elfos.h
> 
> Excellent.  Any chance I can get you to kill all the 
> COFF cruft?

*LONG* gone :) I will drag openserver kicking and screaming
into the early 90's if it kills me :)

Oh and by the way, I discovered something about our implementation
of DT_INIT_ARRAY. It is, IMHO, broken. As things currently stand
this only works for shared libraries. Surprisingly enough, the
same goes for the .init section. Colour me dumbfounded. I have a
question in to our local compiler folks, one of whom is very
VERY standards-aware, and he's the one who usually drives the
implementation so I am sure there must be some reason why its
that way, but then again, it may just be a bug. Also although the
RTLD and link editor support it, the assembler didn't. It wasn't
setting the correct section attributes. But that's fixed now too.
However GAS kinda does the right thing but there's an interesting
bit of chicanery in gas/config/obj-elf.c relating to this. They
were working around an old GCC bug and I think we may want to
persuade the binutils folks to reverse the #if 0 comment in that
file.

Kean



More information about the Gcc mailing list