FreeBSD Bugzilla – Attachment 188456 Details for
Bug 224026
[patch] devel/binutils fix gold on ZFS after r325320
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
patch-gold__output.cc
devel.binutils.patch (text/plain), 1.36 KB, created by
Vladimir Kondratyev
on 2017-12-01 22:11:23 UTC
(
hide
)
Description:
patch-gold__output.cc
Filename:
MIME Type:
Creator:
Vladimir Kondratyev
Created:
2017-12-01 22:11:23 UTC
Size:
1.36 KB
patch
obsolete
>Index: devel/binutils/files/patch-gold__output.cc >=================================================================== >--- devel/binutils/files/patch-gold__output.cc (nonexistent) >+++ devel/binutils/files/patch-gold__output.cc (working copy) >@@ -0,0 +1,18 @@ >+--- gold/output.cc.orig 2017-03-02 08:23:53 UTC >++++ gold/output.cc >+@@ -128,8 +128,13 @@ static int >+ gold_fallocate(int o, off_t offset, off_t len) >+ { >+ #ifdef HAVE_POSIX_FALLOCATE >+- if (parameters->options().posix_fallocate()) >+- return ::posix_fallocate(o, offset, len); >++ if (parameters->options().posix_fallocate()) { >++ int ret = ::posix_fallocate(o, offset, len); >++ // posix_fallocate is not supported by some COW file systems >++ // like ZFS. Fallback to ftruncate in this case. >++ if (ret != EINVAL || offset < 0 || len <= 0) >++ return ret; >++ } >+ #endif // defined(HAVE_POSIX_FALLOCATE) >+ #ifdef HAVE_FALLOCATE >+ if (::fallocate(o, 0, offset, len) == 0) > >Property changes on: devel/binutils/files/patch-gold__output.cc >___________________________________________________________________ >Added: fbsd:nokeywords >## -0,0 +1 ## >+yes >\ No newline at end of property >Added: svn:eol-style >## -0,0 +1 ## >+native >\ No newline at end of property >Added: svn:keywords >## -0,0 +1 ## >+FreeBSD=%H >\ No newline at end of property >Added: svn:mime-type >## -0,0 +1 ## >+text/plain >\ No newline at end of property
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 224026
:
188456
|
188474