[2.3.33 PATCH] shut binfmt_aout up

david parsons (orc@pell.portland.or.us)
18 Dec 1999 10:34:35 -0800


Binfmt_aout is still complaining bitterly about a.out shared libraries;
the rate limiting code means that my system logs aren't getting spammed
quite so quickly, but they are still getting spammed.

____
david parsons \bi/ People who use a.out these days are doing it
\/ intentionally. Really.

--- linux/fs/binfmt_aout.c.orig Sat Dec 18 10:25:30 1999
+++ linux/fs/binfmt_aout.c Sat Dec 18 10:27:49 1999
@@ -353,6 +353,7 @@
return fd;
file = fget(fd);

+#if WE_HATE_AOUT
if ((fd_offset & ~PAGE_MASK) != 0 &&
(jiffies-error_time) > 5*HZ)
{
@@ -361,6 +362,7 @@
file->f_dentry->d_name.name);
error_time = jiffies;
}
+#endif

if (!file->f_op || !file->f_op->mmap || ((fd_offset & ~PAGE_MASK) != 0)) {
fput(file);
@@ -484,6 +486,7 @@
start_addr = ex.a_entry & 0xfffff000;

if ((N_TXTOFF(ex) & ~PAGE_MASK) != 0) {
+#if WE_HATE_AOUT
static unsigned long error_time;

if ((jiffies-error_time) > 5*HZ)
@@ -493,6 +496,7 @@
file->f_dentry->d_name.name);
error_time = jiffies;
}
+#endif

do_brk(start_addr, ex.a_text + ex.a_data + ex.a_bss);

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/