blob: cbb95d4c740f8ff23e66292fb9732f0b6dc85cb2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
--- bfd/elf64-ppc.c.jj Wed Jul 23 11:08:09 2003
+++ bfd/elf64-ppc.c Mon Jul 28 07:54:27 2003
@@ -8208,7 +8208,12 @@ ppc64_elf_relocate_section (bfd *output_
else if (!SYMBOL_REFERENCES_LOCAL (info, h)
&& !is_opd
&& r_type != R_PPC64_TOC)
- outrel.r_info = ELF64_R_INFO (h->dynindx, r_type);
+ {
+ outrel.r_info = ELF64_R_INFO (h->dynindx, r_type);
+ if (h->dynindx == -1
+ && h->root.type == bfd_link_hash_undefweak)
+ memset (&outrel, 0, sizeof outrel);
+ }
else
{
/* This symbol is local, or marked to become local,
|