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 Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
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 NPTL is no longer an add-on! 2014-07-07 09:29:06 -07:00
Makefile Build divdi3 only for architecture that required it 2017-04-06 15:14:34 -03:00
Versions Revert {send,sendm,recv,recvm}msg conformance changes 2016-06-10 11:58:16 -03:00
____longjmp_chk.c Fix struct sigaltstack namespace (bug 21517). 2017-06-05 10:17:46 +00:00
alphasort64.c Move m68k from ports to libc 2014-02-10 20:22:40 +01:00
arch-fork.h Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
brk.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
c++-types.data m68k: Consolidate nptl/ subdirectories under linux/... 2014-06-23 09:24:18 -07:00
clone.S Call exit directly in clone (BZ #21512) 2017-06-26 17:52:20 -03:00
configure Move m68k from ports to libc 2014-02-10 20:22:40 +01:00
configure.ac Move m68k from ports to libc 2014-02-10 20:22:40 +01:00
dl-librecon.h Move m68k from ports to libc 2014-02-10 20:22:40 +01:00
dl-static.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
fxstat.c Move m68k from ports to libc 2014-02-10 20:22:40 +01:00
fxstatat.c Move m68k from ports to libc 2014-02-10 20:22:40 +01:00
getdents64.c Move m68k from ports to libc 2014-02-10 20:22:40 +01:00
getmsg.c Move m68k from ports to libc 2014-02-10 20:22:40 +01:00
getpagesize.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
getsysstats.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
glob64.c Move m68k from ports to libc 2014-02-10 20:22:40 +01:00
init-first.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
kernel-features.h Remove __ASSUME_REQUEUE_PI 2017-04-04 18:02:02 -03:00
ldconfig.h Move m68k from ports to libc 2014-02-10 20:22:40 +01:00
ldsodefs.h Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
libc-m68k-vdso.c Move m68k from ports to libc 2014-02-10 20:22:40 +01:00
localplt.data ld.so: Introduce struct dl_exception 2017-08-10 16:54:57 +02:00
lockf64.c Move m68k from ports to libc 2014-02-10 20:22:40 +01:00
lxstat.c Whitespace fixes 2014-02-10 20:24:03 +01:00
m68k-helpers.S Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
m68k-vdso.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
m68k-vdso.h Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
mmap_internal.h posix: Fix mmap for m68k and ia64 (BZ#21908) 2017-08-14 10:35:14 -03:00
mremap.S Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
pt-vfork.c m68k: Consolidate NPTL/non versions of vfork 2014-06-14 21:37:34 +02:00
putmsg.c Move m68k from ports to libc 2014-02-10 20:22:40 +01:00
readdir64.c Move m68k from ports to libc 2014-02-10 20:22:40 +01:00
readdir64_r.c Move m68k from ports to libc 2014-02-10 20:22:40 +01:00
register-dump.h Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
scandir64.c Move m68k from ports to libc 2014-02-10 20:22:40 +01:00
sigcontextinfo.h Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
syscall.S Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
syscalls.list posix: Consolidate Linux waitpid syscall 2017-05-18 18:06:47 -03:00
sysdep-cancel.h Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
sysdep.S Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
sysdep.h Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
versionsort64.c Move m68k from ports to libc 2014-02-10 20:22:40 +01:00
vfork.S Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
xstat.c Move m68k from ports to libc 2014-02-10 20:22:40 +01:00