This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: rebaseall and cygstdc++-6.dll
On 25/09/2011 07:07, Dave Korn wrote:
> Sourceware CVS is down right now but I'll be
> sending the attached to binutils when it's working again,
Yeah, d'oh. Maybe I'll send the file with the actual patch in it, instead
of the fresh diff I tried to generate when CVS wasn't working! Attached, JFTR.
cheers,
DaveK
--- pe-dll.c.orig 2011-09-25 03:11:10.906250000 +0100
+++ pe-dll.c 2011-09-25 03:11:10.781250000 +0100
@@ -1398,6 +1398,16 @@ 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))
+ {
+ /* These are the same section names that
+ _bfd_elf_default_action_discarded chooses to discard
+ relocs against. */
+ if (!strcmp (s->name, ".eh_frame")
+ || !strcmp (s->name, ".gcc_except_table"))
+ continue;
+ }
reloc_data[total_relocs].vma = sec_vma + relocs[i]->address;
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple