Browse Source

[XTENSA] Add .literal sections for various init sectiont to linker script

Xtensa requires separate .literal section for each .text section.
Adding addition init sections for cpuinit, meminit, and devinit,
broke the Xtensa linker script, so, add these literal sections
manually for now.

Signed-off-by: Chris Zankel <chris@zankel.net>
Chris Zankel 17 năm trước cách đây
mục cha
commit
4f8d98ff48
1 tập tin đã thay đổi với 3 bổ sung1 xóa
  1. 3 1
      arch/xtensa/kernel/vmlinux.lds.S

+ 3 - 1
arch/xtensa/kernel/vmlinux.lds.S

@@ -136,7 +136,9 @@ SECTIONS
   __init_begin = .;
   __init_begin = .;
   .init.text : {
   .init.text : {
   	_sinittext = .;
   	_sinittext = .;
-	*(.init.literal) INIT_TEXT
+	*(.init.literal) *(.cpuinit.literal) 
+	*(.devinit.literal) *(.meminit.literal)
+	INIT_TEXT
 	_einittext = .;
 	_einittext = .;
   }
   }