All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Elf32_Dyn::d_val should be an Elf32_Word.
@ 2014-07-02 22:40 enh
  0 siblings, 0 replies; 2+ messages in thread
From: enh @ 2014-07-02 22:40 UTC (permalink / raw)
  To: linux-kernel

The ELF specification says that d_val is an Elf32_Word, not an Elf32_Sword.
This also matches glibc, and fixes bionic (Android's C library, which uses
the uapi header).

Patch is against -rc ToT.

Signed-off-by: Elliott Hughes <enh@google.com>
---
 include/uapi/linux/elf.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/uapi/linux/elf.h b/include/uapi/linux/elf.h
index ef6103b..d7878dc 100644
--- a/include/uapi/linux/elf.h
+++ b/include/uapi/linux/elf.h
@@ -137,7 +137,7 @@ typedef __s64 Elf64_Sxword;
 typedef struct dynamic{
   Elf32_Sword d_tag;
   union{
-    Elf32_Sword d_val;
+    Elf32_Word d_val;
     Elf32_Addr d_ptr;
   } d_un;
 } Elf32_Dyn;
-- 
2.0.0.526.g5318336

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

* [PATCH] Elf32_Dyn::d_val should be an Elf32_Word.
@ 2014-08-14 19:13 enh
  0 siblings, 0 replies; 2+ messages in thread
From: enh @ 2014-08-14 19:13 UTC (permalink / raw)
  To: linux-kernel, torvalds

The ELF specification says that d_val is an Elf32_Word, not an Elf32_Sword.
This also matches glibc, and fixes bionic (Android's C library, which uses
the uapi header).

Patch is against -rc ToT.

Signed-off-by: Elliott Hughes <enh@google.com>
---
 include/uapi/linux/elf.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/uapi/linux/elf.h b/include/uapi/linux/elf.h
index ef6103b..d7878dc 100644
--- a/include/uapi/linux/elf.h
+++ b/include/uapi/linux/elf.h
@@ -137,7 +137,7 @@ typedef __s64 Elf64_Sxword;
 typedef struct dynamic{
   Elf32_Sword d_tag;
   union{
-    Elf32_Sword d_val;
+    Elf32_Word d_val;
     Elf32_Addr d_ptr;
   } d_un;
 } Elf32_Dyn;

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

end of thread, other threads:[~2014-08-14 19:13 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-07-02 22:40 [PATCH] Elf32_Dyn::d_val should be an Elf32_Word enh
2014-08-14 19:13 enh

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.