summaryrefslogtreecommitdiff
path: root/gdb/elfread.c
diff options
context:
space:
mode:
authorDaniel Jacobowitz <dan@debian.org>2006-12-01 18:14:30 +0000
committerDaniel Jacobowitz <dan@debian.org>2006-12-01 18:14:30 +0000
commit565d62617b3696786b4455190e4b278ec7d6bc90 (patch)
treed0cb81b577172a082c991e64a54a27f71aa39387 /gdb/elfread.c
parent1766b5edc2be2ca3968f676a7073f50970aff37d (diff)
downloadgdb-565d62617b3696786b4455190e4b278ec7d6bc90.tar.gz
gdb/
* elfread.c (elf_symtab_read): Treat weak functions as global. gdb/testsuite/ * gdb.base/solib-weak.c, gdb.base/solib-weak.exp, gdb.base/weaklib1.c, gdb.base/weaklib2.c: New files.
Diffstat (limited to 'gdb/elfread.c')
-rw-r--r--gdb/elfread.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/elfread.c b/gdb/elfread.c
index 7b4d6d74b4f..d642b7ff7fc 100644
--- a/gdb/elfread.c
+++ b/gdb/elfread.c
@@ -284,7 +284,7 @@ elf_symtab_read (struct objfile *objfile, int dynamic,
}
else if (sym->section->flags & SEC_CODE)
{
- if (sym->flags & BSF_GLOBAL)
+ if (sym->flags & (BSF_GLOBAL | BSF_WEAK))
{
ms_type = mst_text;
}