public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] sparc: elf: handle R_SPARC_DISP64 and R_SPARC_REGISTER relocs
       [not found] <1487283626-123877-1-git-send-email-vladimir.mezentsev@oracle.com>
@ 2017-02-17 17:26 ` Vladimir Mezentsev
  2017-02-17 19:48   ` David Miller
  2017-02-17 21:07   ` Joseph Myers
  0 siblings, 2 replies; 3+ messages in thread
From: Vladimir Mezentsev @ 2017-02-17 17:26 UTC (permalink / raw)
  To: libc-alpha; +Cc: toolchain-patches_ww_grp

From: Vladimir Mezentsev <vladimir.mezentsev@oracle.com>

     The Studio compiler generates relocation types which are not supported
     in glibc. Handle these relocs.

     Tested in sparc64-linux-gnu. No regressions.

	* sysdeps/sparc/sparc64/dl-machine.h: Handle R_SPARC_DISP64 and
	R_SPARC_REGISTER relocations.
---
  sysdeps/sparc/sparc64/dl-machine.h |    6 ++++++
  1 files changed, 6 insertions(+), 0 deletions(-)

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) |
-- 
1.7.1

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] sparc: elf: handle R_SPARC_DISP64 and R_SPARC_REGISTER relocs
  2017-02-17 17:26 ` [PATCH] sparc: elf: handle R_SPARC_DISP64 and R_SPARC_REGISTER relocs Vladimir Mezentsev
@ 2017-02-17 19:48   ` David Miller
  2017-02-17 21:07   ` Joseph Myers
  1 sibling, 0 replies; 3+ messages in thread
From: David Miller @ 2017-02-17 19:48 UTC (permalink / raw)
  To: vladimir.mezentsev; +Cc: libc-alpha, toolchain-patches_ww_grp

From: Vladimir Mezentsev <vladimir.mezentsev@oracle.com>
Date: Fri, 17 Feb 2017 09:26:42 -0800

> From: Vladimir Mezentsev <vladimir.mezentsev@oracle.com>
> 
>     The Studio compiler generates relocation types which are not supported
>     in glibc. Handle these relocs.
> 
>     Tested in sparc64-linux-gnu. No regressions.
> 
> 	* sysdeps/sparc/sparc64/dl-machine.h: Handle R_SPARC_DISP64 and
> 	R_SPARC_REGISTER relocations.

This is fine.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] sparc: elf: handle R_SPARC_DISP64 and R_SPARC_REGISTER relocs
  2017-02-17 17:26 ` [PATCH] sparc: elf: handle R_SPARC_DISP64 and R_SPARC_REGISTER relocs Vladimir Mezentsev
  2017-02-17 19:48   ` David Miller
@ 2017-02-17 21:07   ` Joseph Myers
  1 sibling, 0 replies; 3+ messages in thread
From: Joseph Myers @ 2017-02-17 21:07 UTC (permalink / raw)
  To: Vladimir Mezentsev; +Cc: libc-alpha, toolchain-patches_ww_grp

On Fri, 17 Feb 2017, Vladimir Mezentsev wrote:

> From: Vladimir Mezentsev <vladimir.mezentsev@oracle.com>
> 
>     The Studio compiler generates relocation types which are not supported
>     in glibc. Handle these relocs.
> 
>     Tested in sparc64-linux-gnu. No regressions.
> 
> 	* sysdeps/sparc/sparc64/dl-machine.h: Handle R_SPARC_DISP64 and
> 	R_SPARC_REGISTER relocations.

Since you filed bug 21179 for this, you need to include [BZ #21179] in the 
ChangeLog entry.

-- 
Joseph S. Myers
joseph@codesourcery.com

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-02-17 21:07 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <1487283626-123877-1-git-send-email-vladimir.mezentsev@oracle.com>
2017-02-17 17:26 ` [PATCH] sparc: elf: handle R_SPARC_DISP64 and R_SPARC_REGISTER relocs Vladimir Mezentsev
2017-02-17 19:48   ` David Miller
2017-02-17 21:07   ` Joseph Myers

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).