]> git.baikalelectronics.ru Git - kernel.git/commit
x86-64: Work around gold bug 13023
authorAndy Lutomirski <luto@MIT.EDU>
Wed, 3 Aug 2011 13:31:51 +0000 (09:31 -0400)
committerH. Peter Anvin <hpa@linux.intel.com>
Thu, 4 Aug 2011 23:13:38 +0000 (16:13 -0700)
commitcc5dc9f3ba32e49803cc5f65555a79b8527dedf1
tree00e4c05a5b92ed93d513af7c5a355980fc0cd7f4
parentaeab5807a0c5d033d569c11847fcfa9a4072f9eb
x86-64: Work around gold bug 13023

Gold has trouble assigning numbers to the location counter inside of
an output section description.  The bug was triggered by
6ac284d37215d6ca75e827877a425c7486112aa7, which consolidated all of
the vsyscall sections into a single section.  The workaround is IMO
still nicer than the old way of doing it.

This produces an apparently valid kernel image and passes my vdso
tests on both GNU ld version 2.21.51.0.6-2.fc15 20110118 and GNU
gold (version 2.21.51.0.6-2.fc15 20110118) 1.10 as distributed by
Fedora 15.

Signed-off-by: Andy Lutomirski <luto@mit.edu>
Link: http://lkml.kernel.org/r/0b260cb806f1f9a25c00ce8377a5f035d57f557a.1312378163.git.luto@mit.edu
Reported-by: Arkadiusz Miskiewicz <a.miskiewicz@gmail.com>
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
arch/x86/kernel/vmlinux.lds.S