On Wed, Mar 10, 2021 at 01:44:57PM +0100, Christophe Leroy wrote: > > > Le 10/03/2021 à 13:25, Alan Modra a écrit : > >On Wed, Mar 10, 2021 at 08:33:37PM +1100, Alexey Kardashevskiy wrote: > >>One more question - the older version had a construct "DEFINED (.TOC.) ? > >>.TOC. : ..." in case .TOC. is not defined (too old ld? too old gcc?) but > >>the > >>newer patch seems assuming it is always defined, when was it added? I have > >>the same check in SLOF, for example, do I still need it? > > > >.TOC. symbol support was first added 2012-11-06, so you need > >binutils-2.24 or later to use .TOC. as a symbol. > > > > As of today, minimum requirement to build kernel is binutils 2.23, see > https://www.kernel.org/doc/html/latest/process/changes.html#current-minimal-requirements
The minimum GCC version required is 4.9, released April 2014, so it would make sense to require binutils 2.24 at least as well: that was the last binutils release before the GCC 4.9 release (it was end of 2013). Generally you should make sure to always have a binutils at least as new as your GCC (and newer almost always works just fine). Segher