This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: PING Re: [RFA] Linker script extension SECTION_FLAGS
- From: Alan Modra <amodra at gmail dot com>
- To: Catherine Moore <clm at codesourcery dot com>
- Cc: binutils at sourceware dot org
- Date: Thu, 9 Feb 2012 15:56:42 +1030
- Subject: Re: PING Re: [RFA] Linker script extension SECTION_FLAGS
- References: <4DD41EB0.6040300@codesourcery.com> <mcrwrhnr1se.fsf@coign.corp.google.com> <4DDC37D2.3030700@codesourcery.com> <4DED4E64.6080507@codesourcery.com> <4DEE2390.2030309@redhat.com> <4E025F3A.6020003@codesourcery.com> <4E09BCFF.2030208@redhat.com> <4E0CE648.2080105@codesourcery.com>
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