This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: PING Re: [RFA] Linker script extension SECTION_FLAGS


On Thu, Jun 30, 2011 at 05:10:32PM -0400, Catherine Moore wrote:
[snip]
> 	(input_section_spec_no_keep): Add alternatives to recognize
> 	sect_flags.
[snip]

A compiler warning about 'tmp' set but not used prompted this patch.
Applied mainline.

	* ldgram.y (input_section_spec_no_keep): Don't ignore sect_flags.

Index: ld/ldgram.y
===================================================================
RCS file: /cvs/src/src/ld/ldgram.y,v
retrieving revision 1.66
diff -u -p -r1.66 ldgram.y
--- ld/ldgram.y	11 Jul 2011 15:03:09 -0000	1.66
+++ ld/ldgram.y	9 Feb 2012 05:09:14 -0000
@@ -629,7 +629,7 @@ input_section_spec_no_keep:
 			  tmp.exclude_name_list = NULL;
 			  tmp.sorted = none;
 			  tmp.section_flag_list = $1;
-			  lang_add_wild (NULL, $3, ldgram_had_keep);
+			  lang_add_wild (&tmp, $3, ldgram_had_keep);
 			}
 	|	wildcard_spec '(' file_NAME_list ')'
 			{

-- 
Alan Modra
Australia Development Lab, IBM


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]