mirror of
https://sourceware.org/git/glibc.git
synced 2025-08-05 19:35:52 +03:00
Update.
* elf/dl-load.c (struct filebuf): For 64-bit platforms use 640 byte filebuf size.
This commit is contained in:
@@ -1,5 +1,8 @@
|
|||||||
2003-03-03 Ulrich Drepper <drepper@redhat.com>
|
2003-03-03 Ulrich Drepper <drepper@redhat.com>
|
||||||
|
|
||||||
|
* elf/dl-load.c (struct filebuf): For 64-bit platforms use 640
|
||||||
|
byte filebuf size.
|
||||||
|
|
||||||
* libio/fileops.c (_IO_new_file_fopen): Close stillborn descriptor
|
* libio/fileops.c (_IO_new_file_fopen): Close stillborn descriptor
|
||||||
if ccs parameter isn't valid. Reported by Andreas Schwab.
|
if ccs parameter isn't valid. Reported by Andreas Schwab.
|
||||||
|
|
||||||
|
@@ -26,6 +26,7 @@
|
|||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <ldsodefs.h>
|
#include <ldsodefs.h>
|
||||||
|
#include <bits/wordsize.h>
|
||||||
#include <sys/mman.h>
|
#include <sys/mman.h>
|
||||||
#include <sys/param.h>
|
#include <sys/param.h>
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
@@ -109,6 +110,11 @@ ELF_PREFERRED_ADDRESS_DATA;
|
|||||||
struct filebuf
|
struct filebuf
|
||||||
{
|
{
|
||||||
ssize_t len;
|
ssize_t len;
|
||||||
|
#ifdef __WORDSIZE == 32
|
||||||
|
# define FILEBUF_SIZE 512
|
||||||
|
#else
|
||||||
|
# define FILEBUF_SIZE 640
|
||||||
|
#endif
|
||||||
char buf[512] __attribute__ ((aligned (__alignof (ElfW(Ehdr)))));
|
char buf[512] __attribute__ ((aligned (__alignof (ElfW(Ehdr)))));
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user