During a build on Debian 11/sparc64, several binaries fail to link with
/usr/bin/ld: /usr/bin/ld: DWARF error: invalid or unhandled FORM value: 0x23
/usr/bin/ld is GNU ld (GNU Binutils for Debian) 2.38.50.20220707. 0x23 is DW_FORM_rnglistx` which isn't handled even by GNU binutils master. Building with -gdwarf-4 avoids this.
Tested on sparc64-unknown-linux-gnu.
For comparison's sake, I've tried a build on Ubuntu 20.04/x86_64 with GNU ld 2.38.90, which isn't affected.