This is the mail archive of the
mailing list for the binutils project.
Re: bad sh linking error with test case
- From: Joel Sherrill <joel dot sherrill at OARcorp dot com>
- To: Alan Modra <amodra at bigpond dot net dot au>
- Cc: binutils at sources dot redhat dot com
- Date: Thu, 04 Apr 2002 12:25:41 -0600
- Subject: Re: bad sh linking error with test case
- Organization: OAR Corporation
- References: <3CA9BF84.86C0C73E@OARcorp.com> <20020404072737.GW1042@bubble.sa.bigpond.net.au>
- Reply-to: joel dot sherrill at OARcorp dot com
Alan Modra wrote:
> On Tue, Apr 02, 2002 at 08:26:12AM -0600, Joel Sherrill wrote:
> > for 2.12. sh-rtems-ld is failing to fail when linking an
> > executable that has undefined symbols. As I reported earlier,
> coff-sh.c:sh_coff_reloc_type_lookup is converting BFD_RELOC_32
> to R_SH_IMM32CE. coff-sh.c:sh_relocate_section isn't prepared
> to deal with this reloc type unless COFF_WITH_PE is defined.
> I'd say sh_coff_reloc_type_lookup needs another table for
> non COFF_WITH_PE.
This is all beyond my level of understanding of binutils. :(
I will have to wait until someone who understands the details
can fix it. For now, sh-coff is just broken.
Would defining COFF_WITH_PE fix it? This behavior is a serious
regression from previous versions.
> Alan Modra
> IBM OzLabs - Linux Technology Centre
Joel Sherrill, Ph.D. Director of Research & Development
joel@OARcorp.com On-Line Applications Research
Ask me about RTEMS: a free RTOS Huntsville AL 35805
Support Available (256) 722-9985