summaryrefslogtreecommitdiff
path: root/bfd/elfxx-sparc.c
diff options
context:
space:
mode:
authorRainer Orth <ro@TechFak.Uni-Bielefeld.DE>2012-03-05 16:02:18 +0000
committerRainer Orth <ro@TechFak.Uni-Bielefeld.DE>2012-03-05 16:02:18 +0000
commit52bc8ba3ebeb4d43f2f0ecc48d70db00b12a1d04 (patch)
tree108306f6c3fe63909188384e8061f5e340365102 /bfd/elfxx-sparc.c
parent273fa6dfc9c59573dea4582964394d0cc80ff97f (diff)
downloadbinutils-redhat-52bc8ba3ebeb4d43f2f0ecc48d70db00b12a1d04.tar.gz
PR ld/12152
* elfxx-sparc.c (_bfd_sparc_elf_relocate_section): Also ignore overflows for R_SPARC_UA32 in .stab sections.
Diffstat (limited to 'bfd/elfxx-sparc.c')
-rw-r--r--bfd/elfxx-sparc.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/bfd/elfxx-sparc.c b/bfd/elfxx-sparc.c
index fe18a62cc9..355382e5ca 100644
--- a/bfd/elfxx-sparc.c
+++ b/bfd/elfxx-sparc.c
@@ -1,5 +1,5 @@
/* SPARC-specific support for ELF
- Copyright 2005, 2006, 2007, 2008, 2009, 2010, 2011
+ Copyright 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012
Free Software Foundation, Inc.
This file is part of BFD, the Binary File Descriptor library.
@@ -4069,7 +4069,9 @@ do_relocation:
We don't, but this breaks stabs debugging info, whose
relocations are only 32-bits wide. Ignore overflows in
this case and also for discarded entries. */
- if ((r_type == R_SPARC_32 || r_type == R_SPARC_DISP32)
+ if ((r_type == R_SPARC_32
+ || r_type == R_SPARC_UA32
+ || r_type == R_SPARC_DISP32)
&& (((input_section->flags & SEC_DEBUGGING) != 0
&& strcmp (bfd_section_name (input_bfd,
input_section),