From d969dea983a2cc54a1e0308a0cdeb6c3307e4bfa Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Tue, 16 Jul 2019 15:02:31 -0400 Subject: [PATCH] make --disable-separate-code the default for binutils 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. --- litecross/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/litecross/Makefile b/litecross/Makefile index 4ecfa93..1d35b93 100644 --- a/litecross/Makefile +++ b/litecross/Makefile @@ -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= \