Commit d9ff4332 authored by Geert Uytterhoeven's avatar Geert Uytterhoeven Committed by Linus Torvalds

[PATCH] M68k linker file updates

2.5.44 linker file updates for m68k:
  - .*.init got renamed to .init.* to allow -ffunction-sections
  - discard .exit* sections like most other ports do
parent be90e669
...@@ -38,13 +38,14 @@ SECTIONS ...@@ -38,13 +38,14 @@ SECTIONS
_edata = .; /* End of data section */ _edata = .; /* End of data section */
/* will be freed after init */
. = ALIGN(4096); /* Init code and data */ . = ALIGN(4096); /* Init code and data */
__init_begin = .; __init_begin = .;
.text.init : { *(.text.init) } .init.text : { *(.init.text) }
.data.init : { *(.data.init) } .init.data : { *(.init.data) }
. = ALIGN(16); . = ALIGN(16);
__setup_start = .; __setup_start = .;
.setup.init : { *(.setup.init) } .init.setup : { *(.init.setup) }
__setup_end = .; __setup_end = .;
__initcall_start = .; __initcall_start = .;
.initcall.init : { .initcall.init : {
...@@ -64,6 +65,13 @@ SECTIONS ...@@ -64,6 +65,13 @@ SECTIONS
_end = . ; _end = . ;
/* Sections to be discarded */
/DISCARD/ : {
*(.exit.text)
*(.exit.data)
*(.exitcall.exit)
}
/* Stabs debugging sections. */ /* Stabs debugging sections. */
.stab 0 : { *(.stab) } .stab 0 : { *(.stab) }
.stabstr 0 : { *(.stabstr) } .stabstr 0 : { *(.stabstr) }
......
...@@ -34,13 +34,14 @@ SECTIONS ...@@ -34,13 +34,14 @@ SECTIONS
/* End of data goes *here* so that freeing init code works properly. */ /* End of data goes *here* so that freeing init code works properly. */
_edata = .; _edata = .;
/* will be freed after init */
. = ALIGN(8192); /* Init code and data */ . = ALIGN(8192); /* Init code and data */
__init_begin = .; __init_begin = .;
.text.init : { *(.text.init) } .init.text : { *(.init.text) }
.data.init : { *(.data.init) } .init.data : { *(.init.data) }
. = ALIGN(16); . = ALIGN(16);
__setup_start = .; __setup_start = .;
.setup.init : { *(.setup.init) } .init.setup : { *(.init.setup) }
__setup_end = .; __setup_end = .;
__initcall_start = .; __initcall_start = .;
.initcall.init : { .initcall.init : {
...@@ -62,6 +63,13 @@ __init_begin = .; ...@@ -62,6 +63,13 @@ __init_begin = .;
_end = . ; _end = . ;
/* Sections to be discarded */
/DISCARD/ : {
*(.exit.text)
*(.exit.data)
*(.exitcall.exit)
}
.crap : { .crap : {
/* Stabs debugging sections. */ /* Stabs debugging sections. */
*(.stab) *(.stab)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment