[PATCH] MIPS gas: Handle sections create by -fdata-sections

Thiemo Seufer ths@networkno.de
Fri Jun 23 21:00:00 GMT 2006


Hello All,

I applied this patch, it handles sections generated by -fdata-sections.


Thiemo


2006-06-23  Nigel Stephens  <nigel@mips.com>

	* config/tc-mips.c (nopic_need_relax): Handle -fdata-sections
	generated .sbss.* and .gnu.linkonce.sb.*.


Index: gas/config/tc-mips.c
===================================================================
RCS file: /cvs/src/src/gas/config/tc-mips.c,v
retrieving revision 1.337
diff -u -p -r1.337 tc-mips.c
--- gas/config/tc-mips.c	19 May 2006 13:03:05 -0000	1.337
+++ gas/config/tc-mips.c	22 May 2006 10:16:28 -0000
@@ -13000,6 +13182,8 @@ nopic_need_relax (symbolS *sym, int befo
 	  change = (strcmp (segname, ".sdata") != 0
 		    && strcmp (segname, ".sbss") != 0
 		    && strncmp (segname, ".sdata.", 7) != 0
+		    && strncmp (segname, ".sbss.", 6) != 0
+		    && strncmp (segname, ".gnu.linkonce.sb.", 17) != 0
 		    && strncmp (segname, ".gnu.linkonce.s.", 16) != 0);
 	}
       return change;



More information about the Binutils mailing list