2
0
mirror of https://frontier.innolan.net/github/amigaos-binutils.git synced 2025-11-22 00:11:50 +00:00

(aout_perform_reloc): Resolve undefined weak symbols against the absolute

section.
This commit is contained in:
Gunther Nikl
2008-11-25 20:45:59 +00:00
parent 36ab9c5495
commit 24c5353b1a

View File

@ -619,8 +619,12 @@ aout_perform_reloc (abfd, r, data, sec, obfd, error_message)
if (bfd_is_und_section(target_section)) /* Error */ if (bfd_is_und_section(target_section)) /* Error */
{ {
DPRINT(10,("aout_perf_reloc: target_sec==UND\n")); if ((sym->flags & BSF_WEAK) == 0)
return bfd_reloc_undefined; {
DPRINT(10,("aout_perf_reloc: target_sec==UND\n"));
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;