Index: ld/pe-dll.c =================================================================== RCS file: /cvs/src/src/ld/pe-dll.c,v retrieving revision 1.138 diff -p -u -r1.138 pe-dll.c --- ld/pe-dll.c 16 Sep 2011 01:15:19 -0000 1.138 +++ ld/pe-dll.c 13 Oct 2011 02:31:34 -0000 @@ -1395,6 +1395,15 @@ generate_reloc (bfd *abfd, struct bfd_li else if (!blhe || blhe->type != bfd_link_hash_defined) continue; } + /* Nor for Dwarf FDE references to discarded sections. */ + else if (bfd_is_abs_section (sym->section->output_section)) + { + /* We only ignore relocs from .eh_frame sections, as + they are discarded by the final link rather than + resolved against the kept section. */ + if (!strcmp (s->name, ".eh_frame")) + continue; + } reloc_data[total_relocs].vma = sec_vma + relocs[i]->address;