From: Adhemerval Zanella Date: Tue, 14 Mar 2017 19:42:08 +0000 (-0300) Subject: Fix missing posix_fadvise64 mips64 static build (BZ #21232) X-Git-Tag: glibc-2.26~715 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ed7d6072f25f75b808b40c206371361f1313f342;p=thirdparty%2Fglibc.git 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. --- diff --git a/ChangeLog b/ChangeLog index 3427a680ac1..4206e36e98c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2017-03-14 Adhemerval Zanella + + [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 * 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 9776ee96e54..5a6379613bc 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);