Patchwork Fix -Ttext= etc. handling

login
register
mail settings
Submitter Joseph S. Myers
Date April 11, 2011, 3:27 p.m.
Message ID <Pine.LNX.4.64.1104111526550.26644@digraph.polyomino.org.uk>
Download mbox | patch
Permalink /patch/90610/
State New
Headers show

Comments

Joseph S. Myers - April 11, 2011, 3:27 p.m.
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.

Patch

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