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: [PATCH/RFA] Ambiguity problem of REL objects on ELF sh*-*-*


On Sun, Nov 03, 2002 at 07:30:11AM +0900, kaz Kojima wrote:
> "H. J. Lu" <hjl@lucon.org> wrote:
> >> BTW, now I get 2 errors on gas testsuite for sh64-unknown-linux-gnu
> >> target configured with --enable-targets=all. objdump -x reports that
> >> the start address of the REL object is -1 in these two cases.
> >> It seems that vms_object_p calls vms_initialize unconditionally and
> >> vms_initialize set the start address to -1:
> >> 
> > 
> > I don't see why we should spend any times on it. SH is broken since
> > it uses the same EI_OSABI value for different ABIs. I have suggested
> > how it should be fixed. In the mean time, please try this. We have
> > so many "#if 0"s in targets.c because the underline binary formats
> > don't support different ABIs. But there is no excuse for ELF. Also
> > Linux/sh64 vectors are missing for --enable-targets=all.
> 
> The original patch also added Linux/sh64 vectors.  Of course, your
> patch completely solves the ploblem for SH linux folks including me,
> but I don't know it's ok for the other folks.

I believe Linux/sh64 vectors should also be commented out since it
won't work with --target=sh64-elf --enable-targets=all. The current
approach in targets.c is to comment out any ambiguous vectors.


H.J.


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