public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Grant Edwards <grant.b.edwards@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: [gentoo-user] How to build kernel with old binutils?
Date: Mon, 10 Oct 2022 16:00:35 -0000 (UTC)	[thread overview]
Message-ID: <ti1fj3$gdu$1@ciao.gmane.io> (raw)

I regularly need to build old Linux kernels (as far back as 2.6), and
have a variety of older versions of gcc installed and a shell script
that knows what versions of gcc to use for what kernel versions. Using
an old version of GCC is simple: you just specify it on the command
line when doing the make:

  $ cd linux-3.whatever
  $ make distclean
  $ make defconfig
  $ make GCC=/usr/bin/gcc-4.3.6 modules

After some recent updates, I now get an 'ld' failure on some old
kernel buils. From what I've read it seems that I now need to also use
older binutils versions, and that's got me stumped. I've tried adding
LD=/path/to/ld to the make, but that appears to be ignored.

Can somebody give a clue how to specify the binutils to be used when
building a Linux kernel?

Thanks...

--
Grant






             reply	other threads:[~2022-10-10 16:00 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-10-10 16:00 Grant Edwards [this message]
2022-10-10 17:22 ` [gentoo-user] How to build kernel with old binutils? Alan J. Wylie
2022-10-10 17:33   ` [gentoo-user] " Grant Edwards
2022-10-11 16:16     ` Grant Edwards

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='ti1fj3$gdu$1@ciao.gmane.io' \
    --to=grant.b.edwards@gmail.com \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox