This is the mail archive of the
glibc-cvs@sourceware.org
mailing list for the glibc project.
GNU C Library master sources branch master updated. glibc-2.25-263-gb3d9c9a
- From: azanella at sourceware dot org
- To: glibc-cvs at sourceware dot org
- Date: 2 May 2017 19:57:41 -0000
- Subject: GNU C Library master sources branch master updated. glibc-2.25-263-gb3d9c9a
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".
The branch, master has been updated
via b3d9c9a20c7e5cbee15b14990c4972d9df86dac7 (commit)
from 827b82378366b026413c8e80a78ba880b9f94a18 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=b3d9c9a20c7e5cbee15b14990c4972d9df86dac7
commit b3d9c9a20c7e5cbee15b14990c4972d9df86dac7
Author: Vladimir Mezentsev <vladimir.mezentsev@oracle.com>
Date: Tue May 2 16:55:48 2017 -0300
sparc: handle R_SPARC_DISP64 and R_SPARC_REGISTER relocs
The Studio compiler generates relocation types which are not supported
in glibc. Handle these relocs.
Tested in sparc64-linux-gnu. No regressions.
BZ #21179]
* sysdeps/sparc/sparc64/dl-machine.h: Handle R_SPARC_DISP64 and
R_SPARC_REGISTER relocations.
diff --git a/ChangeLog b/ChangeLog
index 29a6592..4bd8578 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2017-05-02 Vladimir Mezentsev <vladimir.mezentsev@oracle.com>
+
+ [BZ #21179]
+ * sysdeps/sparc/sparc64/dl-machine.h: Handle R_SPARC_DISP64 and
+ R_SPARC_REGISTER relocations.
+
2017-05-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
* include/unistd.h (__pread): Add libc_hidden_proto.
diff --git a/sysdeps/sparc/sparc64/dl-machine.h b/sysdeps/sparc/sparc64/dl-machine.h
index 99c00f4..1b59d78 100644
--- a/sysdeps/sparc/sparc64/dl-machine.h
+++ b/sysdeps/sparc/sparc64/dl-machine.h
@@ -537,6 +537,12 @@ elf_machine_rela (struct link_map *map, const Elf64_Rela *reloc,
case R_SPARC_DISP32:
*(unsigned int *) reloc_addr = (value - (Elf64_Addr) reloc_addr);
break;
+ case R_SPARC_DISP64:
+ *reloc_addr = (value - (Elf64_Addr) reloc_addr);
+ break;
+ case R_SPARC_REGISTER:
+ *reloc_addr = value;
+ break;
case R_SPARC_WDISP30:
*(unsigned int *) reloc_addr =
((*(unsigned int *)reloc_addr & 0xc0000000) |
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 6 ++++++
sysdeps/sparc/sparc64/dl-machine.h | 6 ++++++
2 files changed, 12 insertions(+), 0 deletions(-)
hooks/post-receive
--
GNU C Library master sources