aboutsummaryrefslogtreecommitdiff
path: root/bfd
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1998-06-05 19:17:08 +0000
committerIan Lance Taylor <ian@airs.com>1998-06-05 19:17:08 +0000
commit5e3da1b0d3cf6226781783ee732b2288611ca8a2 (patch)
tree65ed9cbb00d24b6e93bb46b03d71892646bb2ca3 /bfd
parentbc67c82378f54d43a88978c72a93a2caddd21325 (diff)
downloadgdb-5e3da1b0d3cf6226781783ee732b2288611ca8a2.zip
gdb-5e3da1b0d3cf6226781783ee732b2288611ca8a2.tar.gz
gdb-5e3da1b0d3cf6226781783ee732b2288611ca8a2.tar.bz2
Fri Jun 5 15:11:11 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
* elf.c (elf_map_symbols): Don't add section VMA to symbol value when comparing against 0.
Diffstat (limited to 'bfd')
-rw-r--r--bfd/ChangeLog5
-rw-r--r--bfd/elf.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index b8acb4b..61a7a55 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,8 @@
+Fri Jun 5 15:11:11 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
+
+ * 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 <ian@cygnus.com>
* Makefile.am (config.status): New target.
diff --git a/bfd/elf.c b/bfd/elf.c
index b4bba46..46701cf 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;