This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
ARM: Don't make noise about R_ARM_NONE relocs
- From: Daniel Jacobowitz <drow at false dot org>
- To: binutils at sources dot redhat dot com
- Date: Mon, 21 Mar 2005 15:53:21 -0500
- Subject: ARM: Don't make noise about R_ARM_NONE relocs
This patch fixes a bug which was already present before my (pending) patch
for protected symbols; but that patch changes where to place the fix, so
this patch is dependent on it.
When we have an R_ARM_NONE relocation against a symbol, as the ARM assembler
uses for personality routines, we don't use the value of the symbol. So no
need to complain if it is unresolved. Relevant archive members will already
have been pulled in.
OK?
--
Daniel Jacobowitz
CodeSourcery, LLC
2005-03-21 Daniel Jacobowitz <dan@codesourcery.com>
* elf32-arm.c (elf32_arm_final_link_relocate): Don't fail for
unresolved symbols in R_ARM_NONE relocations.
Index: binutils/bfd/elf32-arm.c
===================================================================
--- binutils.orig/bfd/elf32-arm.c 2005-03-18 19:16:06.000000000 -0500
+++ binutils/bfd/elf32-arm.c 2005-03-18 20:12:45.000000000 -0500
@@ -2311,6 +2311,9 @@ elf32_arm_final_link_relocate (reloc_how
switch (r_type)
{
case R_ARM_NONE:
+ /* We don't need to find a value for this symbol. It's just a
+ marker. */
+ *unresolved_reloc_p = FALSE;
return bfd_reloc_ok;
case R_ARM_PC24: