artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b0a17d8
)
Handle R_SPARC_WPLT30 relocations against a local symbol. Fixes building the
author
kettenis
<kettenis@openbsd.org>
Sat, 15 Apr 2017 10:23:35 +0000
(10:23 +0000)
committer
kettenis
<kettenis@openbsd.org>
Sat, 15 Apr 2017 10:23:35 +0000
(10:23 +0000)
audio/openal port with clang.
ok guenther@
gnu/usr.bin/binutils-2.17/bfd/elfxx-sparc.c
patch
|
blob
|
history
diff --git
a/gnu/usr.bin/binutils-2.17/bfd/elfxx-sparc.c
b/gnu/usr.bin/binutils-2.17/bfd/elfxx-sparc.c
index
6b3abcb
..
1e5907a
100644
(file)
--- a/
gnu/usr.bin/binutils-2.17/bfd/elfxx-sparc.c
+++ b/
gnu/usr.bin/binutils-2.17/bfd/elfxx-sparc.c
@@
-1280,6
+1280,8
@@
_bfd_sparc_elf_check_relocs (bfd *abfd, struct bfd_link_info *info,
goto r_sparc_plt32;
break;
}
+ else if (r_type == R_SPARC_WPLT30)
+ break;
/* It does not make sense to have a procedure linkage
table entry for a local symbol. */
@@
-2679,6
+2681,11
@@
_bfd_sparc_elf_relocate_section (bfd *output_bfd, struct bfd_link_info *info,
if (h == NULL)
break;
}
+ else if (r_type == R_SPARC_WPLT30)
+ {
+ if (h == NULL)
+ break;
+ }
else
{
BFD_ASSERT (h != NULL);