Skip to content

Commit

Permalink
Make gas ignore the ".set hardfloat" directive on mips64.
Browse files Browse the repository at this point in the history
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@
  • Loading branch information
vhankala committed Jan 4, 2019
1 parent 4f234a0 commit b654229
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions gnu/usr.bin/binutils-2.17/gas/config/tc-mips.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit b654229

Please sign in to comment.