Commit b52feaa3 authored by Paolo \'Blaisorblade\' Giarrusso's avatar Paolo \'Blaisorblade\' Giarrusso Committed by Linus Torvalds

[PATCH] uml: update ld scripts to newer binutils

It seems that linker script for userspace software are quite
toolchain-depending, at least because what we use is a merge between builtin
LD scripts (see strings /usr/bin/ld) and normal kernel linking scripts.

Plus, a number of people are having toolchain-related troubles building UML
(even assertion failures on linking, with Gentoo and Fedora 2).

So, let's try to make UML nicer for binutils.
Signed-off-by: default avatarPaolo 'Blaisorblade' Giarrusso <blaisorblade_spam@yahoo.it>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 717d2f8d
......@@ -7,8 +7,11 @@ jiffies = jiffies_64;
SECTIONS
{
PROVIDE (__executable_start = START);
. = START + SIZEOF_HEADERS;
.interp : { *(.interp) }
/* Used in arch/um/kernel/mem.c. Any memory between START and __binary_start
* is remapped.*/
__binary_start = .;
. = ALIGN(4096); /* Init code and data */
_stext = .;
......
......@@ -7,8 +7,12 @@ jiffies = jiffies_64;
SECTIONS
{
/*This must contain the right address - not quite the default ELF one.*/
PROVIDE (__executable_start = START);
. = START + SIZEOF_HEADERS;
/* Used in arch/um/kernel/mem.c. Any memory between START and __binary_start
* is remapped.*/
__binary_start = .;
#ifdef MODE_TT
.thread_private : {
......@@ -20,9 +24,13 @@ SECTIONS
}
. = ALIGN(4096);
.remap : { arch/um/kernel/tt/unmap_fin.o (.text) }
#endif
/* We want it only if we are in MODE_TT. In both cases, however, when MODE_TT
* is off the resulting binary segfaults.*/
. = ALIGN(4096); /* Init code and data */
#endif
_stext = .;
__init_begin = .;
.init.text : {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment