diff options
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) { |