mirror of
https://frontier.innolan.net/github/amigaos-binutils.git
synced 2025-11-23 04:06:44 +00:00
(aout_perform_reloc): Resolve undefined weak symbols against the absolute
section.
This commit is contained in:
@ -618,10 +618,14 @@ aout_perform_reloc (abfd, r, data, sec, obfd, error_message)
|
|||||||
target_section=sym->section;
|
target_section=sym->section;
|
||||||
|
|
||||||
if (bfd_is_und_section(target_section)) /* Error */
|
if (bfd_is_und_section(target_section)) /* Error */
|
||||||
|
{
|
||||||
|
if ((sym->flags & BSF_WEAK) == 0)
|
||||||
{
|
{
|
||||||
DPRINT(10,("aout_perf_reloc: target_sec==UND\n"));
|
DPRINT(10,("aout_perf_reloc: target_sec==UND\n"));
|
||||||
return bfd_reloc_undefined;
|
return bfd_reloc_undefined;
|
||||||
}
|
}
|
||||||
|
target_section=bfd_abs_section_ptr;
|
||||||
|
}
|
||||||
|
|
||||||
relocation=0; sign=FALSE; copy=FALSE; ret=bfd_reloc_ok;
|
relocation=0; sign=FALSE; copy=FALSE; ret=bfd_reloc_ok;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user