mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
[PATCH] relocatable kernel: Kallsyms generate relocatable symbols
Print the addresses of non-absolute symbols relative to _text so that ld will generate relocations. Allowing a relocatable kernel to relocate them. We can't actually use the symbol names because kallsyms includes static symbols that are not exported from their object files. Add the _text symbol definitions to the architectures which don't define it otherwise linker will fail. Signed-off-by: Eric W. Biederman <[email protected]> Signed-off-by: Vivek Goyal <[email protected]> Signed-off-by: Andi Kleen <[email protected]>
This commit is contained in:
parent
2a43f3ede4
commit
fd593d1277
8 changed files with 24 additions and 3 deletions
|
|
@ -31,6 +31,7 @@ SECTIONS
|
|||
.plt : { *(.plt) }
|
||||
.text :
|
||||
{
|
||||
_text = .;
|
||||
*(.text)
|
||||
SCHED_TEXT
|
||||
LOCK_TEXT
|
||||
|
|
|
|||
Loading…
Reference in a new issue