glibc/sysdeps/unix/sysv/linux/m68k
Adhemerval Zanella 1f14d0c3dd posix: Fix mmap for m68k and ia64 (BZ#21908)
Default semantic for mmap2 syscall is to take the offset in 4096-byte
units.  However m68k and ia64 mmap2 implementation take in the
configured pageunit units and for both architecture it can be
different values.

This patch fixes the m68k runtime discover of mmap2 offset unit
and adds the ia64 definition to find it at runtime.

Checked the basic tst-mmap and tst-mmap-offset on m68k (the system
is configured with 4k, so current code is already passing on this
system) and a sanity check on x86_64-linux-gnu (which should not be
affected by this change).  Sergei also states that ia64 loader now
work correctly with this change.

	Adhemerval Zanella  <adhemerval.zanella@linaro.org>
	Sergei Trofimovich  <slyfox@inbox.ru>

	* sysdeps/unix/sysv/linux/m68k/mmap_internal.h (MMAP2_PAGE_SHIFT):
	Rename to MMAP2_PAGE_UNIT.
	* sysdeps/unix/sysv/linux/mmap.c: Include mmap_internal iff
	__OFF_T_MATCHES_OFF64_T is not defined.
	* sysdeps/unix/sysv/linux/mmap_internal.h (page_unit): Declare as
	uint64_t.
	(MMAP2_PAGE_UNIT) [MMAP2_PAGE_UNIT == -1]: Redefine to page_unit.
	(page_unit) [MMAP2_PAGE_UNIT != -1]: Remove definition.
2017-08-14 10:35:14 -03:00
..
bits
coldfire Optimize generic spinlock code and use C11 like atomic macros. 2017-06-06 09:41:56 +02:00
m680x0 posix: Implement preadv2 and pwritev2 2017-05-31 17:35:46 -03:00
sys Fix uc_* namespace (bug 21457). 2017-08-09 17:51:26 +00:00
Implies
Makefile
Versions
____longjmp_chk.c Fix struct sigaltstack namespace (bug 21517). 2017-06-05 10:17:46 +00:00
alphasort64.c
arch-fork.h
brk.c
c++-types.data
clone.S Call exit directly in clone (BZ #21512) 2017-06-26 17:52:20 -03:00
configure
configure.ac
dl-librecon.h
dl-static.c
fxstat.c
fxstatat.c
getdents64.c
getmsg.c
getpagesize.c
getsysstats.c
glob64.c
init-first.c
kernel-features.h
ldconfig.h
ldsodefs.h
libc-m68k-vdso.c
localplt.data ld.so: Introduce struct dl_exception 2017-08-10 16:54:57 +02:00
lockf64.c
lxstat.c
m68k-helpers.S
m68k-vdso.c
m68k-vdso.h
mmap_internal.h posix: Fix mmap for m68k and ia64 (BZ#21908) 2017-08-14 10:35:14 -03:00
mremap.S
pt-vfork.c
putmsg.c
readdir64.c
readdir64_r.c
register-dump.h
scandir64.c
sigcontextinfo.h
syscall.S
syscalls.list
sysdep-cancel.h
sysdep.S
sysdep.h
versionsort64.c
vfork.S
xstat.c