CONFIGURE: Don't use DWARF in nasm when linking using gold

This raises `internal error in relocate_section, at ../../gold/i386.cc:3683`
This commit is contained in:
Le Philousophe 2021-12-31 16:53:33 +01:00
parent 88491aeb97
commit eda7a61bf7

4
configure vendored
View file

@ -5676,6 +5676,10 @@ if test "$_have_x86" = yes ; then
;;
*)
append_var NASMFLAGS "-f elf"
if $LD $LDFLAGS -Wl,--version 2>/dev/null | grep -q -e 'GNU gold'; then
# gold throws an internal error when nasm uses dwarf, force older stabs in this case
append_var NASMFLAGS "-F stabs"
fi
;;
esac
_nasm=yes