randconfig linker errors

Conor.Dooley at microchip.com Conor.Dooley at microchip.com
Sat Aug 13 10:03:54 PDT 2022


On 12/08/2022 17:22, Conor Dooley wrote:
> Hey,
> Seem to have run into some randconfig failures, which seem to be
> replicable as far back as at least v5.19, on riscv/for-next as of
> 5cef38dd03f3 ("dt-bindings: gpio: sifive: add gpio-line-names").
> 
> The base config is one I downloaded while looking at the LKP
> reported zicbom problem & I just pressed enter on all config
> prompts after that..
> 
> Linker errors are kinda beyond me, so throwing it up here :)

Will be fixed by: 
https://lore.kernel.org/all/20220807220934.5689-1-rdunlap@infradead.org/

> Configs are attached.
> 
> With GCC (riscv-gnu-toolchain 2022.03.09)
>   GEN     .version
>   CHK     include/generated/compile.h
>   LD      vmlinux.o
>   MODPOST vmlinux.symvers
>   MODINFO modules.builtin.modinfo
>   GEN     modules.builtin
>   CC      .vmlinux.export.o
>   LD      .tmp_vmlinux.kallsyms1
> riscv64-unknown-linux-gnu-ld: arch/riscv/kernel/compat_syscall_table.o:(.rodata+0x6f8): undefined reference to `compat_sys_fadvise64_64'
> make[2]: *** [/stuff/linux/Makefile:1165: vmlinux] Error 1
> make[2]: Leaving directory '/stuff/brsdk/work/linux'
> make[1]: *** [Makefile:219: __sub-make] Error 2
> make[1]: Leaving directory '/stuff/linux'
> make: *** [Makefile:153: random-config] Error 2
> 
> With clang/llvm 15:
> HOSTLD  scripts/mod/modpost
>   CC      kernel/bounds.s
>   CALL    /stuff/linux/scripts/atomic/check-atomics.sh
>   UPD     include/generated/timeconst.h
>   UPD     include/generated/bounds.h
>   CC      arch/riscv/kernel/asm-offsets.s
>   UPD     include/generated/asm-offsets.h
>   CALL    /stuff/linux/scripts/checksyscalls.sh
>   LDS     arch/riscv/kernel/vdso/vdso.lds
>   AS      arch/riscv/kernel/vdso/rt_sigreturn.o
>   CC      arch/riscv/kernel/vdso/vgettimeofday.o
>   AS      arch/riscv/kernel/vdso/getcpu.o
>   AS      arch/riscv/kernel/vdso/flush_icache.o
>   AS      arch/riscv/kernel/vdso/note.o
>   VDSOLD  arch/riscv/kernel/vdso/vdso.so.dbg
> ld.lld: error: section .dynamic file range overlaps with .text
>>>> .dynamic range is [0x760, 0x88F]
>>>> .text range is [0x800, 0x12B9]
> 
> ld.lld: error: section .text file range overlaps with _ftrace_annotated_branch
>>>> .text range is [0x800, 0x12B9]
>>>> _ftrace_annotated_branch range is [0x890, 0xBEF]
> 
> ld.lld: error: section .dynamic virtual address range overlaps with .text
>>>> .dynamic range is [0x760, 0x88F]
>>>> .text range is [0x800, 0x12B9]
> 
> ld.lld: error: section .text virtual address range overlaps with _ftrace_annotated_branch
>>>> .text range is [0x800, 0x12B9]
>>>> _ftrace_annotated_branch range is [0x890, 0xBEF]
> 
> ld.lld: error: section .dynamic load address range overlaps with .text
>>>> .dynamic range is [0x760, 0x88F]
>>>> .text range is [0x800, 0x12B9]
> 
> ld.lld: error: section .text load address range overlaps with _ftrace_annotated_branch
>>>> .text range is [0x800, 0x12B9]
>>>> _ftrace_annotated_branch range is [0x890, 0xBEF]
>   VDSOSYM include/generated/vdso-offsets.h
> llvm-nm: error: arch/riscv/kernel/vdso/vdso.so.dbg: No such file or directory
>   LDS     arch/riscv/kernel/compat_vdso/compat_vdso.lds
>   VDSOAS arch/riscv/kernel/compat_vdso/rt_sigreturn.o
>   VDSOAS arch/riscv/kernel/compat_vdso/getcpu.o
>   VDSOAS arch/riscv/kernel/compat_vdso/flush_icache.o
>   VDSOAS arch/riscv/kernel/compat_vdso/note.o
>   VDSOLD  arch/riscv/kernel/compat_vdso/compat_vdso.so.dbg
>   VDSOSYM include/generated/compat_vdso-offsets.h
>   CC      init/main.o
>   CHK     include/generated/compile.h
>   CC      init/do_mounts.o
>   CC      init/do_mounts_initrd.o
>   CC      init/initramfs.o
>   CC      init/calibrate.o
>   HOSTCC  usr/gen_init_cpio
>   CC      init/init_task.o
>   CC      arch/riscv/mm/init.o
>   UPD     include/generated/compile.h
>   CC      arch/riscv/mm/extable.o
>   CC      arch/riscv/net/bpf_jit_core.o
>   CC      certs/system_keyring.o
>   AR      arch/riscv/kernel/probes/built-in.a
>   CC      kernel/sched/core.o
>   VDSOLD  arch/riscv/kernel/vdso/vdso.so.dbg
> ld.lld: error: section .dynamic file range overlaps with .text
>>>> .dynamic range is [0x760, 0x88F]
>>>> .text range is [0x800, 0x12B9]
> 
> ld.lld: error: section .text file range overlaps with _ftrace_annotated_branch
>>>> .text range is [0x800, 0x12B9]
>>>> _ftrace_annotated_branch range is [0x890, 0xBEF]
> 
> ld.lld: error: section .dynamic virtual address range overlaps with .text
>>>> .dynamic range is [0x760, 0x88F]
>>>> .text range is [0x800, 0x12B9]
> 
> ld.lld: error: section .text virtual address range overlaps with _ftrace_annotated_branch
>>>> .text range is [0x800, 0x12B9]
>>>> _ftrace_annotated_branch range is [0x890, 0xBEF]
> 
> ld.lld: error: section .dynamic load address range overlaps with .text
>>>> .dynamic range is [0x760, 0x88F]
>>>> .text range is [0x800, 0x12B9]
> 
> ld.lld: error: section .text load address range overlaps with _ftrace_annotated_branch
>>>> .text range is [0x800, 0x12B9]
>>>> _ftrace_annotated_branch range is [0x890, 0xBEF]
>   OBJCOPY arch/riscv/kernel/vdso/vdso.so
>   GEN     usr/initramfs_data.cpio
> llvm-objcopy: error: 'arch/riscv/kernel/vdso/vdso.so.dbg': No such file or directory
> make[5]: *** [/stuff/linux/arch/riscv/kernel/vdso/Makefile:53: arch/riscv/kernel/vdso/vdso.so] Error 1



More information about the linux-riscv mailing list