This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: Providing C level symbols via linker scripts
- From: Mike Frysinger <vapier at gentoo dot org>
- To: binutils at sourceware dot org
- Cc: "Dave Korn" <dave dot korn at artimi dot com>, "'Will Newton'" <will dot newton at imgtec dot com>
- Date: Tue, 21 Mar 2006 13:50:57 -0500
- Subject: Re: Providing C level symbols via linker scripts
- Geoman: IS A RETARD
- References: <008e01c64cf8$3b4b2a60$a501a8c0@CAM.ARTIMI.COM>
On Tuesday 21 March 2006 10:00, Dave Korn wrote:
> 4. use some autoconf magic in uclibc so that it can know whether the
> C-level symbols have an extra underscore or are the same as the asm-level
> symbols according to the target, then use a macro (that either does or does
> not paste an extra underscore on the front of a label name accordingly) to
> wrap references in the C files to any of the assembler-level symbols that
> are needed.
uClibc is completely make based so using autoconf is pretty much out of the
question ... gcc exports the prefix already though via the
__USER_LABEL_PREFIX__ define and uClibc utilizes that when generating asm
symbol names ...
-mike