From ca97fb53255da0a01195a1b43c0d9138a4b44f49 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Mon, 3 Mar 2003 19:08:31 +0000 Subject: Update. * elf/dl-load.c (struct filebuf): For 64-bit platforms use 640 byte filebuf size. --- elf/dl-load.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'elf') diff --git a/elf/dl-load.c b/elf/dl-load.c index 71a2ded832..4559c08c05 100644 --- a/elf/dl-load.c +++ b/elf/dl-load.c @@ -26,6 +26,7 @@ #include #include #include +#include #include #include #include @@ -109,6 +110,11 @@ ELF_PREFERRED_ADDRESS_DATA; struct filebuf { ssize_t len; +#ifdef __WORDSIZE == 32 +# define FILEBUF_SIZE 512 +#else +# define FILEBUF_SIZE 640 +#endif char buf[512] __attribute__ ((aligned (__alignof (ElfW(Ehdr))))); }; -- cgit 1.4.1