Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 1 Feb 1997 12:28:40 -0800 (PST)
From:      John Polstra <jdp>
To:        CVS-committers, cvs-all, cvs-gnu
Subject:   cvs commit:  src/gnu/usr.bin/ld ld.c
Message-ID:  <199702012028.MAA07923@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
jdp         97/02/01 12:28:40

  Modified:    gnu/usr.bin/ld  ld.c
  Log:
  Fix a bug involving alias (N_INDR) symbols.  When building a shared
  library with a shared object dependency that contained alias symbols,
  the linker incorrectly counted the number of symbols that would be
  written, resulting in a fatal internal error.  Since our libc now
  contains some alias symbols (in "net/res_stubs.c"), this was
  sufficient to tickle the bug:  "ld -Bshareable foo.so -lc".  To
  fix it, I moved the accounting of alias symbols to a later point
  in the processing, where it is possible to count only those symbols
  that will actually be written to the output file.
  
  This fix is well-confined to affect alias symbols only.  I have
  tested it with a full "make world".  I am going to merge it into
  -2.2 after a few more days of living with it in -current.
  
  Revision  Changes    Path
  1.40      +8 -2      src/gnu/usr.bin/ld/ld.c



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199702012028.MAA07923>