Skip to content

Commit

Permalink
[XTENSA] Add .literal sections for various init sectiont to linker sc…
Browse files Browse the repository at this point in the history
…ript

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 <[email protected]>
  • Loading branch information
czankel committed Feb 14, 2008
1 parent e584d85 commit 4f8d98f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion arch/xtensa/kernel/vmlinux.lds.S
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,9 @@ SECTIONS
__init_begin = .;
.init.text : {
_sinittext = .;
*(.init.literal) INIT_TEXT
*(.init.literal) *(.cpuinit.literal)
*(.devinit.literal) *(.meminit.literal)
INIT_TEXT
_einittext = .;
}

Expand Down

0 comments on commit 4f8d98f

Please sign in to comment.