Skip to content

Fix x86-64 linker script when using gold

Andy Lutomirski lkml 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2x86-64: Move the "user" vsyscall segment out of the data segment.arch/x86/kernel/vmlinux.lds.S+18 -180 replies
2/2x86-64: Work around gold bug 13023arch/x86/kernel/vmlinux.lds.S+10 -60 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH resend 0/2] Fix x86-64 linker script when using gold

[resent because I misspelled linux-kernel the first time.]

We were hitting two bugs:
http://sourceware.org/bugzilla/show_bug.cgi?id=13019
http://sourceware.org/bugzilla/show_bug.cgi?id=13023

The former was really a bug on the linker script that neither the old bfd linker nor the kernel loader cared about. It caused gold to bail, though.

The second is, I think, a legitimate bug in gold. But rather than regressing on current gold versions, we can work around it.

This is what I get for messing with the linker script :-/

Andy Lutomirski (2):
x86-64: Move the "user" vsyscall segment out of the data segment.
x86-64: Work around gold bug 13023

 arch/x86/kernel/vmlinux.lds.S |   46 ++++++++++++++++++++++------------------
 1 files changed, 25 insertions(+), 21 deletions(-)
Signature · 1 line
1.7.6