]> git.karo-electronics.de Git - mv-sheeva.git/blobdiff - arch/sh/kernel/vmlinux.lds.S
Merge branch 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tytso/ext4
[mv-sheeva.git] / arch / sh / kernel / vmlinux.lds.S
index 674ed8feb8ae830e333a0354ec42bfff762b5834..a1e4ec24f1f5de82450606dc8ff7cc20e8756424 100644 (file)
@@ -12,7 +12,7 @@ OUTPUT_ARCH(sh)
 
 #include <asm/thread_info.h>
 #include <asm/cache.h>
-#include <asm-generic/vmlinux.lds.h>
+#include <asm/vmlinux.lds.h>
 
 ENTRY(_start)
 SECTIONS
@@ -70,6 +70,8 @@ SECTIONS
 
        _edata = .;                     /* End of data section */
 
+       DWARF_EH_FRAME
+
        . = ALIGN(PAGE_SIZE);           /* Init code and data */
        __init_begin = .;
        INIT_TEXT_SECTION(PAGE_SIZE)
@@ -93,21 +95,12 @@ SECTIONS
 
        . = ALIGN(PAGE_SIZE);
        __init_end = .;
-       BSS(PAGE_SIZE)
-       . = ALIGN(4);
+       BSS_SECTION(0, PAGE_SIZE, 4)
        _ebss = .;                      /* uClinux MTD sucks */
        _end = . ;
 
-       /*
-        * When something in the kernel is NOT compiled as a module, the
-        * module cleanup code and data are put into these segments. Both
-        * can then be thrown away, as cleanup code is never called unless
-        * it's a module.
-        */
-       /DISCARD/ : {
-               EXIT_CALL
-       }
-
        STABS_DEBUG
        DWARF_DEBUG
+
+       DISCARDS
 }