Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-1-4]: src/gnu/usr.bin/ld/ld Pull up revision 1.21 (requested by m...



details:   https://anonhg.NetBSD.org/src/rev/9a5c0b63c5ac
branches:  netbsd-1-4
changeset: 470022:9a5c0b63c5ac
user:      he <he%NetBSD.org@localhost>
date:      Sat Jan 15 16:07:44 2000 +0000

description:
Pull up revision 1.21 (requested by mycroft):
  Fix two problems:
   o Do not generate invalid PLT slots under `-Bsymbolic'.
   o Do not prebind GOT and PLT slots when `-r' is used; only do so
     if `-Bsymbolic' is used.  This avoids inadvertent prebinding of
     symbols when using `-r' with PIC files, which would otherwise
     make it impossible for an executable to override the symbols
     from a shared library.
  Also a few code cleanups.

diffstat:

 gnu/usr.bin/ld/ld/ld.1 |  11 +++++------
 1 files changed, 5 insertions(+), 6 deletions(-)

diffs (25 lines):

diff -r 5da4a39ae76c -r 9a5c0b63c5ac gnu/usr.bin/ld/ld/ld.1
--- a/gnu/usr.bin/ld/ld/ld.1    Sat Jan 15 16:07:23 2000 +0000
+++ b/gnu/usr.bin/ld/ld/ld.1    Sat Jan 15 16:07:44 2000 +0000
@@ -1,4 +1,4 @@
-.\"    $NetBSD: ld.1,v 1.20 1999/03/22 18:51:52 garbled Exp $
+.\"    $NetBSD: ld.1,v 1.20.2.1 2000/01/15 16:07:44 he Exp $
 .\"
 .\" Copyright (c) 1998 The NetBSD Foundation, Inc.
 .\" All rights reserved.
@@ -107,11 +107,10 @@
 Instructs the linker to build a shared object from the object files rather
 than a normal executable image.
 .It Fl B Ns Ar symbolic
-This option causes all symbolic references in the output to be resolved in
-this link-edit session. The only remaining run-time relocation requirements are
-.Em base-relative
-relocations, ie. translation with respect to the load address. Failure to
-resolve any symbolic reference causes an error to be reported.
+Causes symbolic references to symbols within the object to be resolved and
+changed to base-relative references.  This can be used, e.g., to make a shared
+library use an internal symbol when the executable that loads it has its own
+definition.  References to undefined symbols are not affected by this flag.
 .It Fl B Ns Ar forcearchive
 Force all members of archives to be loaded, whether or not such members
 contribute a definition to any plain object files. Useful for making a



Home | Main Index | Thread Index | Old Index