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 baf7cae8ed
commit 1c922e6e77

4
configure vendored
View File

@ -5618,6 +5618,10 @@ if test "$_have_x86" = yes ; then
;;
*)
append_var NASMFLAGS "-f elf"
if $LD $LDFLAGS -Wl,--version | grep '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