Skip to content

Commit

Permalink
Revert r344898 (by kib), now that clang 8 has been merged:
Browse files Browse the repository at this point in the history
Disable WITH_RETPOLINE on stable/12.

It is known that clang 7 generates broken ifunc calls when retpoline is
enabled. Since libc uses ifuncs, mark WITH_RETPOLINE as always broken
and disabled. To be removed after clang 8 MFC.

This is a direct commit to the branch.

Reported by:	many
Tested by:	Nikola Mihaylov <[email protected]>
Reviewed by:	emaste
Sponsored by:	The FreeBSD Foundation
  • Loading branch information
DimitryAndric committed Apr 13, 2019
1 parent 7935c64 commit 6168808
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 5 additions & 0 deletions UPDATING
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ from older versions of FreeBSD, try WITHOUT_CLANG and WITH_GCC to bootstrap to
the tip of head, and then rebuild without this option. The bootstrap process
from older version of current across the gcc/clang cutover is a bit fragile.

20190413:
Now Clang 8 has been merged (see the 20190412 entry below), the ifunc
functionality needed for the RETPOLINE option should work properly
again. The RETPOLINE option has been removed from BROKEN_OPTIONS.

20190412:
Clang, llvm, lld, lldb, compiler-rt and libc++ have been upgraded to
8.0.0. Please see the 20141231 entry below for information about
Expand Down
3 changes: 0 additions & 3 deletions share/mk/src.opts.mk
Original file line number Diff line number Diff line change
Expand Up @@ -369,9 +369,6 @@ BROKEN_OPTIONS+=LOADER_UBOOT
BROKEN_OPTIONS+=LOADER_GELI LOADER_LUA
.endif

# clang 7.0
BROKEN_OPTIONS+=RETPOLINE

.if ${__T:Mmips64*}
# profiling won't work on MIPS64 because there is only assembly for o32
BROKEN_OPTIONS+=PROFILE
Expand Down

0 comments on commit 6168808

Please sign in to comment.