diff options
author | Steve Chamberlain <sac@cygnus> | 1992-01-24 23:13:14 +0000 |
---|---|---|
committer | Steve Chamberlain <sac@cygnus> | 1992-01-24 23:13:14 +0000 |
commit | e58493346d218a5cec74c1292805e4ca194081bd (patch) | |
tree | 685c0cc684dbde09c562a52e625734c5803b5069 | |
parent | f6868b8e5bd019f763808ff1bf7a183d9e57071e (diff) | |
download | gdb-e58493346d218a5cec74c1292805e4ca194081bd.zip gdb-e58493346d218a5cec74c1292805e4ca194081bd.tar.gz gdb-e58493346d218a5cec74c1292805e4ca194081bd.tar.bz2 |
Changed refs to section->size to bfd_get_section_size_before_reloc
-rw-r--r-- | gdb/elfread.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/elfread.c b/gdb/elfread.c index c7783e1..8cabd2f 100644 --- a/gdb/elfread.c +++ b/gdb/elfread.c @@ -84,12 +84,12 @@ DEFUN(elf_locate_sections, (abfd, sectp, ei), if (STREQ (sectp -> name, ".debug")) { ei -> dboffset = sectp -> filepos; - ei -> dbsize = sectp -> size; + ei -> dbsize = bfd_get_section_size_before_reloc (sectp); } else if (STREQ (sectp -> name, ".line")) { ei -> lnoffset = sectp -> filepos; - ei -> lnsize = sectp -> size; + ei -> lnsize = bfd_get_section_size_before_reloc (sectp); } } @@ -198,7 +198,7 @@ DEFUN (elf_symtab_read, (abfd, addr, mainline), /* Select global symbols that are defined in a specific section or are absolute. */ if (sym -> flags & BSF_GLOBAL - && ((sym -> section != NULL) || (sym -> flags & BSF_ABSOLUTE))) + && (sym -> section == &bfd_abs_section)) { symaddr = sym -> value; if (!mainline) |