Skip to content

Commit

Permalink
microblaze: Quiet section mismatch warnings
Browse files Browse the repository at this point in the history
_start is located in .text, which causes mismatch warnings with
machine_early_init() and start_kernel() in .init.text.

Signed-off-by: Steven J. Magnani <steve@digidescorp.com>
Signed-off-by: Michal Simek <monstr@monstr.eu>
  • Loading branch information
Steven J. Magnani authored and Michal Simek committed May 6, 2010
1 parent e6d7961 commit 7a0248e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion arch/microblaze/kernel/head.S
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
* for more details.
*/

#include <linux/init.h>
#include <linux/linkage.h>
#include <asm/thread_info.h>
#include <asm/page.h>
Expand All @@ -49,7 +50,7 @@ swapper_pg_dir:

#endif /* CONFIG_MMU */

.text
__HEAD
ENTRY(_start)
#if CONFIG_KERNEL_BASE_ADDR == 0
brai TOPHYS(real_start)
Expand Down
3 changes: 2 additions & 1 deletion arch/microblaze/kernel/vmlinux.lds.S
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ SECTIONS {
.text : AT(ADDR(.text) - LOAD_OFFSET) {
_text = . ;
_stext = . ;
*(.text .text.*)
HEAD_TEXT
TEXT_TEXT
*(.fixup)
EXIT_TEXT
EXIT_CALL
Expand Down

0 comments on commit 7a0248e

Please sign in to comment.