This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: brk_addr in sysdeps/unix/sysv/linux/hppa/brk.c
- From: Andreas Jaeger <aj at suse dot de>
- To: libc-alpha at sources dot redhat dot com
- Date: Mon, 26 Nov 2001 09:37:51 +0100
- Subject: Re: brk_addr in sysdeps/unix/sysv/linux/hppa/brk.c
- References: <hoelmrdnpl.fsf@gee.suse.de>
Andreas Jaeger <aj@suse.de> writes:
> Hi HPPA folks,
>
> there's currently in sysdeps/unix/sysv/linux/hppa/brk.c:
> /* Old braindamage in GCC's crtstuff.c requires this symbol in an attempt
> to work around different old braindamage in the old Linux ELF dynamic
> linker. */
> weak_alias (__curbrk, ___brk_addr)
>
> A grep through gcc shows that __brk_addr is only used for
> i386/linux.h on libc5 systems:
>
> #if defined(__PIC__) && defined (USE_GNULIBC_1)
> /* This is a kludge. The i386 GNU/Linux dynamic linker needs ___brk_addr,
> __environ and atexit (). We have to make sure they are in the .dynsym
> section. We accomplish it by making a dummy call here. This
> code is never reached. */
>
> Do you really need this symbol? IMO it can be removed.
I've committed this now after looking again at GCC.
Andreas
--
Andreas Jaeger
SuSE Labs aj@suse.de
private aj@arthur.inka.de
http://www.suse.de/~aj