https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108515
--- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> --- Created attachment 54333 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=54333&action=edit preprocessed source, assembly and object The linker error also reproduces (besides unresolved symbols) when only linking the fixincl.o file. It's compiled (with GCC 12.2) with /usr/lib/gcc/armv7hl-suse-linux-gnueabi/12/cc1 -fpreprocessed fixincl.i -quiet -dumpbase fixincl.c -dumpbase-ext .c -mcpu=generic-armv7-a -mfloat-abi=hard -mfpu=vfpv3-d16 -mabi=aapcs-linux -mtls-dialect=gnu -marm -mlibarch=armv7-a+fp -march=armv7-a+fp -g -O2 -Werror=return-type -Wextra -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wsuggest-attribute=format -Wno-overlength-strings -Wpedantic -Wno-long-long -version -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection -o fixincl.s