This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
RE: "atexit" linkage error (ARM, nostdlib, C++)
- To: 'Andreas Bürgel' <ab at genologic dot de>, binutils at sources dot redhat dot com
- Subject: RE: "atexit" linkage error (ARM, nostdlib, C++)
- From: David Korn <dkorn at pixelpower dot com>
- Date: Thu, 15 Mar 2001 10:57:01 -0000
>-----Original Message-----
>From: Andreas Bürgel [mailto:ab@genologic.de]
>Sent: 15 March 2001 10:40
>I'm linking with "-nostdlib" and a matching linker-script which with
>"GROUP (libgcc.a)". When linking, I get following message
>
> play.cxx done ...
> PIOClass.cxx done ...
>
>/tools/H-i686-pc-linux-gnu/lib/gcc-lib/arm-elf/2.95.2/libgcc.a(
>__main.o):
>In function `__do_global_ctors':
>__main.o(.text+0xbc): undefined reference to `atexit'
>__main.o(.text+0xbc): relocation truncated to fit: R_ARM_PC24 atexit
>collect2: ld returned 1 exit status
>make: *** [link] Error 1
>
>So I'm a little bit confused, what's missing?
atexit generally lives in libc (or newlib), not libgcc, IIRC.
DaveK
--
All your base are belong to us!
**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.
www.mimesweeper.com
**********************************************************************