mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-13 01:36:55 +07:00
968de4f026
This patch modifies the i386 kernel so that if CONFIG_RELOCATABLE is selected it will be able to be loaded at any 4K aligned address below 1G. The technique used is to compile the decompressor with -fPIC and modify it so the decompressor is fully relocatable. For the main kernel relocations are generated. Resulting in a kernel that is relocatable with no runtime overhead and no need to modify the source code. A reserved 32bit word in the parameters has been assigned to serve as a stack so we figure out where are running. Signed-off-by: Eric W. Biederman <ebiederm@xmission.com> Signed-off-by: Vivek Goyal <vgoyal@in.ibm.com> Signed-off-by: Andi Kleen <ak@suse.de>
11 lines
161 B
Plaintext
11 lines
161 B
Plaintext
SECTIONS
|
|
{
|
|
.data.compressed : {
|
|
input_len = .;
|
|
LONG(input_data_end - input_data) input_data = .;
|
|
*(.data)
|
|
output_len = . - 4;
|
|
input_data_end = .;
|
|
}
|
|
}
|