diff options
Diffstat (limited to 'gdb/machoread.c')
-rw-r--r-- | gdb/machoread.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/machoread.c b/gdb/machoread.c index 1986f54..22530ab 100644 --- a/gdb/machoread.c +++ b/gdb/machoread.c @@ -126,11 +126,11 @@ macho_symtab_add_minsym (struct objfile *objfile, const asymbol *sym) interested in will have a section. */ /* 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; - if (sym->section == &bfd_abs_section) + if (sym->section == bfd_abs_section_ptr) ms_type = mst_abs; else if (sym->section->flags & SEC_CODE) { @@ -563,7 +563,7 @@ macho_add_oso_symfile (oso_el *oso, bfd *abfd, res = macho_resolve_oso_sym_with_minsym (main_objfile, sym); if (res != 0) { - sym->section = &bfd_com_section; + sym->section = bfd_com_section_ptr; sym->value = res; } } |