summary refs log tree commit diff
diff options
context:
space:
mode:
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>2017-03-14 16:42:08 -0300
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>2017-03-14 16:42:08 -0300
commited7d6072f25f75b808b40c206371361f1313f342 (patch)
treea592e8ef437d1d637ad9142a4bbf69475237b553
parent605c5ef4fb7c9a9bbf225724ef73e6437476fb3c (diff)
downloadglibc-ed7d6072f25f75b808b40c206371361f1313f342.tar.gz
glibc-ed7d6072f25f75b808b40c206371361f1313f342.tar.xz
glibc-ed7d6072f25f75b808b40c206371361f1313f342.zip
Fix missing posix_fadvise64 mips64 static build (BZ #21232)
This patch fixes the missing posix_fadvise64 symbol for static build
required for _FILE_OFFSET_BITS=64 on mips64 build.

Checked on a mips64-linux-gnu build with run-built-tests=no.

	[BZ #21232]
	* sysdeps/unix/sysv/linux/mips/mips64/n64/posix_fadvise64.c: Add
	posix_fadvise64 weak_alias for static build.
-rw-r--r--ChangeLog6
-rw-r--r--sysdeps/unix/sysv/linux/mips/mips64/n64/posix_fadvise64.c2
2 files changed, 8 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 3427a680ac..4206e36e98 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2017-03-14  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
+
+	[BZ #21232]
+	* sysdeps/unix/sysv/linux/mips/mips64/n64/posix_fadvise64.c: Add
+	posix_fadvise64 weak_alias for static build.
+
 2017-03-14  Andreas Schwab  <schwab@suse.de>
 
 	* sysdeps/generic/dl-procinfo.h (_dl_platform_string): Remove.
diff --git a/sysdeps/unix/sysv/linux/mips/mips64/n64/posix_fadvise64.c b/sysdeps/unix/sysv/linux/mips/mips64/n64/posix_fadvise64.c
index 9776ee96e5..5a6379613b 100644
--- a/sysdeps/unix/sysv/linux/mips/mips64/n64/posix_fadvise64.c
+++ b/sysdeps/unix/sysv/linux/mips/mips64/n64/posix_fadvise64.c
@@ -29,5 +29,7 @@
 _strong_alias (__posix_fadvise64_l64, __posix_fadvise64_l32);
 compat_symbol (libc, __posix_fadvise64_l32, posix_fadvise64, GLIBC_2_2);
 versioned_symbol (libc, __posix_fadvise64_l64, posix_fadvise64, GLIBC_2_3_3);
+#else
+_weak_alias (posix_fadvise, posix_fadvise64);
 #endif
 _strong_alias (__posix_fadvise64_l64, posix_fadvise);