소스 검색

[PATCH] uml: add _text definition to linker scripts

kallsyms now refers to addresses as '_text + 0xADDRESS', rather than just
'0xADDRESS', so we need to define _text.

Signed-off-by: Jeff Dike <jdike@addtoit.com>
Cc: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Jeff Dike 18 년 전
부모
커밋
d1480c56fe
2개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      arch/um/kernel/dyn.lds.S
  2. 1 0
      arch/um/kernel/uml.lds.S

+ 1 - 0
arch/um/kernel/dyn.lds.S

@@ -14,6 +14,7 @@ SECTIONS
    * is remapped.*/
    * is remapped.*/
   __binary_start = .;
   __binary_start = .;
   . = ALIGN(4096);		/* Init code and data */
   . = ALIGN(4096);		/* Init code and data */
+  _text = .;
   _stext = .;
   _stext = .;
   __init_begin = .;
   __init_begin = .;
   .init.text : {
   .init.text : {

+ 1 - 0
arch/um/kernel/uml.lds.S

@@ -25,6 +25,7 @@ SECTIONS
   . = ALIGN(4096);		/* Init code and data */
   . = ALIGN(4096);		/* Init code and data */
 #endif
 #endif
 
 
+  _text = .;
   _stext = .;
   _stext = .;
   __init_begin = .;
   __init_begin = .;
   .init.text : {
   .init.text : {