public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: "H. J. Lu" <hjl@lucon.org>
To: akpm@osdl.org
Cc: linux kernel <linux-kernel@vger.kernel.org>
Subject: Re: define-auxiliary-vector-size-at_vector_size.patch added to -mm tree
Date: Tue, 26 Jul 2005 17:26:08 -0700	[thread overview]
Message-ID: <20050727002608.GA7469@lucon.org> (raw)
In-Reply-To: <200507262144.j6QLiJVC015284@shell0.pdx.osdl.net>

[-- Attachment #1: Type: text/plain, Size: 1200 bytes --]

On Tue, Jul 26, 2005 at 02:46:20PM -0700, akpm@osdl.org wrote:
> 
> The patch titled
> 
>      Define auxiliary vector size, AT_VECTOR_SIZE
> 
> has been added to the -mm tree.  Its filename is
> 
>      define-auxiliary-vector-size-at_vector_size.patch
> 
> Patches currently in -mm which might be from hjl@lucon.org are
> 
> define-auxiliary-vector-size-at_vector_size.patch
> 
> 

My patch breaks x86_64 build. This patch will fix x86_64 build. I am
also enclosing the updated full patch.


H.J.
----
--- linux/arch/x86_64/ia32/ia32_binfmt.c.auxv	2005-07-08 11:50:04.000000000 -0700
+++ linux/arch/x86_64/ia32/ia32_binfmt.c	2005-07-26 16:13:58.312017331 -0700
@@ -9,6 +9,7 @@
 #include <linux/config.h> 
 #include <linux/stddef.h>
 #include <linux/rwsem.h>
+#define __ASM_X86_64_ELF_H 1
 #include <linux/sched.h>
 #include <linux/compat.h>
 #include <linux/string.h>
@@ -181,10 +182,7 @@ struct elf_prpsinfo
 
 #define user user32
 
-#define __ASM_X86_64_ELF_H 1
 #define elf_read_implies_exec(ex, have_pt_gnu_stack)	(!(have_pt_gnu_stack))
-//#include <asm/ia32.h>
-#include <linux/elf.h>
 
 typedef struct user_i387_ia32_struct elf_fpregset_t;
 typedef struct user32_fxsr_struct elf_fpxregset_t;

[-- Attachment #2: linux-2.6.12-auxv-1.patch --]
[-- Type: text/plain, Size: 1614 bytes --]

--- linux/arch/x86_64/ia32/ia32_binfmt.c.auxv	2005-07-08 11:50:04.000000000 -0700
+++ linux/arch/x86_64/ia32/ia32_binfmt.c	2005-07-26 16:13:58.312017331 -0700
@@ -9,6 +9,7 @@
 #include <linux/config.h> 
 #include <linux/stddef.h>
 #include <linux/rwsem.h>
+#define __ASM_X86_64_ELF_H 1
 #include <linux/sched.h>
 #include <linux/compat.h>
 #include <linux/string.h>
@@ -181,10 +182,7 @@ struct elf_prpsinfo
 
 #define user user32
 
-#define __ASM_X86_64_ELF_H 1
 #define elf_read_implies_exec(ex, have_pt_gnu_stack)	(!(have_pt_gnu_stack))
-//#include <asm/ia32.h>
-#include <linux/elf.h>
 
 typedef struct user_i387_ia32_struct elf_fpregset_t;
 typedef struct user32_fxsr_struct elf_fpxregset_t;
--- linux/include/linux/elf.h.auxv	2005-03-01 23:37:49.000000000 -0800
+++ linux/include/linux/elf.h	2005-07-26 16:13:24.185651900 -0700
@@ -181,6 +181,8 @@ typedef __s64	Elf64_Sxword;
 
 #define AT_SECURE 23   /* secure mode boolean */
 
+#define AT_VECTOR_SIZE  42 /* Size of auxiliary table.  */
+
 typedef struct dynamic{
   Elf32_Sword d_tag;
   union{
--- linux/include/linux/sched.h.auxv	2005-07-08 11:50:09.000000000 -0700
+++ linux/include/linux/sched.h	2005-07-26 16:13:24.204648764 -0700
@@ -35,6 +35,8 @@
 #include <linux/topology.h>
 #include <linux/seccomp.h>
 
+#include <linux/elf.h>	/* For AT_VECTOR_SIZE */
+
 struct exec_domain;
 
 /*
@@ -243,7 +245,7 @@ struct mm_struct {
 	mm_counter_t _rss;
 	mm_counter_t _anon_rss;
 
-	unsigned long saved_auxv[42]; /* for /proc/PID/auxv */
+	unsigned long saved_auxv[AT_VECTOR_SIZE]; /* for /proc/PID/auxv */
 
 	unsigned dumpable:1;
 	cpumask_t cpu_vm_mask;

       reply	other threads:[~2005-07-27  0:28 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <200507262144.j6QLiJVC015284@shell0.pdx.osdl.net>
2005-07-27  0:26 ` H. J. Lu [this message]
2005-07-27  4:53   ` define-auxiliary-vector-size-at_vector_size.patch added to -mm tree Andrew Morton
2005-07-27  4:59     ` H. J. Lu
2005-07-27  5:06       ` Andrew Morton
2005-07-27 18:38         ` H. J. Lu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20050727002608.GA7469@lucon.org \
    --to=hjl@lucon.org \
    --cc=akpm@osdl.org \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox