This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: [PATCH] Indicate dependency on personality routines for ARM EHABI
Paul Brook <paul@codesourcery.com> writes:
> On Wednesday 09 February 2005 16:32, Ian Lance Taylor wrote:
> > More generally, I think it's kind of dubious to use a zero reloc to
> > mean anything at all. And why do you need a relocation entry? Why is
> > it not sufficient to enter the symbol in the symbol table as an
> > undefined symbol?
>
> Isn't a linker allowed to discard symbols if nothing uses them?
An undefined symbol in the symbol table will normally be enough to
bring in an object from a static library.
> > Is the use of a zero reloc mandated by the ARM ABI?
>
> Yes. The ABI defines and requires the use of a zero reloc (R_ARM_NONE).
Then, this approach is fine in any case. But it should still use
BFD_RELOC_NONE, I think.
Ian