Patchwork fix for bug 2577

login
register
mail settings
Submitter Andrei Dinu
Date Sept. 24, 2012, 11:04 a.m.
Message ID <1348484687-8019-1-git-send-email-andrei.adrianx.dinu@intel.com>
Download mbox | patch
Permalink /patch/37107/
State New
Headers show

Comments

Andrei Dinu - Sept. 24, 2012, 11:04 a.m.
Upstream status : pending

Signed-off-by: Andrei Dinu <andrei.adrianx.dinu@intel.com>
---
 .../eglibc-2.16/0001-R_ARM_TLS_DTPOFF32.patch      |   25 ++++++++++++++++++++
 meta/recipes-core/eglibc/eglibc_2.16.bb            |    1 +
 2 files changed, 26 insertions(+)
 create mode 100644 meta/recipes-core/eglibc/eglibc-2.16/0001-R_ARM_TLS_DTPOFF32.patch
Andrei Dinu - Sept. 24, 2012, 11:08 a.m.
Please ignore. will resend.

On 09/24/2012 02:04 PM, Andrei Dinu wrote:
> Upstream status : pending
>
> Signed-off-by: Andrei Dinu <andrei.adrianx.dinu@intel.com>
> ---
>   .../eglibc-2.16/0001-R_ARM_TLS_DTPOFF32.patch      |   25 ++++++++++++++++++++
>   meta/recipes-core/eglibc/eglibc_2.16.bb            |    1 +
>   2 files changed, 26 insertions(+)
>   create mode 100644 meta/recipes-core/eglibc/eglibc-2.16/0001-R_ARM_TLS_DTPOFF32.patch
>
> diff --git a/meta/recipes-core/eglibc/eglibc-2.16/0001-R_ARM_TLS_DTPOFF32.patch b/meta/recipes-core/eglibc/eglibc-2.16/0001-R_ARM_TLS_DTPOFF32.patch
> new file mode 100644
> index 0000000..f2480e5
> --- /dev/null
> +++ b/meta/recipes-core/eglibc/eglibc-2.16/0001-R_ARM_TLS_DTPOFF32.patch
> @@ -0,0 +1,25 @@
> +From 73890569c5048aef34d9a6f08907895a53211d72 Mon Sep 17 00:00:00 2001
> +From: Andrei Dinu <andrei.adrianx.dinu@intel.com>
> +Date: Mon, 24 Sep 2012 10:21:49 +0300
> +Subject: [PATCH] updated version
> +
> +Signed-off-by: Andrei Dinu <andrei.adrianx.dinu@intel.com>
> +---
> + .../libc/ports/sysdeps/arm/dl-machine.h            |    2 +-
> + 1 file changed, 1 insertion(+), 1 deletion(-)
> +
> +ndex 8d905e8..dcfa71e 100644
> +--- libc.orig/ports/sysdeps/arm/dl-machine.h
> ++++ libc/ports/sysdeps/arm/dl-machine.h
> +@@ -503,7 +503,7 @@ elf_machine_rel (struct link_map *map, const Elf32_Rel *reloc,
> +
> + 	case R_ARM_TLS_DTPOFF32:
> + 	  if (sym != NULL)
> +-	    *reloc_addr += sym->st_value;
> ++	    *reloc_addr = sym->st_value;
> + 	  break;
> +
> + 	case R_ARM_TLS_TPOFF32:
> +--
> +1.7.9.5
> +
> diff --git a/meta/recipes-core/eglibc/eglibc_2.16.bb b/meta/recipes-core/eglibc/eglibc_2.16.bb
> index 78dc44a..68da385 100644
> --- a/meta/recipes-core/eglibc/eglibc_2.16.bb
> +++ b/meta/recipes-core/eglibc/eglibc_2.16.bb
> @@ -29,6 +29,7 @@ SRC_URI = "svn://www.eglibc.org/svn/branches/;module=${EGLIBC_BRANCH};protocol=h
>              file://0001-eglibc-menuconfig-support.patch \
>              file://0002-eglibc-menuconfig-hex-string-options.patch \
>              file://0003-eglibc-menuconfig-build-instructions.patch \
> +           file://0001-R_ARM_TLS_DTPOFF32.patch \
>             "
>   LIC_FILES_CHKSUM = "file://LICENSES;md5=98a1128c4b58120182cbea3b1752d8b9 \
>         file://COPYING;md5=393a5ca445f6965873eca0259a17f833 \
Henning Heinold - Sept. 24, 2012, 11:15 a.m.
On Mon, Sep 24, 2012 at 02:04:47PM +0300, Andrei Dinu wrote:
> Upstream status : pending
> 
> Signed-off-by: Andrei Dinu <andrei.adrianx.dinu@intel.com>
> ---
>  .../eglibc-2.16/0001-R_ARM_TLS_DTPOFF32.patch      |   25 ++++++++++++++++++++
>  meta/recipes-core/eglibc/eglibc_2.16.bb            |    1 +
>  2 files changed, 26 insertions(+)
>  create mode 100644 meta/recipes-core/eglibc/eglibc-2.16/0001-R_ARM_TLS_DTPOFF32.patch
> 
> diff --git a/meta/recipes-core/eglibc/eglibc-2.16/0001-R_ARM_TLS_DTPOFF32.patch b/meta/recipes-core/eglibc/eglibc-2.16/0001-R_ARM_TLS_DTPOFF32.patch
> new file mode 100644
> index 0000000..f2480e5
> --- /dev/null
> +++ b/meta/recipes-core/eglibc/eglibc-2.16/0001-R_ARM_TLS_DTPOFF32.patch
> @@ -0,0 +1,25 @@
> +From 73890569c5048aef34d9a6f08907895a53211d72 Mon Sep 17 00:00:00 2001
> +From: Andrei Dinu <andrei.adrianx.dinu@intel.com>
> +Date: Mon, 24 Sep 2012 10:21:49 +0300
> +Subject: [PATCH] updated version
> +
> +Signed-off-by: Andrei Dinu <andrei.adrianx.dinu@intel.com>
> +---
> + .../libc/ports/sysdeps/arm/dl-machine.h            |    2 +-
> + 1 file changed, 1 insertion(+), 1 deletion(-)
> +
> +ndex 8d905e8..dcfa71e 100644
> +--- libc.orig/ports/sysdeps/arm/dl-machine.h
> ++++ libc/ports/sysdeps/arm/dl-machine.h
> +@@ -503,7 +503,7 @@ elf_machine_rel (struct link_map *map, const Elf32_Rel *reloc,
> + 
> + 	case R_ARM_TLS_DTPOFF32:
> + 	  if (sym != NULL)
> +-	    *reloc_addr += sym->st_value;
> ++	    *reloc_addr = sym->st_value;
> + 	  break;
> + 
> + 	case R_ARM_TLS_TPOFF32:
> +-- 
> +1.7.9.5
> +
> diff --git a/meta/recipes-core/eglibc/eglibc_2.16.bb b/meta/recipes-core/eglibc/eglibc_2.16.bb
> index 78dc44a..68da385 100644
> --- a/meta/recipes-core/eglibc/eglibc_2.16.bb
> +++ b/meta/recipes-core/eglibc/eglibc_2.16.bb
> @@ -29,6 +29,7 @@ SRC_URI = "svn://www.eglibc.org/svn/branches/;module=${EGLIBC_BRANCH};protocol=h
>             file://0001-eglibc-menuconfig-support.patch \
>             file://0002-eglibc-menuconfig-hex-string-options.patch \
>             file://0003-eglibc-menuconfig-build-instructions.patch \
> +           file://0001-R_ARM_TLS_DTPOFF32.patch \
>            "
>  LIC_FILES_CHKSUM = "file://LICENSES;md5=98a1128c4b58120182cbea3b1752d8b9 \
>        file://COPYING;md5=393a5ca445f6965873eca0259a17f833 \
> -- 
> 1.7.9.5

Please resend the patch, with a better/correct commit msg.

Bye Henning

Patch

diff --git a/meta/recipes-core/eglibc/eglibc-2.16/0001-R_ARM_TLS_DTPOFF32.patch b/meta/recipes-core/eglibc/eglibc-2.16/0001-R_ARM_TLS_DTPOFF32.patch
new file mode 100644
index 0000000..f2480e5
--- /dev/null
+++ b/meta/recipes-core/eglibc/eglibc-2.16/0001-R_ARM_TLS_DTPOFF32.patch
@@ -0,0 +1,25 @@ 
+From 73890569c5048aef34d9a6f08907895a53211d72 Mon Sep 17 00:00:00 2001
+From: Andrei Dinu <andrei.adrianx.dinu@intel.com>
+Date: Mon, 24 Sep 2012 10:21:49 +0300
+Subject: [PATCH] updated version
+
+Signed-off-by: Andrei Dinu <andrei.adrianx.dinu@intel.com>
+---
+ .../libc/ports/sysdeps/arm/dl-machine.h            |    2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+ndex 8d905e8..dcfa71e 100644
+--- libc.orig/ports/sysdeps/arm/dl-machine.h
++++ libc/ports/sysdeps/arm/dl-machine.h
+@@ -503,7 +503,7 @@ elf_machine_rel (struct link_map *map, const Elf32_Rel *reloc,
+ 
+ 	case R_ARM_TLS_DTPOFF32:
+ 	  if (sym != NULL)
+-	    *reloc_addr += sym->st_value;
++	    *reloc_addr = sym->st_value;
+ 	  break;
+ 
+ 	case R_ARM_TLS_TPOFF32:
+-- 
+1.7.9.5
+
diff --git a/meta/recipes-core/eglibc/eglibc_2.16.bb b/meta/recipes-core/eglibc/eglibc_2.16.bb
index 78dc44a..68da385 100644
--- a/meta/recipes-core/eglibc/eglibc_2.16.bb
+++ b/meta/recipes-core/eglibc/eglibc_2.16.bb
@@ -29,6 +29,7 @@  SRC_URI = "svn://www.eglibc.org/svn/branches/;module=${EGLIBC_BRANCH};protocol=h
            file://0001-eglibc-menuconfig-support.patch \
            file://0002-eglibc-menuconfig-hex-string-options.patch \
            file://0003-eglibc-menuconfig-build-instructions.patch \
+           file://0001-R_ARM_TLS_DTPOFF32.patch \
           "
 LIC_FILES_CHKSUM = "file://LICENSES;md5=98a1128c4b58120182cbea3b1752d8b9 \
       file://COPYING;md5=393a5ca445f6965873eca0259a17f833 \