x86, relocs: Add jiffies and jiffies_64 to the relative whitelist
authorH. Peter Anvin <hpa@zytor.com>
Thu, 24 May 2012 14:01:38 +0000 (07:01 -0700)
committerBen Hutchings <ben@decadent.org.uk>
Wed, 30 May 2012 23:44:10 +0000 (00:44 +0100)
commita4a79515880b12f91cb95bf216075805e3f876cf
tree0f70587942ceaea96d3fba71c78d91a8e7628af7
parent41799aef7b2cb022b60738b8641eff9ea02c6561
x86, relocs: Add jiffies and jiffies_64 to the relative whitelist

commit ea17e7414bc62e8d3bde8d08e3df1d921c518c17 upstream.

The symbol jiffies is created in the linker script as an alias to
jiffies_64.  Unfortunately this is done outside any section, and
apparently GNU ld 2.21 doesn't carry the section with it, so we end up
with an absolute symbol and therefore a broken kernel.

Add jiffies and jiffies_64 to the whitelist.

The most disturbing bit with this discovery is that it shows that we
have had multiple linker bugs in this area crossing multiple
generations, and have been silently building bad kernels for some time.

Link: http://lkml.kernel.org/r/20120524171604.0d98284f3affc643e9714470@canb.auug.org.au
Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
arch/x86/tools/relocs.c