This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: ld/testsuite/ld-elf/merge.s causes m32r gas assert failure
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: Doug Evans <dje at sebabeach dot org>
- Cc: binutils at sources dot redhat dot com
- Date: Wed, 11 Jun 2003 08:42:35 +0930
- Subject: Re: ld/testsuite/ld-elf/merge.s causes m32r gas assert failure
- References: <20030610171003.88CBAB538@mail.sebabeach.org>
On Tue, Jun 10, 2003 at 10:10:03AM -0700, Doug Evans wrote:
> Why is gas generating a pc-relative reloc that the target doesn't support?
See TC_FORCE_RELOCATION_SUB_LOCAL, and from there DIFF_EXPR_OK.
tc-m32r.h even says
#define DIFF_EXPR_OK /* .-foo gets turned into PC relative relocs */
The comment has it back to front too. Should be "foo - ."
> Is it the case that gas shouldn't have generated the pc-relative reloc?
Yep.
> Or are these ports incomplete and this reloc should be handled?
That too.
--
Alan Modra
IBM OzLabs - Linux Technology Centre