This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
h8300-hms-ld segfaults (with a small testcase)
- From: Kazu Hirata <kazu at cs dot umass dot edu>
- To: binutils at sources dot redhat dot com
- Cc: paulc at senet dot com dot au, maxb at ukf dot net, amodra at bigpond dot net dot au, drow at mvista dot com
- Date: Mon, 16 Dec 2002 10:50:14 -0500 (EST)
- Subject: h8300-hms-ld segfaults (with a small testcase)
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.
The problem started occuring with the following patch:
http://sources.redhat.com/ml/binutils-cvs/2002-04/msg00030.html
>From the discussion last month, it seems to me that people know the
root of the problem, but I thought it may be a good idea to share a
small testcase in case somebody decides to work on it. (I would have
to learn a lot about bfd before being able to debug this kind of
problem.)
Kazu Hirata
============================================================
.section .text
.global _start
_start:
bra _start
.end
============================================================
OUTPUT_FORMAT(srec)
MEMORY
{
rom : ORIGIN = 0, LENGTH = 1024
}
SECTIONS
{
.everything :
{
*(.text)
*(.data)
*(.bss)
*(.vectors)
} > rom
}
============================================================
#!/bin/sh
h8300-hms-as -o test.o test.s
h8300-hms-ld -o test test.o -T signal11.xcl
============================================================