aboutsummaryrefslogtreecommitdiff
path: root/gdb/elfread.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/elfread.c')
-rw-r--r--gdb/elfread.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/elfread.c b/gdb/elfread.c
index 95c9c0f..7b87cb2 100644
--- a/gdb/elfread.c
+++ b/gdb/elfread.c
@@ -350,6 +350,7 @@ elf_symtab_read (abfd, addr, objfile, dynamic)
symaddr = sym -> value;
if (symaddr == 0)
continue;
+ symaddr += addr;
}
else if (sym -> section == &bfd_abs_section)
{
@@ -560,10 +561,9 @@ elf_symfile_read (objfile, section_offsets, mainline)
offset = ANOFFSET (section_offsets, 0);
elf_symtab_read (abfd, offset, objfile, 0);
- /* Add the dynamic symbols if we are reading the main symbol table. */
+ /* Add the dynamic symbols. */
- if (mainline)
- elf_symtab_read (abfd, offset, objfile, 1);
+ elf_symtab_read (abfd, offset, objfile, 1);
/* Now process debugging information, which is contained in
special ELF sections. We first have to find them... */