Re: [uCsimm] m68k-pic32, adding _cleanup to libc

From: Erwin Authried (eauth@softsys.co.at)
Date: Fri Aug 31 2001 - 17:22:23 EDT


Joaquin Garay schrieb:

> >
> > Adding _cleanup() back into crt0.S will definitely not work. This function must
> > be at the end of your object files.
> > Look at http://home.at/uclinux/pic32/, or look into the archives, it has been
> > discussed many times.
> >
> > -Erwin
> >
>
> I know, this is exactly what I've done (excuse me if my explanation was
> not clear enough). So, you think that the errors I get are due to that?
> Do I have to add _cleanup() at the end of EVERY object of the program?
>
> PD: If you didn't see the errors I'm getting here they are again (sorry,
> i'm truly desperate)
>
> ------------------------------------------------------------------------
> Name: error
> error Type: Ohne Angabe (application/octet-stream)
> Encoding: base64

Simply create a file, e.g. cleanup.c, that contains only one line:
_cleanup(){}

Compile this file, and use it as your last object during linking:

m68k-pic-coff-gcc mod1.o .... modN.o cleanup.o ....

Regards,
Erwin

This message resent by the ucsimm@uclinux.com list server http://www.uClinux.com/



This archive was generated by hypermail 2b30 : Sun Apr 07 2002 - 00:01:44 EST