mirror of git://sourceware.org/git/glibc.git
Update.
2004-12-12 Ulrich Drepper <drepper@redhat.com> * elf/dl-load.c (_dl_map_object_from_fd): Fix computation of mapping start. It must take the actual pagesize into account, not the alignment in the file.
This commit is contained in:
parent
76761b6378
commit
410828e47a
|
|
@ -1,3 +1,9 @@
|
||||||
|
2004-12-12 Ulrich Drepper <drepper@redhat.com>
|
||||||
|
|
||||||
|
* elf/dl-load.c (_dl_map_object_from_fd): Fix computation of
|
||||||
|
mapping start. It must take the actual pagesize into account, not
|
||||||
|
the alignment in the file.
|
||||||
|
|
||||||
2004-12-11 Ulrich Drepper <drepper@redhat.com>
|
2004-12-11 Ulrich Drepper <drepper@redhat.com>
|
||||||
|
|
||||||
* malloc/malloc.c (_int_realloc): Add checks for corrupted memory.
|
* malloc/malloc.c (_int_realloc): Add checks for corrupted memory.
|
||||||
|
|
|
||||||
|
|
@ -987,12 +987,12 @@ _dl_map_object_from_fd (const char *name, int fd, struct filebuf *fbp,
|
||||||
}
|
}
|
||||||
|
|
||||||
c = &loadcmds[nloadcmds++];
|
c = &loadcmds[nloadcmds++];
|
||||||
c->mapstart = ph->p_vaddr & ~(ph->p_align - 1);
|
c->mapstart = ph->p_vaddr & ~(GLRO(dl_pagesize) - 1);
|
||||||
c->mapend = ((ph->p_vaddr + ph->p_filesz + GLRO(dl_pagesize) - 1)
|
c->mapend = ((ph->p_vaddr + ph->p_filesz + GLRO(dl_pagesize) - 1)
|
||||||
& ~(GLRO(dl_pagesize) - 1));
|
& ~(GLRO(dl_pagesize) - 1));
|
||||||
c->dataend = ph->p_vaddr + ph->p_filesz;
|
c->dataend = ph->p_vaddr + ph->p_filesz;
|
||||||
c->allocend = ph->p_vaddr + ph->p_memsz;
|
c->allocend = ph->p_vaddr + ph->p_memsz;
|
||||||
c->mapoff = ph->p_offset & ~(ph->p_align - 1);
|
c->mapoff = ph->p_offset & ~(GLRO(dl_pagesize) - 1);
|
||||||
|
|
||||||
/* Determine whether there is a gap between the last segment
|
/* Determine whether there is a gap between the last segment
|
||||||
and this one. */
|
and this one. */
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,7 @@
|
||||||
|
2004-12-12 Ulrich Drepper <drepper@redhat.com>
|
||||||
|
|
||||||
|
* internals.h: Include <stdbool.h> to match includes used in nptl.
|
||||||
|
|
||||||
2004-12-01 Jakub Jelinek <jakub@redhat.coM.
|
2004-12-01 Jakub Jelinek <jakub@redhat.coM.
|
||||||
|
|
||||||
* sysdeps/unix/sysv/linux/bits/posix_opt.h (_POSIX_CPUTIME,
|
* sysdeps/unix/sysv/linux/bits/posix_opt.h (_POSIX_CPUTIME,
|
||||||
|
|
|
||||||
|
|
@ -21,6 +21,7 @@
|
||||||
|
|
||||||
#include <limits.h>
|
#include <limits.h>
|
||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
|
#include <stdbool.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <stackinfo.h>
|
#include <stackinfo.h>
|
||||||
#include <sigcontextinfo.h>
|
#include <sigcontextinfo.h>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue