aboutsummaryrefslogtreecommitdiff
path: root/ld
diff options
context:
space:
mode:
authorDJ Delorie <dj@redhat.com>2000-12-12 22:37:20 +0000
committerDJ Delorie <dj@redhat.com>2000-12-12 22:37:20 +0000
commit7ec229cebec3e99e605b67bbffdd32b90e4fd5f9 (patch)
tree0941bb2bf0c94f590bf8903a0abaf522bcb40ca5 /ld
parent1518639ec4c952023ed8d1b73f31bb56fafd9929 (diff)
downloadgdb-7ec229cebec3e99e605b67bbffdd32b90e4fd5f9.zip
gdb-7ec229cebec3e99e605b67bbffdd32b90e4fd5f9.tar.gz
gdb-7ec229cebec3e99e605b67bbffdd32b90e4fd5f9.tar.bz2
* ld.texinfo: Add notes about --whole-archive and gcc.
Diffstat (limited to 'ld')
-rw-r--r--ld/ChangeLog4
-rw-r--r--ld/ld.texinfo6
2 files changed, 10 insertions, 0 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog
index e1ad277..87d8c46 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,3 +1,7 @@
+2000-12-11 DJ Delorie <dj@redhat.com>
+
+ * ld.texinfo: Add notes about --whole-archive and gcc.
+
2000-11-18 Fred Fish <fnf@be.com>
* lexsup.c (OPTION_ALLOW_SHLIB_UNDEFINED): Define.
diff --git a/ld/ld.texinfo b/ld/ld.texinfo
index b7a64e9..aadfc05 100644
--- a/ld/ld.texinfo
+++ b/ld/ld.texinfo
@@ -1368,6 +1368,12 @@ files. This is normally used to turn an archive file into a shared
library, forcing every object to be included in the resulting shared
library. This option may be used more than once.
+Two notes when using this option from gcc: First, gcc doesn't know
+about this option, so you have to use @code{-Wl,-whole-archive}.
+Second, don't forget to use @code{-Wl,-no-whole-archive} after your
+list of archives, because gcc will add its own list of archives to
+your link and you may not want this flag to affect those as well.
+
@kindex --wrap
@item --wrap @var{symbol}
Use a wrapper function for @var{symbol}. Any undefined reference to