about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>2017-03-14 16:42:08 -0300
committerAurelien Jarno <aurelien@aurel32.net>2017-11-30 13:46:09 +0100
commit7bd7ddfab138f67a1d8c10d4d70f16240a1c6796 (patch)
tree2be0870532daa3047dffe475795320f860eea9c6
parentb0afcf5db758747c2e563a1db0af6db7a1927746 (diff)
downloadglibc-7bd7ddfab138f67a1d8c10d4d70f16240a1c6796.tar.gz
glibc-7bd7ddfab138f67a1d8c10d4d70f16240a1c6796.tar.xz
glibc-7bd7ddfab138f67a1d8c10d4d70f16240a1c6796.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.

(cherry picked from commit ed7d6072f25f75b808b40c206371361f1313f342)
-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 c1df219b61..ad563057d3 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-10-23  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
 
 	* sysdeps/unix/sysv/linux/spawni.c (__spawnix): Use 0 instead of
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);