diff mbox

Fix missing posix_fadvise64 mips64 static build (BZ #21232)

Message ID 1489520738-5937-1-git-send-email-adhemerval.zanella@linaro.org
State New
Headers show

Commit Message

Adhemerval Zanella March 14, 2017, 7:45 p.m. UTC
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.
---
 ChangeLog                                                 | 6 ++++++
 sysdeps/unix/sysv/linux/mips/mips64/n64/posix_fadvise64.c | 2 ++
 2 files changed, 8 insertions(+)

-- 
2.7.4

Comments

Joseph Myers March 14, 2017, 10:52 p.m. UTC | #1
On Tue, 14 Mar 2017, Adhemerval Zanella wrote:

> 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.


OK.

-- 
Joseph S. Myers
joseph@codesourcery.com
diff mbox

Patch

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 9776ee9..5a63796 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);