* somread.c (som_symtab_read): Handle secondary definition
symbols (aka weak symbols).
This commit is contained in:
parent
8d07d2c915
commit
c149559feb
|
@ -1,4 +1,7 @@
|
||||||
Fri Aug 9 09:12:11 1996 Jeffrey A Law (law@cygnus.com)
|
Fri Aug 9 12:42:49 1996 Jeffrey A Law (law@cygnus.com)
|
||||||
|
|
||||||
|
* somread.c (som_symtab_read): Handle secondary definition
|
||||||
|
symbols (aka weak symbols).
|
||||||
|
|
||||||
* config/tm-hppa.h (EXTRACT_RETURN_VALUE): Fix thinko in
|
* config/tm-hppa.h (EXTRACT_RETURN_VALUE): Fix thinko in
|
||||||
last change.
|
last change.
|
||||||
|
|
|
@ -282,11 +282,15 @@ som_symtab_read (abfd, objfile, section_offsets)
|
||||||
|
|
||||||
/* This can happen for common symbols when -E is passed to the
|
/* This can happen for common symbols when -E is passed to the
|
||||||
final link. No idea _why_ that would make the linker force
|
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:
|
case SS_UNSAT:
|
||||||
switch (bufp->symbol_type)
|
switch (bufp->symbol_type)
|
||||||
{
|
{
|
||||||
case ST_STORAGE:
|
case ST_STORAGE:
|
||||||
|
case ST_DATA:
|
||||||
symname = bufp->name.n_strx + stringtab;
|
symname = bufp->name.n_strx + stringtab;
|
||||||
bufp->symbol_value += data_offset;
|
bufp->symbol_value += data_offset;
|
||||||
ms_type = mst_data;
|
ms_type = mst_data;
|
||||||
|
|
Loading…
Reference in New Issue