This is the mail archive of the
mailing list for the binutils project.
Re: coff-h8300 ld segfault
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: Max Bowsher <maxb at ukf dot net>
- Cc: binutils at sources dot redhat dot com
- Date: Tue, 3 Dec 2002 08:58:17 +1030
- Subject: Re: coff-h8300 ld segfault
- References: <003d01c29a3f$5ee72920$78d96f83@pomello>
On Mon, Dec 02, 2002 at 08:14:08PM -0000, Max Bowsher wrote:
> >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
> >> ElectricFence.
> >> 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
> > bfd_link_hash_table.creator.
> 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.
Please provide a small testcase, ie. since this is a linker problem,
a set of small object files and the linker script that reproduces the
IBM OzLabs - Linux Technology Centre