ldso: Make truly self relocatable

On Linux the linker can now be loaded at arbitrary addresses, this became
necessary for newer kernel versions. The 'linux_arm' target is not supported.

Issue #1728
This commit is contained in:
Sebastian Sumpf
2015-11-26 10:30:23 +01:00
committed by Christian Helmuth
parent e74b53d5dd
commit 41b9f6bd03
13 changed files with 144 additions and 31 deletions

View File

@ -20,6 +20,9 @@ SECTIONS
{
. = 0x40000000;
_context_area_start = .;
.context_area : { . += 0x10000000; } : context_area
_context_area_end = .;
/*
* Since Linux loads ldso page aligned, we align the context area after
* loading to a 1 MiB boundary, therefore we reserve one MiB more here.
*/
.context_area : { . += 0x10100000; } : context_area
}

View File

@ -16,5 +16,4 @@ SECTIONS
. = 0x40000000;
_context_area_start = .;
.context_area : { . += 0x10000000; }
_context_area_end = .;
}