glibc/sysdeps/unix/sysv/linux/mips/mips64/n64
Adhemerval Zanella 7164580495 Fix posix_fadvise64 build on mips64n64
Recent binutils versions (at least 2.27) complains about libc.so
when linking sotruss-lib.so with:

  libc.so:(*IND*+0x0): multiple definition of `posix_fadvise64@GLIBC_2.2'
  libc.so::(.text+0xcf940): first defined here
  libc.so:(*IND*+0x0): multiple definition of `posix_fadvise64'
  collect2: error: ld returned 1 exit status

Dynamic symbols for libc.so shows (readelf --dyn-syms):

   262: 000000000010b950    28 FUNC    GLOBAL DEFAULT   12 posix_fadvise64@GLIBC_2.2
   417: 000000000010b950    28 FUNC    WEAK   DEFAULT   12 posix_fadvise64@@GLIBC_2.2
  1505: 000000000010b950    28 FUNC    GLOBAL DEFAULT   12 posix_fadvise64@@GLIBC_2.3.3

That is, two separate definitions at version GLIBC_2.2. The issue is
sysdeps/unix/sysv/linux/posix_fadvise64.c creates posix_fadvise64 weak_alias,
while sysdeps/unix/sysv/linux/mips/mips64/n64/posix_fadvise64.c then adds
compat_symbol / versioned_symbol calls.

The patch remove the weak_alias definition on mips64 specific version so
direct weak_alias is disabled.

Checked on mips64n64 build with binutils 2.27.51.20161012.

	* sysdeps/unix/sysv/linux/mips/mips64/n64/posix_fadvise64.c:
	Undefine weak_alias.
2016-10-12 13:21:08 -03:00
..
c++-types.data MIPS: Consolidate nptl/ subdirectories under linux/... 2014-06-27 11:41:04 -07:00
fstatfs64.c Move mips from ports to libc. 2014-02-10 23:30:21 +00:00
fts64.c Add LFS support for fts functions (bug 11460) 2015-11-06 11:24:16 +01:00
fts.c Add LFS support for fts functions (bug 11460) 2015-11-06 11:24:16 +01:00
ftw64.c Move mips from ports to libc. 2014-02-10 23:30:21 +00:00
ftw.c Move mips from ports to libc. 2014-02-10 23:30:21 +00:00
glob64.c Move mips from ports to libc. 2014-02-10 23:30:21 +00:00
ioctl.S Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
ld.abilist Simplify the abilist format 2015-11-06 13:58:53 +01:00
libc.abilist Minimize sysdeps code involved in defining major/minor/makedev. 2016-08-03 15:23:04 -04:00
libresolv.abilist Simplify the abilist format 2015-11-06 13:58:53 +01:00
mmap64.c Fix MIPS mmap negative offset handling for consistency (bug 19550). 2016-02-01 18:20:21 +00:00
posix_fadvise64.c Fix posix_fadvise64 build on mips64n64 2016-10-12 13:21:08 -03:00
sendfile64.c Move mips from ports to libc. 2014-02-10 23:30:21 +00:00
statfs64.c Move mips from ports to libc. 2014-02-10 23:30:21 +00:00
syscalls.list Consolidate Linux sync_file_range implementations 2016-10-11 16:21:12 -03:00
sysdep.h VDSO support for MIPS 2016-04-12 11:05:13 +01:00