[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20160824153900.GB14311@csclub.uwaterloo.ca>
Date: Wed, 24 Aug 2016 11:39:00 -0400
From: lsorense@...lub.uwaterloo.ca (Lennart Sorensen)
To: luigi.genoni@...telecomitalia.it
Cc: linux-kernel@...r.kernel.org
Subject: Re: linux kernel 3.19.X does not load when compiled with binutils
2.6, works fine when compiled with binutils 2.22
On Wed, Aug 24, 2016 at 04:42:20PM +0200, luigi.genoni@...telecomitalia.it wrote:
> Hi all,
>
> recentrly I was in need to compile and run linux kernel 3.19.8 on some
> servers, with different bios and cpus.
>
> so i noticed that If i compile this kernel with binutils 2.6 (and 2.7) it
> does not load the image, both lilo, grub/grub2 show the message:
Did you by any chance mean 2.26 and 2.27 or are you really trying to
use binutils from 1996?
> loading kernel
>
> loading ramdisk and nothing happens.
>
> i tried the debug option, at boot, but it simply does not load the kernel.
>
>
> if i compile this kernel with:
>
> binutils 2.22
>
> everything works fine,
>
> I tried this on a xeon with startdard bios, a xeon with efi, an amd
> Athlon-mp with bios and an AMD A8 with EFI.
>
> I tried gcc 4.3 and gcc 4.8, with both the kernel loads if compiled with
> binutils 2.22, and doesn't load with binutils 2.6.
>
>
> What really bugs me is that on all the 4 servers i user i could compile and
> run without problems linux 4.7 compiled with binutils 2.6 and 2.7 with gcc
> 4.8 5.9 and 6.1
You must mean 2.26 and 2.27.
> i cannot afford to downgrate binutils (and glibc to 2.15) every time i need
> to compiled and e 3.19.X kernel.
Well you are allowed to install an older binutils in another location
and set your path. You can even set your LD_LIBRARY_PATH if you really
also need an older glibc to do it (not idea why that would be needed).
You may have hit this binutils bug: https://sourceware.org/bugzilla/show_bug.cgi?id=19807
Also maybe related: https://bugzilla.kernel.org/show_bug.cgi?id=114671
--
Len Sorensen
Powered by blists - more mailing lists