Re: 4.14 git: massive linker failures: cannot reach anything

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 2017-09-11 10:45 AM, Meelis Roos wrote:
hppa64-linux-ld: init/main.o(.text+0x22c): cannot reach
__ubsan_handle_type_mismatch
init/main.o: In function `initcall_blacklisted':(.text+0x22c): relocation
truncated to fit: R_PARISC_PCREL22F against symbol
`__ubsan_handle_type_mismatch' defined in .text.__ubsan_handle_type_mismatch
section in lib/ubsan.o

and so on for pages, more than my terminal scrollback provides.
As far as gcc goes, you need to add -mlong-calls to avoid these errors.  I
think there is a config option. The kernel is too big and some "b,l" branches
can't reach their targets.
Thank you, yes, I found CONFIG_MLONGCALLS for that.

However, the next strange thing is why did custom kernels of multiple
different machines grew so much (A500 UP and RP3440 SMP kernels)? My
kernel configs are quite minimalistic anyway, except I include
everything needed for booting (no dependenc on initramfs, so sd, scsi
driver and ext4 are in). Perhaps a binary format or two, PDC stable
storage and anothe IO schaduler too, and some kernel debugging options
like UBSAN.
UBSAN is huge.  Helge knows more about it.  I would only use it for test kernels.

Dave

--
John David Anglin  dave.anglin@xxxxxxxx

--
To unsubscribe from this list: send the line "unsubscribe linux-parisc" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux SoC]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux