This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Fix -Ttext= etc. handling
- From: "Joseph S. Myers" <joseph at codesourcery dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Mon, 11 Apr 2011 15:27:21 +0000 (UTC)
- Subject: Fix -Ttext= etc. handling
A problem was reported on IRC where the -Ttext= etc. joined-argument
options no longer worked because they were passed to the linker as -T
text= etc.; the driver only knew about the separate-argument -Ttext
etc. versions as distinct from the -T <linker script> option. This
patch fixes this by adding these option forms to common.opt.
Bootstrapped with no regressions on x86_64-unknown-linux-gnu. Applied
to trunk and 4.6 branch.
2011-04-11 Joseph Myers <joseph@codesourcery.com>
* common.opt (Tbss=, Tdata=, Ttext=): New options.
Index: gcc/common.opt
===================================================================
--- gcc/common.opt (revision 172252)
+++ gcc/common.opt (working copy)
@@ -456,12 +456,21 @@ Driver Joined Separate
Tbss
Driver Separate
+Tbss=
+Driver Joined
+
Tdata
Driver Separate
+Tdata=
+Driver Joined
+
Ttext
Driver Separate
+Ttext=
+Driver Joined
+
W
Common RejectNegative Warning Alias(Wextra)
This switch is deprecated; use -Wextra instead
--
Joseph S. Myers
joseph@codesourcery.com