about summary refs log tree commit diff
path: root/math/test-double-finite.c
diff options
context:
space:
mode:
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>2016-10-12 13:06:22 -0300
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>2016-10-12 13:21:08 -0300
commit716458049510215451d25ac131858b6bdf30f99f (patch)
tree2e4c0c164d4d9e6f52196a22c3c0bbce6676acbf /math/test-double-finite.c
parent6a824767d8948faf10d8d3a602eb4f2a59431601 (diff)
downloadglibc-716458049510215451d25ac131858b6bdf30f99f.tar.gz
glibc-716458049510215451d25ac131858b6bdf30f99f.tar.xz
glibc-716458049510215451d25ac131858b6bdf30f99f.zip
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.
Diffstat (limited to 'math/test-double-finite.c')
0 files changed, 0 insertions, 0 deletions