[committed] fix ld segfault for mipsisa64-elf

Eric Christopher echristo@apple.com
Fri May 25 23:06:00 GMT 2007


For lots of c++ files ld is currently segfaulting in  
_bfd_elf_discard_section_eh_frame because sym_sec is NULL and we're  
not checking that it exists before we check the value of a member.  
This fixes that problem, we've still got other problems such that  
we're not creating .eh_frame_table, but that's a patch for another  
day. I'm looking into it while waiting for builds on other work :)

Committed as obvious.

-eric

2007-05-25  Eric Christopher  <echristo@gmail.com>

	* elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Check that  
sym_sec
	isn't NULL before accessing.

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: eh_frame.diff.txt
URL: <https://sourceware.org/pipermail/binutils/attachments/20070525/e392c77a/attachment.txt>


More information about the Binutils mailing list