public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] Doubts regarding atexit()
@ 2015-02-26 13:42 Richard Rauch
  0 siblings, 0 replies; only message in thread
From: Richard Rauch @ 2015-02-26 13:42 UTC (permalink / raw)
  To: ecos-discuss

Hello,

I have doubts/questions regarding atexit().

Actually eCos comes with an own atexit handler within ISO C library support.

But I am not sure, if this implementation is really linked instead of standard gcc implementation.

I tested with a gnu toolchain, which has no atexit implementation in his libgcc.a library.

When I am generating eCos and the eCos tests, I get the linker error messages:

... /lib\extras.o: In function `__static_initialization_and_destruction_0':
... /ecos/packages/io/fileio/current/src/misc.cxx:103: undefined reference to `__aeabi_atexit'

My linker options already includes "-nostdlib", bit this seems not to be sufficient for atexit issue.

When I add compiler option "-fno-use-cxa-atexit", everything will be generated.

Who could explain, how this works in detail. Seems there are different definitions of atexit in libraries and in eCos. How I can ensure, that the right one is used.
A further question: the compiler or linker is replacing somehow the atexit calls with calls to __aeabi_atexit. How this is working.

Many Thanks

Richard



--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2015-02-26 13:42 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-02-26 13:42 [ECOS] Doubts regarding atexit() Richard Rauch

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).