This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: PATCH: PR 463: Relocation overflow message should be moreinformational
- From: Hans-Peter Nilsson <hp at bitrange dot com>
- To: "H. J. Lu" <hjl at lucon dot org>
- Cc: binutils at sources dot redhat dot com
- Date: Sat, 23 Oct 2004 19:35:53 -0400 (EDT)
- Subject: Re: PATCH: PR 463: Relocation overflow message should be moreinformational
- References: <20041020005317.GA16421@lucon.org> <20041020234302.GA5119@lucon.org>
On Wed, 20 Oct 2004, H. J. Lu wrote:
> On Tue, Oct 19, 2004 at 05:53:17PM -0700, H. J. Lu wrote:
> > Certain ia64 relocations have to be against small data sections.
> > Otherwise, linker will complain
> >
> > foo (.text+0x46b2): In function `x()': relocation truncated to fit: GPREL22 y
> >
> > It isn't clear why it fails. With this patch, I got
> >
> > foo.o (.text+0x46b2): In function `x()': relocation truncated to fit: GPREL22 `y' defined in section .bss in bar.o
> >
> > Now it is clear that it is a compiler bug.
> >
> >
>
> I decided to make a generic patch. Here is a patch.
Whoever changes messages is responsible for updating testsuites
to match. You forgot to update the testsuite for
mmix-knuth-mmixware:
FAIL: ld-mmix/getaa-6b
FAIL: ld-mmix/getaa-6f
FAIL: ld-mmix/getaa14b
FAIL: ld-mmix/getaa14f
FAIL: ld-mmix/jumpa-6b
FAIL: ld-mmix/jumpa-6f
FAIL: ld-mmix/jumpa14b
FAIL: ld-mmix/jumpa14f
These are due to the changed error message. I'll fix these
since I'm about to fix other failing tests for
mmix-knuth-mmixware, but please be more careful.
brgds, H-P