summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorvisa <visa@openbsd.org>2019-01-04 05:56:47 +0000
committervisa <visa@openbsd.org>2019-01-04 05:56:47 +0000
commitb6542299ab5b051bf8c23847c5ea14788bdb5649 (patch)
tree42a7585599fc794e3c38ee28835235a2031f9890
parentfix the dates that got broken by cvs commit (diff)
downloadwireguard-openbsd-b6542299ab5b051bf8c23847c5ea14788bdb5649.tar.xz
wireguard-openbsd-b6542299ab5b051bf8c23847c5ea14788bdb5649.zip
Make gas ignore the ".set hardfloat" directive on mips64.
The directive is needed in certain parts of the kernel code when compiling using clang. By ignoring the directive, the old toolchain will still be able to build the kernel after the code has been adjusted for clang. OK kettenis@
-rw-r--r--gnu/usr.bin/binutils-2.17/gas/config/tc-mips.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gnu/usr.bin/binutils-2.17/gas/config/tc-mips.c b/gnu/usr.bin/binutils-2.17/gas/config/tc-mips.c
index bf8fafeab01..60dfef98c2a 100644
--- a/gnu/usr.bin/binutils-2.17/gas/config/tc-mips.c
+++ b/gnu/usr.bin/binutils-2.17/gas/config/tc-mips.c
@@ -12355,6 +12355,8 @@ s_mipsset (int x ATTRIBUTE_UNUSED)
mips_opts.sym32 = TRUE;
else if (strcmp (name, "nosym32") == 0)
mips_opts.sym32 = FALSE;
+ else if (strcmp (name, "hardfloat") == 0)
+ /* ignored */;
else
{
as_warn (_("Tried to set unrecognized symbol: %s\n"), name);