From: John David Anglin Subject: Re: 4.14 git: massive linker failures: cannot reach anything Date: Mon, 11 Sep 2017 10:51:05 -0400 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Cc: linux-parisc@vger.kernel.org To: Meelis Roos Return-path: In-Reply-To: List-ID: List-Id: linux-parisc.vger.kernel.org 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@bell.net