aboutsummaryrefslogtreecommitdiff
path: root/gprof/symtab.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2004-06-15 01:11:43 +0000
committerAlan Modra <amodra@gmail.com>2004-06-15 01:11:43 +0000
commit67cf9bc5a113105ad18f58b827d6f5b132ad618f (patch)
treea999f0f07f98539ce125d275cb34422962edc766 /gprof/symtab.c
parentdcb74f961ab8068d8768932cedba58ab0d95b1f2 (diff)
downloadgdb-67cf9bc5a113105ad18f58b827d6f5b132ad618f.zip
gdb-67cf9bc5a113105ad18f58b827d6f5b132ad618f.tar.gz
gdb-67cf9bc5a113105ad18f58b827d6f5b132ad618f.tar.bz2
* corefile.c (core_init): Use bfd_get_section_size
instead of bfd_get_section_size_before_reloc or _raw_size. * symtab.c (symtab_finalize): Likewise.
Diffstat (limited to 'gprof/symtab.c')
-rw-r--r--gprof/symtab.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gprof/symtab.c b/gprof/symtab.c
index 05568d1..e6df98e 100644
--- a/gprof/symtab.c
+++ b/gprof/symtab.c
@@ -1,6 +1,6 @@
/* symtab.c
- Copyright 2000, 2001, 2002 Free Software Foundation, Inc.
+ Copyright 2000, 2001, 2002, 2004 Free Software Foundation, Inc.
This file is part of GNU Binutils.
@@ -148,7 +148,8 @@ symtab_finalize (Sym_Table *tab)
}
if (tab->len > 0 && dst[-1].end_addr == 0)
- dst[-1].end_addr = core_text_sect->vma + core_text_sect->_raw_size - 1;
+ dst[-1].end_addr
+ = core_text_sect->vma + bfd_get_section_size (core_text_sect) - 1;
DBG (AOUTDEBUG | IDDEBUG,
printf ("[symtab_finalize]: removed %d duplicate entries\n",