aboutsummaryrefslogtreecommitdiff
path: root/gdb/elfread.c
diff options
context:
space:
mode:
authorJohn Gilmore <gnu@cygnus>1992-03-27 23:56:15 +0000
committerJohn Gilmore <gnu@cygnus>1992-03-27 23:56:15 +0000
commitc2e4669f8cc511833f293fdc03f6d63ee442bc9c (patch)
treed944a22860d9e589d4246341ba28c2a8afc35a64 /gdb/elfread.c
parent46f88c11388317086f7963b7ff3cfdd0aad48941 (diff)
downloadgdb-c2e4669f8cc511833f293fdc03f6d63ee442bc9c.zip
gdb-c2e4669f8cc511833f293fdc03f6d63ee442bc9c.tar.gz
gdb-c2e4669f8cc511833f293fdc03f6d63ee442bc9c.tar.bz2
Misc cleanups from code review.
Diffstat (limited to 'gdb/elfread.c')
-rw-r--r--gdb/elfread.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/gdb/elfread.c b/gdb/elfread.c
index ada668d..99cf1ad 100644
--- a/gdb/elfread.c
+++ b/gdb/elfread.c
@@ -1,5 +1,5 @@
/* Read ELF (Executable and Linking Format) object files for GDB.
- Copyright (C) 1991 Free Software Foundation, Inc.
+ Copyright 1991, 1992 Free Software Foundation, Inc.
Written by Fred Fish at Cygnus Support.
This file is part of GDB.
@@ -24,7 +24,7 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
* *
* This file is still under construction. When it is complete, this *
* notice will be removed. Until then, direct any questions or changes *
- * to Fred Fish at Cygnus Support (fnf@cygint) *
+ * to Fred Fish at Cygnus Support (fnf@cygnus.com) *
* *
* FIXME Still needs support for shared libraries. *
* FIXME Still needs support for core files. *
@@ -219,10 +219,8 @@ elf_symtab_read (abfd, addr, mainline, objfile)
&& (sym -> section != NULL))
{
symaddr = sym -> value;
- /* Relocate all non-absolute symbols by base address.
- FIXME: Can we eliminate the check for mainline now,
- since shouldn't addr be 0 in this case? */
- if (!mainline && (sym -> section != &bfd_abs_section))
+ /* Relocate all non-absolute symbols by base address. */
+ if (sym -> section != &bfd_abs_section)
{
symaddr += addr;
}