diff options
author | Andi Kleen <ak@linux.intel.com> | 2021-04-04 21:22:05 -0700 |
---|---|---|
committer | Andi Kleen <ak@linux.intel.com> | 2021-04-04 21:22:05 -0700 |
commit | 15f7f7dcae6815b409115dbeee40b92e22db7790 (patch) | |
tree | b024ca923dc57ad667e53e0bba97855a3836fab4 | |
parent | fe572ed8c3614361cf30b5c1581b0f9fc5b97108 (diff) | |
download | linux-misc-lto-5.12-1-wip.tar.gz |
fixup! Kbuild, lto: Add Link Time Optimization supportlto-5.12-1-wip
-rwxr-xr-x | scripts/link-vmlinux.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/link-vmlinux.sh b/scripts/link-vmlinux.sh index bcb7aebf1c45e8..3c7fba3c8cdb32 100755 --- a/scripts/link-vmlinux.sh +++ b/scripts/link-vmlinux.sh @@ -264,7 +264,7 @@ kallsyms_s() info KSYMS ${2} ( - if [ -n "$CONFIG_LTO" -a -n "$CONFIG_KALLSYMS_SINGLE" -a -n "$CONFIG_CC_IS_GCC" ] && + if [ -n "$CONFIG_LTO_GCC" -a -n "$CONFIG_KALLSYMS_SINGLE" ] && ( ${OBJDUMP} -h ${1} | grep -q gnu\.lto) ; then # workaround for slim LTO gcc-nm not outputing static symbols # http://gcc.gnu.org/PR60016 |