From a21a3e3855a23748bbcb4f10490b33035e7a1da3 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Tue, 5 Oct 2004 11:12:56 +0000 Subject: [PATCH] PR 425 * syms.c (_bfd_stab_section_find_nearest_line): Ignore R_*_NONE relocs. --- bfd/ChangeLog | 5 +++++ bfd/syms.c | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 4467b65306..8e32961273 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2004-10-05 Alan Modra + + PR 425 + * syms.c (_bfd_stab_section_find_nearest_line): Ignore R_*_NONE relocs. + 2004-10-01 Paul Brook * elf32-arm.h (elf32_arm_fake_sections, diff --git a/bfd/syms.c b/bfd/syms.c index 6b615a2b5f..ca4584c1a1 100644 --- a/bfd/syms.c +++ b/bfd/syms.c @@ -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 -- 2.11.0