[PATCH] Fix binutils/gold build on NetBSD
Ian Lance Taylor
iant@google.com
Mon Dec 6 23:26:00 GMT 2010
Arnaud Lacombe <lacombar@gmail.com> writes:
> This patch intends to fix gold build on NetBSD host. NetBSD supports mremap(2),
> but does not support MREMAP_MAYMOVE flags.
>
> This patch renames gold's internal version of mremap to avoid namespace conflict
> as prototypes differs and add an additionnal configure-time check for
> MREMAP_MAYMOVE.
I would prefer to avoid adding the #ifdef to output.cc. Also, the
configure check should be cached. Does this patch work for you?
Ian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: foo.patch
Type: text/x-diff
Size: 4513 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20101206/9db61a4c/attachment.bin>
More information about the Binutils
mailing list