> Hmmm, sorry about that. Which target? x86_64? It does seem that > glibc consolidated mmap implementations in 2.26, but even in 2.22 I > see definitions for __mmap.
GNU C Library (GNU libc) stable release version 2.22 (git bbab82c25da9), by Roland McGrath et al. Copyright (C) 2015 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Configured for x86_64-suse-linux. Compiled by GNU CC version 4.8.5. Available extensions: crypt add-on version 2.1 by Michael Glad and others GNU Libidn by Simon Josefsson Native POSIX Threads Library by Ulrich Drepper et al BIND-8.2.3-T5B libc ABIs: UNIQUE IFUNC For bug reporting instructions, please see: <http://bugs.opensuse.org>. eric@polaris:~/build/gcc/native> readelf -s /lib64/libc.so.6 | grep mmap 317: 00000000000e8ac0 36 FUNC WEAK DEFAULT 13 mmap64@@GLIBC_2.2.5 657: 00000000000e8ac0 36 FUNC WEAK DEFAULT 13 mmap@@GLIBC_2.2.5 332: 0000000000070f00 320 FUNC LOCAL DEFAULT 13 _IO_wfile_underflow_mmap 364: 0000000000075310 453 FUNC LOCAL DEFAULT 13 mmap_remap_check 365: 00000000000754f0 90 FUNC LOCAL DEFAULT 13 _IO_file_sync_mmap 366: 0000000000075550 306 FUNC LOCAL DEFAULT 13 decide_maybe_mmap 368: 00000000000757a0 238 FUNC LOCAL DEFAULT 13 _IO_file_xsgetn_mmap 1727: 000000000039e5c0 168 OBJECT LOCAL DEFAULT 28 _IO_file_jumps_mmap 2012: 00000000000e8ac0 36 FUNC LOCAL DEFAULT 13 __GI_mmap 2065: 0000000000075a80 224 FUNC LOCAL DEFAULT 13 _IO_file_seekoff_mmap 2449: 00000000000752c0 74 FUNC LOCAL DEFAULT 13 _IO_file_close_mmap 2476: 00000000000e8ac0 36 FUNC LOCAL DEFAULT 13 __GI_mmap64 2520: 000000000006b040 63 FUNC LOCAL DEFAULT 13 __fopen_maybe_mmap 2605: 00000000000e8ac0 36 FUNC LOCAL DEFAULT 13 __GI___mmap64 2742: 00000000000e8ac0 36 FUNC LOCAL DEFAULT 13 __GI___mmap 2993: 00000000000e8ac0 36 FUNC LOCAL DEFAULT 13 __mmap64 3161: 00000000000e8ac0 36 FUNC LOCAL DEFAULT 13 __mmap 3304: 0000000000074d10 93 FUNC LOCAL DEFAULT 13 _IO_file_setbuf_mmap 3351: 0000000000075b60 81 FUNC LOCAL DEFAULT 13 _IO_file_underflow_mmap 3365: 000000000039e500 168 OBJECT LOCAL DEFAULT 28 _IO_file_jumps_maybe_mmap 3483: 000000000039e140 168 OBJECT LOCAL DEFAULT 28 _IO_wfile_jumps_mmap 5919: 00000000000e8ac0 36 FUNC WEAK DEFAULT 13 mmap64 6128: 00000000000e8ac0 36 FUNC WEAK DEFAULT 13 mmap -- Eric Botcazou