public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
* Fwd: [PATCH] [BZ #21179] - handle R_SPARC_DISP64 and R_SPARC_REGISTER relocs
       [not found] <1487622402-129515-1-git-send-email-vladimir.mezentsev@oracle.com>
@ 2017-02-20 20:37 ` Vladimir Mezentsev
  2017-05-02 19:57   ` Adhemerval Zanella
  0 siblings, 1 reply; 2+ messages in thread
From: Vladimir Mezentsev @ 2017-02-20 20:37 UTC (permalink / raw)
  To: libc-alpha

On 02/17/2017 01:07 PM, Joseph Myers wrote:
> 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.

  Done.

Can somebody apply my fixes. I don't have write access to the repo.
Thank you.
-Vladimir



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.

	[BZ #21179]
	* 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] 2+ messages in thread

* Re: Fwd: [PATCH] [BZ #21179] - handle R_SPARC_DISP64 and R_SPARC_REGISTER relocs
  2017-02-20 20:37 ` Fwd: [PATCH] [BZ #21179] - handle R_SPARC_DISP64 and R_SPARC_REGISTER relocs Vladimir Mezentsev
@ 2017-05-02 19:57   ` Adhemerval Zanella
  0 siblings, 0 replies; 2+ messages in thread
From: Adhemerval Zanella @ 2017-05-02 19:57 UTC (permalink / raw)
  To: libc-alpha



On 20/02/2017 17:37, Vladimir Mezentsev wrote:
> On 02/17/2017 01:07 PM, Joseph Myers wrote:
>> 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.
> 
>  Done.
> 
> Can somebody apply my fixes. I don't have write access to the repo.
> Thank you.
> -Vladimir
> 
> 
> 
> 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.
> 
>     [BZ #21179]
>     * 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) |

Done.

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

end of thread, other threads:[~2017-05-02 19:57 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <1487622402-129515-1-git-send-email-vladimir.mezentsev@oracle.com>
2017-02-20 20:37 ` Fwd: [PATCH] [BZ #21179] - handle R_SPARC_DISP64 and R_SPARC_REGISTER relocs Vladimir Mezentsev
2017-05-02 19:57   ` Adhemerval Zanella

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