This is the mail archive of the
mailing list for the binutils project.
coff-h8300 ld segfault
- From: "Max Bowsher" <maxb at ukf dot net>
- To: <binutils at sources dot redhat dot com>
- Date: Mon, 2 Dec 2002 20:14:08 -0000
- Subject: coff-h8300 ld segfault
>On Sun, Dec 01, 2002 at 10:49:53PM -0000, Max Bowsher wrote:
>> I'm experiencing segfaults from h8300-hms-ld, so I ran it under
>> It showed line 1219 of bfd/coff-h8300.c as being buggy.
>> Line is: if(!h8300_coff_hash_table(info)->vectors_sec)
Alan Modra wrote:> I'd guess you're trying to link non-coff object files.
The bug is
> that h8300_coff_hash_table shouldn't be used without first checking
Yes, I agree that link_info.hash isn't a h8300_coff_hash_table, but instead
something smaller, so vectors_sec is outside the malloced region.But: I am
linking coff-h8300 objects - as produced by h8300-hms targeted gcc and IDed
by h8300-hms-objcopy -x.Some of the functions in the object are resolved via
a linker script, not in a more normal way - I don't know if this is
relevant.But this did work with binutils 2.12.Max.