Skip to content

Commit

Permalink
make --disable-separate-code the default for binutils
Browse files Browse the repository at this point in the history
the default is ordered such that user-provided config variables in
config.mak or on the make command line can still override it.

this is a dubious anti-ROP feature with high cost (file size, load
time, VMA count consumed per library), and historically was broken in
some binutils versions. the ones we use don't seem to be affected, but
it's better to have it off anyway.
  • Loading branch information
richfelker committed Jul 16, 2019
1 parent b4a38f8 commit d969dea
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions litecross/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ MAKE += ac_cv_prog_lex_root=lex.yy.c
MAKE += MAKEINFO=false

FULL_BINUTILS_CONFIG = \
--disable-separate-code \
$(COMMON_CONFIG) $(BINUTILS_CONFIG) $(TOOLCHAIN_CONFIG) \
--disable-werror \
--target=$(TARGET) --prefix= \
Expand Down

0 comments on commit d969dea

Please sign in to comment.