[PATCH] Indicate dependency on personality routines for ARM EHABI

Ian Lance Taylor ian@airs.com
Wed Feb 9 17:32:00 GMT 2005


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



More information about the Binutils mailing list