diff options
author | Alan Modra <amodra@gmail.com> | 2012-05-05 03:05:32 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2012-05-05 03:05:32 +0000 |
commit | 45dfa85a1ee44000d43abb7945a4aa7631707563 (patch) | |
tree | 4fbcbb79f675fb33e849112175102446d2fc8e64 /gdb/elfread.c | |
parent | 3ea17611f9c0a265d51cbdd4d0989b12c11aaad4 (diff) | |
download | gdb-45dfa85a1ee44000d43abb7945a4aa7631707563.zip gdb-45dfa85a1ee44000d43abb7945a4aa7631707563.tar.gz gdb-45dfa85a1ee44000d43abb7945a4aa7631707563.tar.bz2 |
Replace all uses of bfd_abs_section, bfd_com_section, bfd_und_section
and bfd_ind_section with their _ptr variants, or use corresponding
bfd_is_* macros.
Diffstat (limited to 'gdb/elfread.c')
-rw-r--r-- | gdb/elfread.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/elfread.c b/gdb/elfread.c index d825d9a..d8dec38 100644 --- a/gdb/elfread.c +++ b/gdb/elfread.c @@ -272,7 +272,7 @@ elf_symtab_read (struct objfile *objfile, int type, offset = ANOFFSET (objfile->section_offsets, sym->section->index); if (type == ST_DYNAMIC - && sym->section == &bfd_und_section + && sym->section == bfd_und_section_ptr && (sym->flags & BSF_FUNCTION)) { struct minimal_symbol *msym; @@ -367,7 +367,7 @@ elf_symtab_read (struct objfile *objfile, int type, symaddr = sym->value + sym->section->vma; /* Relocate all non-absolute and non-TLS symbols by the section offset. */ - if (sym->section != &bfd_abs_section + if (sym->section != bfd_abs_section_ptr && !(sym->section->flags & SEC_THREAD_LOCAL)) { symaddr += offset; @@ -375,7 +375,7 @@ elf_symtab_read (struct objfile *objfile, int type, /* For non-absolute symbols, use the type of the section they are relative to, to intuit text/data. Bfd provides no way of figuring this out for absolute symbols. */ - if (sym->section == &bfd_abs_section) + if (sym->section == bfd_abs_section_ptr) { /* This is a hack to get the minimal symbol type right for Irix 5, which has absolute addresses @@ -517,7 +517,7 @@ elf_symtab_read (struct objfile *objfile, int type, symaddr = sym->value + sym->section->vma; /* Relocate non-absolute symbols by the section offset. */ - if (sym->section != &bfd_abs_section) + if (sym->section != bfd_abs_section_ptr) symaddr += offset; sectinfo->sections[special_local_sect] = symaddr; /* The special local symbols don't go in the |