mirror of https://github.com/torvalds/linux.git
There is a build issue with LD segmentation fault, while
CONFIG_LD_DEAD_CODE_DATA_ELIMINATION is not enabled, as bellow.
scripts/link-vmlinux.sh: line 49: 3796 Segmentation fault
(core dumped) ${ld} ${ldflags} -o ${output} ${wl}--whole-archive
${objs} ${wl}--no-whole-archive ${wl}--start-group
${libs} ${wl}--end-group ${kallsymso} ${btf_vmlinux_bin_o} ${ldlibs}
The error occurs in older versions of the GNU ld with version earlier
than 2.36. It makes most sense to have a minimum LD version as
a dependency for HAVE_LD_DEAD_CODE_DATA_ELIMINATION and eliminate
the impact of ".reloc .text, R_ARM_NONE, ." when
CONFIG_LD_DEAD_CODE_DATA_ELIMINATION is not enabled.
Fixes:
|
||
|---|---|---|
| .. | ||
| .gitignore | ||
| Makefile | ||
| arch_timer.c | ||
| armksyms.c | ||
| asm-offsets.c | ||
| atags.h | ||
| atags_compat.c | ||
| atags_parse.c | ||
| atags_proc.c | ||
| bios32.c | ||
| bugs.c | ||
| cpuidle.c | ||
| crash_dump.c | ||
| debug.S | ||
| devtree.c | ||
| dma.c | ||
| early_printk.c | ||
| efi.c | ||
| elf.c | ||
| entry-armv.S | ||
| entry-common.S | ||
| entry-ftrace.S | ||
| entry-header.S | ||
| entry-v7m.S | ||
| fiq.c | ||
| fiqasm.S | ||
| ftrace.c | ||
| head-common.S | ||
| head-inflate-data.c | ||
| head-nommu.S | ||
| head.S | ||
| head.h | ||
| hibernate.c | ||
| hw_breakpoint.c | ||
| hyp-stub.S | ||
| insn.c | ||
| io.c | ||
| irq.c | ||
| isa.c | ||
| iwmmxt.S | ||
| iwmmxt.h | ||
| jump_label.c | ||
| kgdb.c | ||
| machine_kexec.c | ||
| module-plts.c | ||
| module.c | ||
| opcodes.c | ||
| paravirt.c | ||
| patch.c | ||
| perf_callchain.c | ||
| perf_regs.c | ||
| phys2virt.S | ||
| process.c | ||
| psci_smp.c | ||
| ptrace.c | ||
| reboot.c | ||
| reboot.h | ||
| relocate_kernel.S | ||
| return_address.c | ||
| setup.c | ||
| signal.c | ||
| signal.h | ||
| sigreturn_codes.S | ||
| sleep.S | ||
| smccc-call.S | ||
| smp.c | ||
| smp_scu.c | ||
| smp_tlb.c | ||
| smp_twd.c | ||
| spectre.c | ||
| stacktrace.c | ||
| suspend.c | ||
| swp_emulate.c | ||
| sys_arm.c | ||
| sys_oabi-compat.c | ||
| tcm.c | ||
| thumbee.c | ||
| time.c | ||
| topology.c | ||
| traps.c | ||
| unwind.c | ||
| v7m.c | ||
| vdso.c | ||
| vmcore_info.c | ||
| vmlinux-xip.lds.S | ||
| vmlinux.lds.S | ||
| xscale-cp0.c | ||