This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


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

RE: "atexit" linkage error (ARM, nostdlib, C++)



>-----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
**********************************************************************


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