aboutsummaryrefslogtreecommitdiff
path: root/gdb/elfread.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/elfread.c')
-rw-r--r--gdb/elfread.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/gdb/elfread.c b/gdb/elfread.c
index 7d37297..33ea394 100644
--- a/gdb/elfread.c
+++ b/gdb/elfread.c
@@ -349,7 +349,13 @@ elf_symtab_read (struct objfile *objfile, int dynamic)
}
else if (sym->section->flags & SEC_CODE)
{
- if (sym->flags & BSF_GLOBAL)
+ if (sym->name[0] == '.'
+ && (strncmp (sym->name + 1, "objc_", 4) == 0))
+ {
+ /* Looks like an Objective-C special symbol */
+ continue;
+ }
+ else if (sym->flags & BSF_GLOBAL)
{
ms_type = mst_text;
}