]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - arch/sh/kernel/vmlinux_32.lds.S
Merge branch 'topic/fix/hda' into for-linus
[linux-2.6-omap-h63xx.git] / arch / sh / kernel / vmlinux_32.lds.S
index 50c69c18dced77a3473c3d006d0fd6a065932741..7b4b82bd1156bc8c373fb61fe4edce6ab82d6a4b 100644 (file)
@@ -15,7 +15,12 @@ OUTPUT_ARCH(sh)
 ENTRY(_start)
 SECTIONS
 {
+#ifdef CONFIG_32BIT
+       . = CONFIG_PAGE_OFFSET + CONFIG_ZERO_PAGE_OFFSET;
+#else
        . = CONFIG_PAGE_OFFSET + CONFIG_MEMORY_START + CONFIG_ZERO_PAGE_OFFSET;
+#endif
+
        _text = .;                      /* Text and read-only data */
 
        .empty_zero_page : {
@@ -39,7 +44,6 @@ SECTIONS
 
        _etext = .;                     /* End of text section */
 
-       BUG_TABLE
        NOTES
        RO_DATA(PAGE_SIZE)
 
@@ -79,9 +83,9 @@ SECTIONS
        . = ALIGN(PAGE_SIZE);           /* Init code and data */
        __init_begin = .;
        _sinittext = .;
-       .init.text : { *(.init.text) }
+       .init.text : { INIT_TEXT }
        _einittext = .;
-       .init.data : { *(.init.data) }
+       .init.data : { INIT_DATA }
 
        . = ALIGN(16);
        __setup_start = .;
@@ -117,8 +121,8 @@ SECTIONS
         * .exit.text is discarded at runtime, not link time, to deal with
         * references from __bug_table
         */
-       .exit.text : { *(.exit.text) }
-       .exit.data : { *(.exit.data) }
+       .exit.text : { EXIT_TEXT }
+       .exit.data : { EXIT_DATA }
 
        . = ALIGN(PAGE_SIZE);
        .bss : {