Fix a problem with static linking with cross tools.
This commit is contained in:
parent
bd5f7da29f
commit
07b678c0c3
2 changed files with 17 additions and 5 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2002-04-30 Tom Rix <trix@redhat.com>
|
||||||
|
|
||||||
|
* xcofflink.c (xcoff_link_add_symbols): Always copy undef C_EXT
|
||||||
|
symbol names into the hash table.
|
||||||
|
|
||||||
2002-04-28 Tom Rix <trix@redhat.com>
|
2002-04-28 Tom Rix <trix@redhat.com>
|
||||||
|
|
||||||
* coff-rs6000.c (xcoff_calculate_relocation) : Function table for
|
* coff-rs6000.c (xcoff_calculate_relocation) : Function table for
|
||||||
|
|
|
@ -1778,12 +1778,19 @@ xcoff_link_add_symbols (abfd, info)
|
||||||
if (info->hash->creator == abfd->xvec)
|
if (info->hash->creator == abfd->xvec)
|
||||||
{
|
{
|
||||||
if (! bfd_is_und_section (section))
|
if (! bfd_is_und_section (section))
|
||||||
*sym_hash = xcoff_link_hash_lookup (xcoff_hash_table (info),
|
{
|
||||||
name, true, copy, false);
|
*sym_hash = xcoff_link_hash_lookup (xcoff_hash_table (info),
|
||||||
|
name, true, copy, false);
|
||||||
|
}
|
||||||
else
|
else
|
||||||
*sym_hash = ((struct xcoff_link_hash_entry *)
|
{
|
||||||
bfd_wrapped_link_hash_lookup (abfd, info, name,
|
/* Make a copy of the symbol name to prevent problems with
|
||||||
true, copy, false));
|
merging symbols. */
|
||||||
|
*sym_hash = ((struct xcoff_link_hash_entry *)
|
||||||
|
bfd_wrapped_link_hash_lookup (abfd, info, name,
|
||||||
|
true, true,
|
||||||
|
false));
|
||||||
|
}
|
||||||
if (*sym_hash == NULL)
|
if (*sym_hash == NULL)
|
||||||
goto error_return;
|
goto error_return;
|
||||||
if (((*sym_hash)->root.type == bfd_link_hash_defined
|
if (((*sym_hash)->root.type == bfd_link_hash_defined
|
||||||
|
|
Loading…
Reference in a new issue