]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
PR 425
authorAlan Modra <amodra@gmail.com>
Tue, 5 Oct 2004 11:12:56 +0000 (11:12 +0000)
committerAlan Modra <amodra@gmail.com>
Tue, 5 Oct 2004 11:12:56 +0000 (11:12 +0000)
* syms.c (_bfd_stab_section_find_nearest_line): Ignore R_*_NONE relocs.

bfd/ChangeLog
bfd/syms.c

index 4467b6530672a7d6e80c994139a655ec2d8158d3..8e32961273cf703142804411f5d564baeff4fc6f 100644 (file)
@@ -1,3 +1,8 @@
+2004-10-05  Alan Modra  <amodra@bigpond.net.au>
+
+       PR 425
+       * syms.c (_bfd_stab_section_find_nearest_line): Ignore R_*_NONE relocs.
+
 2004-10-01  Paul Brook  <paul@codesourcery.com>
 
        * elf32-arm.h (elf32_arm_fake_sections,
index 6b615a2b5f4bec35c901e2f59cd423972f6b4b49..ca4584c1a11a98a3ca0d679b7f3d0dba2fb5f6b8 100644 (file)
@@ -1016,6 +1016,10 @@ _bfd_stab_section_find_nearest_line (bfd *abfd,
              asymbol *sym;
 
              r = *pr;
+             /* Ignore R_*_NONE relocs.  */
+             if (r->howto->dst_mask == 0)
+               continue;
+
              if (r->howto->rightshift != 0
                  || r->howto->size != 2
                  || r->howto->bitsize != 32