diff options
author | John Gilmore <gnu@cygnus> | 1992-03-27 23:56:15 +0000 |
---|---|---|
committer | John Gilmore <gnu@cygnus> | 1992-03-27 23:56:15 +0000 |
commit | c2e4669f8cc511833f293fdc03f6d63ee442bc9c (patch) | |
tree | d944a22860d9e589d4246341ba28c2a8afc35a64 /gdb/elfread.c | |
parent | 46f88c11388317086f7963b7ff3cfdd0aad48941 (diff) | |
download | ppe42-binutils-c2e4669f8cc511833f293fdc03f6d63ee442bc9c.tar.gz ppe42-binutils-c2e4669f8cc511833f293fdc03f6d63ee442bc9c.zip |
Misc cleanups from code review.
Diffstat (limited to 'gdb/elfread.c')
-rw-r--r-- | gdb/elfread.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/gdb/elfread.c b/gdb/elfread.c index ada668dc40..99cf1adce6 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; } |