This is the mail archive of the mailing list for the GCC project.

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

Re: sh-coff broken

On Sep 14, 2000, Richard Henderson <> wrote:

> On Thu, Sep 14, 2000 at 11:46:23AM -0300, Alexandre Oliva wrote:
>> That would be in ld/scripttempl/  However, after several
>> attempts, I couldn't find out a simple way for GCC's crtstuff.c to
>> interact with the crt[1in].asm files on COFF the way it does on ELF.

> Really?  I used to do exactly this on m68k-apple-aux,
> which used coff.  And I didn't even do anything weird.

The problem is that crtstuff generates, in the `.init' section, when
not !defined(OBJECT_FORMAT_ELF), a function prologue in crtbegin.o and
an epilogue in crtend.o, which duplicate crti.o and crtn.o.  Also, it
doesn't define `_init' and `_fini' symbols, as expected by crt1.asm.
Also, it apparently wouldn't generate a `.fini' section.

I tested several combinations, and ended up deciding to revert the
patch for COFF.  I might give it another try further down the road.

Alexandre Oliva   Enjoy Guarana', see
Red Hat GCC Developer                  aoliva@{,}
CS PhD student at IC-Unicamp        oliva@{,}
Free Software Evangelist    *Please* write to mailing lists, not to me

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