From 404a425a7c3618d3296ad0d2873326f48c568b75 Mon Sep 17 00:00:00 2001 From: Yann MAGNIN Date: Sun, 29 Jan 2023 20:04:57 +0100 Subject: [PATCH] sh-elf-vhex - v1.3.0-rc1 : enable LTO plugin, libSSP and libsanitizer *update* > [scripts/gcc/configure] | [LTO] compile and install LTO plugin | [libSSP] compile and install libSSP (stack protector) | [ASAN] compile and install libsanitizer (address sanitizer) | [common] update steps log --- scripts/gcc/build.sh | 33 +++++++++++++++++++++++++++++---- 1 file changed, 29 insertions(+), 4 deletions(-) diff --git a/scripts/gcc/build.sh b/scripts/gcc/build.sh index fb6fe3b..7ae2396 100755 --- a/scripts/gcc/build.sh +++ b/scripts/gcc/build.sh @@ -88,16 +88,19 @@ $quiet ../gcc/configure \ --enable-languages='c' \ --without-headers \ --enable-lto \ + --enable-libssp \ + --enable-libsanitizer \ --enable-shared \ --disable-threads \ + --disable-default-ssp \ --disable-nls \ $extra_args -echo "$TAG Compiling GCC (stage 1) (usually 10-20 minutes)..." +echo "$TAG Compiling GCC (usually 10-20 minutes)..." $quiet $make_cmd -j"$cores" all-gcc -echo "$TAG Install GCC (stage 1)..." +echo "$TAG Install GCC..." $quiet $make_cmd -j"$cores" install-strip-gcc @@ -127,15 +130,37 @@ $quiet vxsdk -vvv build-superh ../fxlibc --verbose # Finish to build GCC #--- -echo "$TAG Compiling libgcc (stage 1)..." +echo "$TAG Compiling libgcc..." $quiet $make_cmd -j"$cores" all-target-libgcc -echo "$TAG Install libgcc (stage 1)..." +echo "$TAG Install libgcc..." $quiet $make_cmd -j"$cores" install-strip-target-libgcc +echo "$TAG Compiling libssp..." +$quiet $make_cmd -j"$cores" all-target-libssp + +echo "$TAG Install libssp..." + +$quiet $make_cmd -j"$cores" install-strip-target-libssp + +echo "$TAG Compiling LTO plugin..." + +$quiet $make_cmd -j"$cores" all-lto-plugin + +echo "$TAG Install LTO plugin..." + +$quiet $make_cmd -j"$cores" install-strip-lto-plugin + +echo "$TAG Compiling libsanitizer..." + +$quiet $make_cmd -j"$cores" all-target-libsanitizer + +echo "$TAG Install libsanitizer..." + +$quiet $make_cmd -j"$cores" install-strip-target-libsanitizer #---