aboutsummaryrefslogtreecommitdiff
path: root/gdb/elfread.c
diff options
context:
space:
mode:
authorDaniel Jacobowitz <drow@false.org>2006-12-01 18:14:30 +0000
committerDaniel Jacobowitz <drow@false.org>2006-12-01 18:14:30 +0000
commit08232497166ecbf332f0144a8352dd41d033bbec (patch)
tree8417b3940c577d4dc6ca390d7cc259c1c5c6436a /gdb/elfread.c
parent6a4699867a44b59f726f108b489d4462d5ce9fa3 (diff)
downloadgdb-08232497166ecbf332f0144a8352dd41d033bbec.zip
gdb-08232497166ecbf332f0144a8352dd41d033bbec.tar.gz
gdb-08232497166ecbf332f0144a8352dd41d033bbec.tar.bz2
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 7b4d6d7..d642b7f 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;
}