diff options
author | Daniel Jacobowitz <dan@debian.org> | 2006-12-01 18:14:30 +0000 |
---|---|---|
committer | Daniel Jacobowitz <dan@debian.org> | 2006-12-01 18:14:30 +0000 |
commit | 565d62617b3696786b4455190e4b278ec7d6bc90 (patch) | |
tree | d0cb81b577172a082c991e64a54a27f71aa39387 /gdb/elfread.c | |
parent | 1766b5edc2be2ca3968f676a7073f50970aff37d (diff) | |
download | gdb-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.c | 2 |
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; } |