This is the mail archive of the mailing list for the binutils project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: coff-h8300 ld segfault

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

Alan Modra
IBM OzLabs - Linux Technology Centre

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]