https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119367
--- Comment #17 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Tobias Burnus <bur...@gcc.gnu.org>: https://gcc.gnu.org/g:098cf067772921764e7eb618e3e0614a7df0a947 commit r16-3431-g098cf067772921764e7eb618e3e0614a7df0a947 Author: Tobias Burnus <tbur...@baylibre.com> Date: Thu Aug 28 10:52:01 2025 +0200 [gcn] gcc/configure.ac + install.texi - changes to detect HAVE_AS_LEB128 [PR119367] The llvm-mc linker by default assemblies to another assembly file and not to an ELF binary; that usually does not matter â but for the LEB128 check, additionally, the resulting binary is checked. Hence, when using llvm-mc as target linker for amdgcn-*-*, we better add the "--filetype=obj -triple=amdgcn--amdhsa" flags. The current patch does so unconditionally, assuming that always llvm-mc is used. Additionally, the resulting ELF file is checked, which requires an ELF reader such as objdump. This commit adds llvm-objdump to the build documentation for amdgcn, albeit also, e.g., Binutil's 'objdump' would do - as long as either amdgcn-amdhsa-objdump or amdgcn-amdhsa/bin/objdump is found during the amdgcn cross build. gcc/ChangeLog: PR debug/119367 * acinclude.m4 (gcc_GAS_FLAGS): For gcn, use "--filetype=obj -triple=amdgcn--amdhsa", if supported. * configure: Regenerate. * doc/install.texi (amdgcn-*-*): Also add llvm-objdump to the list of to-be-copied files.