X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=gdb%2Fsomread.c;h=ed0fe976997ba187bddd7b980c4b36b7e46348ba;hb=f109cc3d9ef5ddcbd26afa98207b3eebaea9463f;hp=c2716da06d5816df1b9acf860ad5bc3af16cfc17;hpb=e618c70e9654addf6c0ef9811eca639242d3b1d9;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/somread.c b/gdb/somread.c index c2716da06d..ed0fe97699 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;