This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: gc-sections fix
- From: Eric Botcazou <ebotcazou at libertysurf dot fr>
- To: Alan Modra <amodra at bigpond dot net dot au>
- Cc: binutils at sources dot redhat dot com
- Date: Fri, 30 Apr 2004 12:47:58 +0200
- Subject: Re: gc-sections fix
- References: <20040430084343.GJ2565@bubble.modra.org>
> Now that we're doing gc-sections on apps linked with dynamic libs, we
> need to be prepared to handle indirect syms.
Ah!, yes :-)
It also occured to me that I didn't update the docs with my initial patch.
Ok for mainline?
ld/ChangeLog:
2004-04-30 Eric Botcazou <ebotcazou@act-europe.fr>
* ld.texinfo (--gc-sections): Remove restriction for
dynamic linking.
--
Eric Botcazou
Index: ld.texinfo
===================================================================
RCS file: /cvs/src/src/ld/ld.texinfo,v
retrieving revision 1.109
diff -u -r1.109 ld.texinfo
--- ld.texinfo 21 Apr 2004 06:08:47 -0000 1.109
+++ ld.texinfo 30 Apr 2004 10:37:51 -0000
@@ -1145,9 +1145,9 @@
@itemx --gc-sections
Enable garbage collection of unused input sections. It is ignored on
targets that do not support this option. This option is not compatible
-with @samp{-r}, nor should it be used with dynamic linking. The default
-behaviour (of not performing this garbage collection) can be restored by
-specifying @samp{--no-gc-sections} on the command line.
+with @samp{-r}. The default behaviour (of not performing this garbage
+collection) can be restored by specifying @samp{--no-gc-sections} on
+the command line.
@cindex help
@cindex usage