2003-03-07 07:56:18

by Marc Zyngier

[permalink] [raw]
Subject: [PATCH] Fix fs/binfmt_elf.c build

Andi,

The stack reducing patch that recently went in prevent alpha from
building (missing some ELF_CORE_COPY_XFPREGS ifdefs). The excluded
patch fixes it.

Thanks,

M.

# This is a BitKeeper generated patch for the following project:
# Project Name: Linux kernel tree
# This patch format is intended for GNU patch command version 2.5 or higher.
# This patch includes the following deltas:
# ChangeSet 1.1046 -> 1.1047
# fs/binfmt_elf.c 1.39 -> 1.40
#
# The following is the BitKeeper ChangeSet Log
# --------------------------------------------
# 03/03/07 [email protected] 1.1047
# fs/binfmt_elf.c : #ifdef XFPREGS stuff when needed.
# --------------------------------------------
#
diff -Nru a/fs/binfmt_elf.c b/fs/binfmt_elf.c
--- a/fs/binfmt_elf.c Fri Mar 7 09:00:08 2003
+++ b/fs/binfmt_elf.c Fri Mar 7 09:00:08 2003
@@ -1194,7 +1194,9 @@
LIST_HEAD(thread_list);
struct list_head *t;
elf_fpregset_t *fpu = NULL;
+#ifdef ELF_CORE_COPY_XFPREGS
elf_fpxregset_t *xfpu = NULL;
+#endif
int thread_status_size = 0;

/*
@@ -1400,7 +1402,9 @@
kfree(psinfo);
kfree(notes);
kfree(fpu);
+#ifdef ELF_CORE_COPY_XFPREGS
kfree(xfpu);
+#endif
return has_dumped;
#undef NUM_NOTES
}

--
Places change, faces change. Life is so very strange.


2003-03-07 16:09:28

by Randy.Dunlap

[permalink] [raw]
Subject: Re: [PATCH] Fix fs/binfmt_elf.c build

On 07 Mar 2003 09:05:26 +0100 Marc Zyngier <[email protected]> wrote:

| Andi,
|
| The stack reducing patch that recently went in prevent alpha from
| building (missing some ELF_CORE_COPY_XFPREGS ifdefs). The excluded
| patch fixes it.
|
| Thanks,

Ugh, sorry about that.

--
~Randy