Attention is currently required from: Raul Rangel, Stefan Reinauer, Jacob Garber, Iru Cai, Elyes Haouas.
Paul Menzel has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/40811 )
Change subject: arch,toolchain,xcompile: Use GCC as linker ......................................................................
Patch Set 9:
(1 comment)
Patchset:
PS9: After rebasing I get with Debian’s toolchain (gcc (Debian 12.2.0-11) 12.2.0):
``` x86_64-linux-gnu-gcc -nostdlib -r -o build/smm/smm.o -Wl,--wrap=__divdi3,--wrap=__udivdi3,--wrap=__moddi3,--wrap=__umoddi3 -Wl,--whole-archive,--start-group build/smm/mainboard/google/rambi/static.o build/smm/acpi/acpi_pm.o build/smm/arch/x86/memcpy.o build/smm/arch/x86/memmove_32.o build/smm/arch/x86/memset.o build/smm/arch/x86/mmap_boot.o build/smm/commonlib/bsd/cbfs_mcache.o build/smm/commonlib/bsd/cbfs_private.o build/smm/commonlib/bsd/elog.o build/smm/commonlib/iobuf.o build/smm/commonlib/mem_pool.o build/smm/commonlib/region.o build/smm/console/die.o build/smm/console/post.o build/smm/cpu/x86/pae/pgtbl.o build/smm/cpu/x86/smi_trigger.o build/smm/cpu/x86/smm/save_state.o build/smm/cpu/x86/smm/smm_module_handler.o build/smm/cpu/x86/tsc/delay_tsc.o build/smm/device/device_const.o build/smm/device/pci_ops.o build/smm/drivers/pc80/pc/i8254.o build/smm/drivers/pc80/rtc/mc146818rtc.o build/smm/ec/google/chromeec/crosec_proto.o build/smm/ec/google/chromeec/ec.o build/smm/ec/google/chromeec/ec_lpc.o build/smm/ec/google/chromeec/smihandler.o build/smm/ec/google/chromeec/vstore.o build/smm/lib/boot_device.o build/smm/lib/cbfs.o build/smm/lib/crc_byte.o build/smm/lib/delay.o build/smm/lib/fmap.o build/smm/lib/gcc.o build/smm/lib/halt.o build/smm/lib/hexdump.o build/smm/lib/memcmp.o build/smm/lib/reset.o build/smm/lib/string.o build/smm/lib/version.o build/smm/mainboard/google/rambi/smihandler.o build/smm/soc/intel/baytrail/iosf.o build/smm/soc/intel/baytrail/pmutil.o build/smm/soc/intel/baytrail/smihandler.o build/smm/soc/intel/baytrail/tsc_freq.o -Wl,--no-whole-archive /usr/lib/gcc/x86_64-linux-gnu/12/32/libgcc.a -Wl,--end-group /usr/bin/ld: relocatable linking with relocations from format elf32-i386 (build/smm/mainboard/google/rambi/static.o) to format elf64-x86-64 (build/smm/smm.o) is not supported ```
Adding `-m32 -Wl,-b,elf32-i386` fixes the issue. Where can I add that?