1008 segfaults in genattr
H.J. Lu
hjl@lucon.org
Mon Nov 17 15:03:00 GMT 1997
> SVR4/386 has never supported generation of COFF binaries - it was ELF
> out of the gate and never looked back. Yes, it will execute many COFF
> binaries, but can't create them. GCC on SVR4/386 reflects this
> "ELF-only" statistic, so I think we can count on having a functional
> .fini section.
>
> > at all. BTW, by ".fini", I mean a section which will be called
> > by the system automatically upon exit and the only thing you
> > have to do is stick some stuff you want in it. If you need
> > to do more than that, it is not the ".fini" gcc wants.
>
> That is part of the ELF spec, and I'm pretty sure that Unixware
> does exactly what you're asking of it.
>
>
> The problem is that "config/svr4.h" #defines HAVE_ATEXIT and nothing
> in config/i386/sysv4.h #undefs it. This is why we see the potentially
> goofy double exit thing on systems that are SVR4-ish on x86, which
> would certainly include Unixware.
>
In that case, I don't think HAVE_ATEXIT is the problem. Please
send me crtbegin.s, crtend.s and __main.s.
BTW, Unixware should never include i386/sco5.h. If it does, nothing
will work. I can tell that from what's in i386/sco5.h.
H.J.
More information about the Gcc
mailing list