From 5e3da1b0d3cf6226781783ee732b2288611ca8a2 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Fri, 5 Jun 1998 19:17:08 +0000 Subject: [PATCH] Fri Jun 5 15:11:11 1998 Andreas Schwab * elf.c (elf_map_symbols): Don't add section VMA to symbol value when comparing against 0. --- bfd/ChangeLog | 5 +++++ bfd/elf.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index b8acb4b7de3..61a7a55dc3f 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +Fri Jun 5 15:11:11 1998 Andreas Schwab + + * elf.c (elf_map_symbols): Don't add section VMA to symbol value + when comparing against 0. + Wed Jun 3 17:52:49 1998 Ian Lance Taylor * Makefile.am (config.status): New target. diff --git a/bfd/elf.c b/bfd/elf.c index b4bba467988..46701cfb3d0 100644 --- a/bfd/elf.c +++ b/bfd/elf.c @@ -1800,7 +1800,7 @@ elf_map_symbols (abfd) for (idx = 0; idx < symcount; idx++) { if ((syms[idx]->flags & BSF_SECTION_SYM) != 0 - && (syms[idx]->value + syms[idx]->section->vma) == 0) + && syms[idx]->value == 0) { asection *sec; -- 2.30.2