[powerpc]Build (ld) failure 6.2-rc2
From: Sachin Sant
Date: Mon Jan 02 2023 - 01:37:12 EST
6.2-rc2 fails to build on powerpc with following error:
UPD include/generated/utsversion.h
CC init/version-timestamp.o
LD .tmp_vmlinux.btf
ld: warning: discarding dynamic section .rela.data.rel.ro
ld: warning: discarding dynamic section .rela.text
ld: warning: discarding dynamic section .rela__soft_mask_table
ld: warning: discarding dynamic section .rela_kprobe_blacklist
…….
…….
ld: warning: discarding dynamic section .rela___ksymtab_gpl+xas_split
ld: warning: discarding dynamic section .rela___ksymtab_gpl+xas_split_alloc
ld: warning: discarding dynamic section .rela___ksymtab_gpl+xas_store
`.exit.text' referenced in section `__bug_table' of crypto/algboss.o: defined in discarded section `.exit.text' of crypto/algboss.o
`.exit.text' referenced in section `__bug_table' of crypto/algif_hash.o: defined in discarded section `.exit.text' of crypto/algif_hash.o
`.exit.text' referenced in section `__bug_table' of crypto/algif_skcipher.o: defined in discarded section `.exit.text' of crypto/algif_skcipher.o
`.exit.text' referenced in section `__bug_table' of crypto/algif_rng.o: defined in discarded section `.exit.text' of crypto/algif_rng.o
`.exit.text' referenced in section `__bug_table' of crypto/algif_aead.o: defined in discarded section `.exit.text' of crypto/algif_aead.o
`.exit.text' referenced in section `__bug_table' of drivers/char/hw_random/core.o: defined in discarded section `.exit.text' of drivers/char/hw_random/core.o
`.exit.text' referenced in section `__ex_table' of drivers/i2c/i2c-core-base.o: defined in discarded section `.exit.text' of drivers/i2c/i2c-core-base.o
`.exit.text' referenced in section `__ex_table' of drivers/i2c/i2c-core-base.o: defined in discarded section `.exit.text' of drivers/i2c/i2c-core-base.o
`.exit.text' referenced in section `__bug_table' of drivers/i2c/i2c-core-base.o: defined in discarded section `.exit.text' of drivers/i2c/i2c-core-base.o
make[1]: *** [scripts/Makefile.vmlinux:34: vmlinux] Error 1
make: *** [Makefile:1252: vmlinux] Error 2
Git bisect points to following fix:
commit 99cb0d917ffa1ab628bb67364ca9b162c07699b1
arch: fix broken BuildID for arm64 and riscv
Reverting this patch allows me to build the kernel successfully.
Gcc and ld version:
gcc version 11.3.1 20221121 (Red Hat 11.3.1-4) (GCC)
GNU ld version 2.35.2-33.el9
I have attached the .config.
- Sachin
Attachment:
config_rc2
Description: Binary data