diff options
author | Jeff Law <law@redhat.com> | 1996-08-09 18:43:54 +0000 |
---|---|---|
committer | Jeff Law <law@redhat.com> | 1996-08-09 18:43:54 +0000 |
commit | c149559febd993d275132d0452b900699cd2b8c6 (patch) | |
tree | 9a09cf30f25c2d7394083b31a9c165841fa33728 /gdb/somread.c | |
parent | 8d07d2c915dcc7cc5987f33bc78a234be7dfcb4a (diff) | |
download | gdb-c149559febd993d275132d0452b900699cd2b8c6.zip gdb-c149559febd993d275132d0452b900699cd2b8c6.tar.gz gdb-c149559febd993d275132d0452b900699cd2b8c6.tar.bz2 |
* somread.c (som_symtab_read): Handle secondary definition
symbols (aka weak symbols).
Diffstat (limited to 'gdb/somread.c')
-rw-r--r-- | gdb/somread.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gdb/somread.c b/gdb/somread.c index c2716da..ed0fe97 100644 --- a/gdb/somread.c +++ b/gdb/somread.c @@ -282,11 +282,15 @@ som_symtab_read (abfd, objfile, section_offsets) /* This can happen for common symbols when -E is passed to the final link. No idea _why_ that would make the linker force - common symbols to have an SS_UNSAT scope, but it does. */ + common symbols to have an SS_UNSAT scope, but it does. + + This also happens for weak symbols, but their type is + ST_DATA. */ case SS_UNSAT: switch (bufp->symbol_type) { case ST_STORAGE: + case ST_DATA: symname = bufp->name.n_strx + stringtab; bufp->symbol_value += data_offset; ms_type = mst_data; |