Fix -Ttext= etc. handling

Submitted by Joseph S. Myers on April 11, 2011, 3:27 p.m.


Message ID
State New
Headers show

Commit Message

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  <>

	* common.opt (Tbss=, Tdata=, Ttext=): New options.

Patch hide | download patch | download mbox

Index: gcc/common.opt
--- gcc/common.opt	(revision 172252)
+++ gcc/common.opt	(working copy)
@@ -456,12 +456,21 @@  Driver Joined Separate
 Driver Separate
+Driver Joined
 Driver Separate
+Driver Joined
 Driver Separate
+Driver Joined
 Common RejectNegative Warning Alias(Wextra)
 This switch is deprecated; use -Wextra instead