x86, vdso: Make the vdso linker script compatible with Gold
authorAndy Lutomirski <luto@amacapital.net>
Thu, 3 Apr 2014 17:53:43 +0000 (10:53 -0700)
committerH. Peter Anvin <hpa@linux.intel.com>
Thu, 3 Apr 2014 19:03:59 +0000 (12:03 -0700)
commit378ed3ccd2a0404d031e771b65aa3af221ea8aea
treed7ccbfb882b5729f527a302934073b727e0d4fb5
parent37c975545ec63320789962bf307f000f08fabd48
x86, vdso: Make the vdso linker script compatible with Gold

Gold can't parse the script due to:
https://sourceware.org/bugzilla/show_bug.cgi?id=16804

With a workaround in place for that issue, Gold 2.23 crashes due to:
https://sourceware.org/bugzilla/show_bug.cgi?id=15355

This works around the former bug and avoids the second by removing
the unnecessary vvar and hpet sections and segments.  The vdso and
hpet symbols are still there, and nothing needed the sections or
segments.

Reported-by: Markus Trippelsdorf <markus@trippelsdorf.de>
Signed-off-by: Andy Lutomirski <luto@amacapital.net>
Link: http://lkml.kernel.org/r/243fa205098d112ec759c9b1b26785c09f399833.1396547532.git.luto@amacapital.net
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
arch/x86/vdso/vdso-layout.lds.S