diff options
author | H. Peter Anvin <hpa@linux.intel.com> | 2010-08-03 02:34:44 +0400 |
---|---|---|
committer | H. Peter Anvin <hpa@linux.intel.com> | 2010-08-03 02:34:44 +0400 |
commit | 22a57f5896df218356bae6203dfaf04bcfd6c88c (patch) | |
tree | e956ddcf7edf8457978d324a2e9c954b31be2206 /arch/x86/boot/compressed/vmlinux.lds.S | |
parent | 70b0d22d581a5deef7b2876b0c3774635b8d846c (diff) | |
download | linux-22a57f5896df218356bae6203dfaf04bcfd6c88c.tar.xz |
x86, setup: Allow global variables and functions in the decompressor
In order for global variables and functions to work in the
decompressor, we need to fix up the GOT in assembly code.
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
LKML-Reference: <4C57382E.8050501@zytor.com>
Diffstat (limited to 'arch/x86/boot/compressed/vmlinux.lds.S')
-rw-r--r-- | arch/x86/boot/compressed/vmlinux.lds.S | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/x86/boot/compressed/vmlinux.lds.S b/arch/x86/boot/compressed/vmlinux.lds.S index 5ddabceee124..34d047c98284 100644 --- a/arch/x86/boot/compressed/vmlinux.lds.S +++ b/arch/x86/boot/compressed/vmlinux.lds.S @@ -41,6 +41,12 @@ SECTIONS *(.rodata.*) _erodata = . ; } + .got : { + _got = .; + KEEP(*(.got.plt)) + KEEP(*(.got)) + _egot = .; + } .data : { _data = . ; *(.data) |