brk_addr in sysdeps/unix/sysv/linux/hppa/brk.c

Andreas Jaeger aj@suse.de
Thu Nov 22 01:40:00 GMT 2001


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



More information about the Libc-alpha mailing list