diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2011-01-09 23:34:42 +0100 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2011-01-09 23:34:42 +0100 |
commit | f3df65ce34153357d28bee621bdf49b61e68b182 (patch) | |
tree | 25ac416b157b010ca2f942dac5c5ba0b38a924ac /open_issues/glibc_madvise_vs_static_linking.mdwn | |
parent | 09184ae09c44c052a207aa5c6dc8ce9cf61a343f (diff) | |
parent | 3bbe62327128ce85829a4cb2fb429bd8f21b4d75 (diff) |
Merge branch 'master' of flubber:~hurd-web/hurd-web
Diffstat (limited to 'open_issues/glibc_madvise_vs_static_linking.mdwn')
-rw-r--r-- | open_issues/glibc_madvise_vs_static_linking.mdwn | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/open_issues/glibc_madvise_vs_static_linking.mdwn b/open_issues/glibc_madvise_vs_static_linking.mdwn new file mode 100644 index 00000000..4546348e --- /dev/null +++ b/open_issues/glibc_madvise_vs_static_linking.mdwn @@ -0,0 +1,24 @@ +[[!meta copyright="Copyright © 2010 Free Software Foundation, Inc."]] + +[[!meta license="""[[!toggle id="license" text="GFDL 1.2+"]][[!toggleable +id="license" text="Permission is granted to copy, distribute and/or modify this +document under the terms of the GNU Free Documentation License, Version 1.2 or +any later version published by the Free Software Foundation; with no Invariant +Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license +is included in the section entitled [[GNU Free Documentation +License|/fdl]]."]]"""]] + +[[!tag open_issue_glibc]] + + $ echo 'int main() {}' | gcc -o /dev/null -static -x c - + /usr/lib/gcc/i486-gnu/4.4.5/../../../libcrt.a(malloc.o): In function `_int_free': + (.text+0xdc3): warning: warning: madvise is not implemented and will always fail + +This is correct, but it does confuse GNU Autoconf, for example, which then +thinks that static linking is not supported and sets a flag accordingly, which +luckly no / not many packages use. + +*This call does not influence the semantics of the application (except in the +case of MADV_DONTNEED), but may influence its performance. The kernel is free +to ignore the advice.* (`man madvise`), so we may simply want to turn it into a +no-op in glibc, avoiding the link-time warning. |