This is the mail archive of the binutils@sources.redhat.com 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: h8300-hms-ld segfaults (with a small testcase)


On Mon, Dec 16, 2002 at 10:50:14AM -0500, Kazu Hirata wrote:
> Hi,
> 
> The problem of h8300-hms-ld doing a segfault is caused by the attached
> files.  The original linker script is provided by Paul Clark and later
> reduced by me.  Removing "OUTPUT_FORMAT(srec)" prevents the segfault.

Linking directly to SREC always turns up bugs... usually, they involve
accessing the target-specific parts of the hash table when in the wrong
target's code.

> The problem started occuring with the following patch:
> 
> http://sources.redhat.com/ml/binutils-cvs/2002-04/msg00030.html

That seems very unlikely.  Could you narrow it down further - for
instance, does reverting the part for coff-h8300.c fix it?  What do GDB
and valgrind have to say about the crash?

(If you've never used valgrind I highly recommend it for this sort of
bug.)


-- 
Daniel Jacobowitz
MontaVista Software                         Debian GNU/Linux Developer


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