forked from Imagelibrary/binutils-gdb
* somread.c (som_symtab_read): Add unsatisfied common symbols to
the minimal symbol table. All common symbols are "unsatisfied" when -E is passed to the linker. mentor-7462
This commit is contained in:
@@ -286,6 +286,23 @@ som_symtab_read (abfd, objfile, section_offsets)
|
||||
}
|
||||
break;
|
||||
|
||||
/* 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. */
|
||||
case SS_UNSAT:
|
||||
switch (bufp->symbol_type)
|
||||
{
|
||||
case ST_STORAGE:
|
||||
symname = bufp->name.n_strx + stringtab;
|
||||
bufp->symbol_value += data_offset;
|
||||
ms_type = mst_data;
|
||||
break;
|
||||
|
||||
default:
|
||||
continue;
|
||||
}
|
||||
break;
|
||||
|
||||
default:
|
||||
continue;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user