diff options
author | Toni Spets <toni.spets@iki.fi> | 2015-05-06 14:18:34 +0100 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2015-05-06 14:18:34 +0100 |
commit | 9ac47a43ffc8e3c73867b9953145a8e7a227132d (patch) | |
tree | 89408e94104991d55989b6ba2d010724f6a8b4d1 /bfd/peXXigen.c | |
parent | ed1fcdd119b422267d0ae54f216bd3f63cdc6425 (diff) | |
download | gdb-9ac47a43ffc8e3c73867b9953145a8e7a227132d.zip gdb-9ac47a43ffc8e3c73867b9953145a8e7a227132d.tar.gz gdb-9ac47a43ffc8e3c73867b9953145a8e7a227132d.tar.bz2 |
Skip discarded resource sections when building a PE resource table.
PR ld/18372
* peXXigen.c (rsrc_process_section): Skip discarded resource
sections.
Diffstat (limited to 'bfd/peXXigen.c')
-rw-r--r-- | bfd/peXXigen.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bfd/peXXigen.c b/bfd/peXXigen.c index 6aa18ca..c897c64 100644 --- a/bfd/peXXigen.c +++ b/bfd/peXXigen.c @@ -4160,7 +4160,8 @@ rsrc_process_section (bfd * abfd, { asection * rsrc_sec = bfd_get_section_by_name (input, ".rsrc"); - if (rsrc_sec != NULL) + /* PR 18372 - skip discarded .rsrc sections. */ + if (rsrc_sec != NULL && !discarded_section (rsrc_sec)) { if (num_input_rsrc == max_num_input_rsrc) { |