Skip to content

Commit

Permalink
m68knommu: put ColdFire head code into .text.head section
Browse files Browse the repository at this point in the history
Switch the ColdFire head start up code to be in the .text.head segment.
And make sure that segment is at the start of the final linked text
segment. Fixes the linker warnings about section use mis-matches:

  WARNING: vmlinux.o(.text+0xa8): Section mismatch in reference from the variable _clear_bss to the function .init.text:start_kernel()
  The function _clear_bss() references
  the function __init start_kernel().
  This is often because _clear_bss lacks a __init
  annotation or the annotation of start_kernel is wrong.

Signed-off-by: Greg Ungerer <gerg@uclinux.org>
  • Loading branch information
Greg Ungerer committed Jul 23, 2008
1 parent 87f4abb commit 9b0e741
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions arch/m68knommu/kernel/vmlinux.lds.S
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ SECTIONS {
.text : {
_text = .;
_stext = . ;
HEAD_TEXT
TEXT_TEXT
SCHED_TEXT
LOCK_TEXT
Expand Down
3 changes: 2 additions & 1 deletion arch/m68knommu/platform/coldfire/head.S
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

#include <linux/sys.h>
#include <linux/linkage.h>
#include <linux/init.h>
#include <asm/asm-offsets.h>
#include <asm/coldfire.h>
#include <asm/mcfcache.h>
Expand Down Expand Up @@ -126,7 +127,7 @@ _ramend:

/*****************************************************************************/

.text
__HEAD

/*
* This is the codes first entry point. This is where it all
Expand Down

0 comments on commit 9b0e741

Please sign in to comment.