Commit 25ceb277ded74e08d2df68473e88a89732d99f7b

Authored by stany MARCEL
Committed by Jason
1 parent efb2172ece

ColdFire: Cleanup lds files for multiple defined symbols

Lds files cleened to remove multiple defined section and modified to
be compliant with --gc-sections added for ColdFire platform in a
previous patch.

Signed-off-by: Stany MARCEL <stany.marcel@novasys-ingenierie.com>
Acked-by: Mike Frysinger <vapier@gentoo.org>

Showing 12 changed files with 149 additions and 685 deletions Side-by-side Diff

board/BuS/EB+MCF-EV123/u-boot.lds
... ... @@ -22,52 +22,14 @@
22 22 */
23 23  
24 24 OUTPUT_ARCH(m68k)
25   -/* Do we need any of these for elf?
26   - __DYNAMIC = 0; */
  25 +
27 26 SECTIONS
28 27 {
29   - /* Read-only sections, merged into text segment: */
30   - . = + SIZEOF_HEADERS;
31   - .interp : { *(.interp) }
32   - .hash : { *(.hash) }
33   - .dynsym : { *(.dynsym) }
34   - .dynstr : { *(.dynstr) }
35   - .rel.text : { *(.rel.text) }
36   - .rela.text : { *(.rela.text) }
37   - .rel.data : { *(.rel.data) }
38   - .rela.data : { *(.rela.data) }
39   - .rel.rodata : { *(.rel.rodata) }
40   - .rela.rodata : { *(.rela.rodata) }
41   - .rel.got : { *(.rel.got) }
42   - .rela.got : { *(.rela.got) }
43   - .rel.ctors : { *(.rel.ctors) }
44   - .rela.ctors : { *(.rela.ctors) }
45   - .rel.dtors : { *(.rel.dtors) }
46   - .rela.dtors : { *(.rela.dtors) }
47   - .rel.bss : { *(.rel.bss) }
48   - .rela.bss : { *(.rela.bss) }
49   - .rel.plt : { *(.rel.plt) }
50   - .rela.plt : { *(.rela.plt) }
51   - .init : { *(.init) }
52   - .plt : { *(.plt) }
53 28 .text :
54 29 {
55   - /* WARNING - the following is hand-optimized to fit within */
56   - /* the sector layout of our flash chips! XXX FIXME XXX */
  30 + arch/m68k/cpu/mcf52x2/start.o (.text*)
57 31  
58   - arch/m68k/cpu/mcf52x2/start.o (.text)
59   - common/dlmalloc.o (.text)
60   - lib/string.o (.text)
61   - lib/vsprintf.o (.text)
62   - lib/crc32.o (.text)
63   - lib/zlib.o (.text)
64   -
65   -/* . = env_offset; */
66   - common/env_embedded.o(.text)
67   -
68   - *(.text)
69   - *(.fixup)
70   - *(.got1)
  32 + *(.text*)
71 33 }
72 34 _etext = .;
73 35 PROVIDE (etext = .);
74 36  
75 37  
76 38  
77 39  
78 40  
79 41  
80 42  
... ... @@ -75,43 +37,39 @@
75 37 {
76 38 *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*)))
77 39 }
78   - .fini : { *(.fini) } =0
79   - .ctors : { *(.ctors) }
80   - .dtors : { *(.dtors) }
81 40  
82 41 /* Read-write section, merged into data segment: */
83 42 . = (. + 0x00FF) & 0xFFFFFF00;
84 43 _erotext = .;
85 44 PROVIDE (erotext = .);
86   - .reloc :
  45 +
  46 + .reloc :
87 47 {
88 48 __got_start = .;
89   - *(.got)
  49 + KEEP(*(.got))
90 50 __got_end = .;
91 51 _GOT2_TABLE_ = .;
92   - *(.got2)
  52 + KEEP(*(.got2))
93 53 _FIXUP_TABLE_ = .;
94   - *(.fixup)
  54 + KEEP(*(.fixup))
95 55 }
96 56 __got2_entries = (_FIXUP_TABLE_ - _GOT2_TABLE_) >>2;
97 57 __fixup_entries = (. - _FIXUP_TABLE_)>>2;
98 58  
99 59 .data :
100 60 {
101   - *(.data)
102   - *(.data1)
103   - *(.sdata)
104   - *(.sdata2)
105   - *(.dynamic)
106   - CONSTRUCTORS
  61 + *(.data*)
  62 + *(.sdata*)
107 63 }
108 64 _edata = .;
109 65 PROVIDE (edata = .);
110 66  
  67 + . = .;
111 68 __u_boot_cmd_start = .;
112 69 .u_boot_cmd : { *(.u_boot_cmd) }
113 70 __u_boot_cmd_end = .;
114 71  
  72 + . = .;
115 73 __start___ex_table = .;
116 74 __ex_table : { *(__ex_table) }
117 75 __stop___ex_table = .;
118 76  
... ... @@ -124,12 +82,11 @@
124 82 __init_end = .;
125 83  
126 84 __bss_start = .;
127   - .bss (NOLOAD) :
  85 + .bss (NOLOAD) :
128 86 {
129 87 _sbss = .;
130   - *(.sbss) *(.scommon)
131   - *(.dynbss)
132   - *(.bss)
  88 + *(.bss*)
  89 + *(.sbss*)
133 90 *(COMMON)
134 91 . = ALIGN(4);
135 92 _ebss = .;
board/cobra5272/u-boot.lds
... ... @@ -22,51 +22,17 @@
22 22 */
23 23  
24 24 OUTPUT_ARCH(m68k)
25   -/* Do we need any of these for elf?
26   - __DYNAMIC = 0; */
  25 +
27 26 SECTIONS
28 27 {
29   - /* Read-only sections, merged into text segment: */
30   - . = + SIZEOF_HEADERS;
31   - .interp : { *(.interp) }
32   - .hash : { *(.hash) }
33   - .dynsym : { *(.dynsym) }
34   - .dynstr : { *(.dynstr) }
35   - .rel.text : { *(.rel.text) }
36   - .rela.text : { *(.rela.text) }
37   - .rel.data : { *(.rel.data) }
38   - .rela.data : { *(.rela.data) }
39   - .rel.rodata : { *(.rel.rodata) }
40   - .rela.rodata : { *(.rela.rodata) }
41   - .rel.got : { *(.rel.got) }
42   - .rela.got : { *(.rela.got) }
43   - .rel.ctors : { *(.rel.ctors) }
44   - .rela.ctors : { *(.rela.ctors) }
45   - .rel.dtors : { *(.rel.dtors) }
46   - .rela.dtors : { *(.rela.dtors) }
47   - .rel.bss : { *(.rel.bss) }
48   - .rela.bss : { *(.rela.bss) }
49   - .rel.plt : { *(.rel.plt) }
50   - .rela.plt : { *(.rela.plt) }
51   - .init : { *(.init) }
52   - .plt : { *(.plt) }
53 28 .text :
54 29 {
55   - /* WARNING - the following is hand-optimized to fit within */
56   - /* the sector layout of our flash chips! XXX FIXME XXX */
57   - arch/m68k/cpu/mcf52x2/start.o (.text)
58   - arch/m68k/cpu/mcf52x2/cpu_init.o (.text)
59   - arch/m68k/lib/traps.o (.text)
60   - arch/m68k/cpu/mcf52x2/interrupts.o (.text)
61   - common/dlmalloc.o (.text)
62   - lib/zlib.o (.text)
  30 + arch/m68k/cpu/mcf52x2/start.o (.text*)
63 31  
64 32 . = DEFINED(env_offset) ? env_offset : .;
65   - common/env_embedded.o (.text)
  33 + common/env_embedded.o (.text)
66 34  
67   - *(.text)
68   - *(.fixup)
69   - *(.got1)
  35 + *(.text*)
70 36 }
71 37 _etext = .;
72 38 PROVIDE (etext = .);
... ... @@ -74,9 +40,6 @@
74 40 {
75 41 *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*)))
76 42 }
77   - .fini : { *(.fini) } =0
78   - .ctors : { *(.ctors) }
79   - .dtors : { *(.dtors) }
80 43  
81 44 /* Read-write section, merged into data segment: */
82 45 . = (. + 0x00FF) & 0xFFFFFF00;
83 46  
84 47  
85 48  
... ... @@ -86,24 +49,20 @@
86 49 .reloc :
87 50 {
88 51 __got_start = .;
89   - *(.got)
  52 + KEEP(*(.got))
90 53 __got_end = .;
91 54 _GOT2_TABLE_ = .;
92   - *(.got2)
  55 + KEEP(*(.got2))
93 56 _FIXUP_TABLE_ = .;
94   - *(.fixup)
  57 + KEEP(*(.fixup))
95 58 }
96 59 __got2_entries = (_FIXUP_TABLE_ - _GOT2_TABLE_) >>2;
97 60 __fixup_entries = (. - _FIXUP_TABLE_)>>2;
98 61  
99 62 .data :
100 63 {
101   - *(.data)
102   - *(.data1)
103   - *(.sdata)
104   - *(.sdata2)
105   - *(.dynamic)
106   - CONSTRUCTORS
  64 + *(.data*)
  65 + *(.sdata*)
107 66 }
108 67 _edata = .;
109 68 PROVIDE (edata = .);
... ... @@ -113,7 +72,6 @@
113 72 .u_boot_cmd : { *(.u_boot_cmd) }
114 73 __u_boot_cmd_end = .;
115 74  
116   -
117 75 . = .;
118 76 __start___ex_table = .;
119 77 __ex_table : { *(__ex_table) }
120 78  
... ... @@ -127,12 +85,11 @@
127 85 __init_end = .;
128 86  
129 87 __bss_start = .;
130   - .bss (NOLOAD) :
  88 + .bss (NOLOAD) :
131 89 {
132 90 _sbss = .;
133   - *(.sbss) *(.scommon)
134   - *(.dynbss)
135   - *(.bss)
  91 + *(.bss*)
  92 + *(.sbss*)
136 93 *(COMMON)
137 94 . = ALIGN(4);
138 95 _ebss = .;
board/esd/tasreg/u-boot.lds
... ... @@ -22,62 +22,21 @@
22 22 */
23 23  
24 24 OUTPUT_ARCH(m68k)
25   -/* Do we need any of these for elf?
26   - __DYNAMIC = 0; */
  25 +
27 26 SECTIONS
28 27 {
29   - /* Read-only sections, merged into text segment: */
30   - . = + SIZEOF_HEADERS;
31   - .interp : { *(.interp) }
32   - .hash : { *(.hash) }
33   - .dynsym : { *(.dynsym) }
34   - .dynstr : { *(.dynstr) }
35   - .rel.text : { *(.rel.text) }
36   - .rela.text : { *(.rela.text) }
37   - .rel.data : { *(.rel.data) }
38   - .rela.data : { *(.rela.data) }
39   - .rel.rodata : { *(.rel.rodata) }
40   - .rela.rodata : { *(.rela.rodata) }
41   - .rel.got : { *(.rel.got) }
42   - .rela.got : { *(.rela.got) }
43   - .rel.ctors : { *(.rel.ctors) }
44   - .rela.ctors : { *(.rela.ctors) }
45   - .rel.dtors : { *(.rel.dtors) }
46   - .rela.dtors : { *(.rela.dtors) }
47   - .rel.bss : { *(.rel.bss) }
48   - .rela.bss : { *(.rela.bss) }
49   - .rel.plt : { *(.rel.plt) }
50   - .rela.plt : { *(.rela.plt) }
51   - .init : { *(.init) }
52   - .plt : { *(.plt) }
53 28 .text :
54 29 {
55   - /* WARNING - the following is hand-optimized to fit within */
56   - /* the sector layout of our flash chips! XXX FIXME XXX */
  30 + arch/m68k/cpu/mcf52x2/start.o (.text*)
57 31  
58   - arch/m68k/cpu/mcf52x2/start.o (.text)
59   - arch/m68k/lib/traps.o (.text)
60   - arch/m68k/cpu/mcf52x2/interrupts.o (.text)
61   - common/dlmalloc.o (.text)
62   - lib/zlib.o (.text)
63   -
64   - . = DEFINED(env_offset) ? env_offset : .;
65   - common/env_embedded.o (.text)
66   -
67   - *(.text)
68   - *(.fixup)
69   - *(.got1)
  32 + *(.text*)
70 33 }
71 34 _etext = .;
72 35 PROVIDE (etext = .);
73 36 .rodata :
74 37 {
75   - *(.eh_frame)
76 38 *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*)))
77 39 }
78   - .fini : { *(.fini) } =0
79   - .ctors : { *(.ctors) }
80   - .dtors : { *(.dtors) }
81 40  
82 41 /* Read-write section, merged into data segment: */
83 42 . = (. + 0x00FF) & 0xFFFFFF00;
84 43  
85 44  
86 45  
... ... @@ -87,24 +46,20 @@
87 46 .reloc :
88 47 {
89 48 __got_start = .;
90   - *(.got)
  49 + KEEP(*(.got))
91 50 __got_end = .;
92 51 _GOT2_TABLE_ = .;
93   - *(.got2)
  52 + KEEP(*(.got2))
94 53 _FIXUP_TABLE_ = .;
95   - *(.fixup)
  54 + KEEP(*(.fixup))
96 55 }
97 56 __got2_entries = (_FIXUP_TABLE_ - _GOT2_TABLE_) >>2;
98 57 __fixup_entries = (. - _FIXUP_TABLE_)>>2;
99 58  
100 59 .data :
101 60 {
102   - *(.data)
103   - *(.data1)
104   - *(.sdata)
105   - *(.sdata2)
106   - *(.dynamic)
107   - CONSTRUCTORS
  61 + *(.data*)
  62 + *(.sdata*)
108 63 }
109 64 _edata = .;
110 65 PROVIDE (edata = .);
... ... @@ -114,7 +69,6 @@
114 69 .u_boot_cmd : { *(.u_boot_cmd) }
115 70 __u_boot_cmd_end = .;
116 71  
117   -
118 72 . = .;
119 73 __start___ex_table = .;
120 74 __ex_table : { *(__ex_table) }
121 75  
... ... @@ -128,12 +82,11 @@
128 82 __init_end = .;
129 83  
130 84 __bss_start = .;
131   - .bss (NOLOAD) :
  85 + .bss (NOLOAD) :
132 86 {
133 87 _sbss = .;
134   - *(.sbss) *(.scommon)
135   - *(.dynbss)
136   - *(.bss)
  88 + *(.bss*)
  89 + *(.sbss*)
137 90 *(COMMON)
138 91 . = ALIGN(4);
139 92 _ebss = .;
board/freescale/m5235evb/u-boot.16
... ... @@ -22,63 +22,24 @@
22 22 */
23 23  
24 24 OUTPUT_ARCH(m68k)
25   -/* Do we need any of these for elf?
26   - __DYNAMIC = 0; */
  25 +
27 26 SECTIONS
28 27 {
29   - /* Read-only sections, merged into text segment: */
30   - . = + SIZEOF_HEADERS;
31   - .interp : { *(.interp) }
32   - .hash : { *(.hash) }
33   - .dynsym : { *(.dynsym) }
34   - .dynstr : { *(.dynstr) }
35   - .rel.text : { *(.rel.text) }
36   - .rela.text : { *(.rela.text) }
37   - .rel.data : { *(.rel.data) }
38   - .rela.data : { *(.rela.data) }
39   - .rel.rodata : { *(.rel.rodata) }
40   - .rela.rodata : { *(.rela.rodata) }
41   - .rel.got : { *(.rel.got) }
42   - .rela.got : { *(.rela.got) }
43   - .rel.ctors : { *(.rel.ctors) }
44   - .rela.ctors : { *(.rela.ctors) }
45   - .rel.dtors : { *(.rel.dtors) }
46   - .rela.dtors : { *(.rela.dtors) }
47   - .rel.bss : { *(.rel.bss) }
48   - .rela.bss : { *(.rela.bss) }
49   - .rel.plt : { *(.rel.plt) }
50   - .rela.plt : { *(.rela.plt) }
51   - .init : { *(.init) }
52   - .plt : { *(.plt) }
53 28 .text :
54 29 {
55   - /* WARNING - the following is hand-optimized to fit within */
56   - /* the sector layout of our flash chips! XXX FIXME XXX */
  30 + arch/m68k/cpu/mcf523x/start.o (.text*)
57 31  
58   - arch/m68k/cpu/mcf523x/start.o (.text)
59   - arch/m68k/cpu/mcf523x/cpu_init.o (.text)
60   - arch/m68k/lib/traps.o (.text)
61   - arch/m68k/lib/interrupts.o (.text)
62   - common/dlmalloc.o (.text)
63   - lib/zlib.o (.text)
64   -
65 32 . = DEFINED(env_offset) ? env_offset : .;
66   - common/env_embedded.o (.text)
  33 + common/env_embedded.o (.text)
67 34  
68   - *(.text)
69   - *(.fixup)
70   - *(.got1)
  35 + *(.text*)
71 36 }
72 37 _etext = .;
73 38 PROVIDE (etext = .);
74 39 .rodata :
75 40 {
76   - *(.rodata)
77   - *(.rodata1)
  41 + *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*)))
78 42 }
79   - .fini : { *(.fini) } =0
80   - .ctors : { *(.ctors) }
81   - .dtors : { *(.dtors) }
82 43  
83 44 /* Read-write section, merged into data segment: */
84 45 . = (. + 0x00FF) & 0xFFFFFF00;
85 46  
86 47  
87 48  
... ... @@ -88,24 +49,20 @@
88 49 .reloc :
89 50 {
90 51 __got_start = .;
91   - *(.got)
  52 + KEEP(*(.got))
92 53 __got_end = .;
93 54 _GOT2_TABLE_ = .;
94   - *(.got2)
  55 + KEEP(*(.got2))
95 56 _FIXUP_TABLE_ = .;
96   - *(.fixup)
  57 + KEEP(*(.fixup))
97 58 }
98 59 __got2_entries = (_FIXUP_TABLE_ - _GOT2_TABLE_) >>2;
99 60 __fixup_entries = (. - _FIXUP_TABLE_)>>2;
100 61  
101 62 .data :
102 63 {
103   - *(.data)
104   - *(.data1)
105   - *(.sdata)
106   - *(.sdata2)
107   - *(.dynamic)
108   - CONSTRUCTORS
  64 + *(.data*)
  65 + *(.sdata*)
109 66 }
110 67 _edata = .;
111 68 PROVIDE (edata = .);
... ... @@ -115,7 +72,6 @@
115 72 .u_boot_cmd : { *(.u_boot_cmd) }
116 73 __u_boot_cmd_end = .;
117 74  
118   -
119 75 . = .;
120 76 __start___ex_table = .;
121 77 __ex_table : { *(__ex_table) }
122 78  
... ... @@ -129,12 +85,11 @@
129 85 __init_end = .;
130 86  
131 87 __bss_start = .;
132   - .bss :
  88 + .bss (NOLOAD) :
133 89 {
134 90 _sbss = .;
135   - *(.sbss) *(.scommon)
136   - *(.dynbss)
137   - *(.bss)
  91 + *(.bss*)
  92 + *(.sbss*)
138 93 *(COMMON)
139 94 . = ALIGN(4);
140 95 _ebss = .;
board/freescale/m5235evb/u-boot.32
... ... @@ -22,71 +22,24 @@
22 22 */
23 23  
24 24 OUTPUT_ARCH(m68k)
25   -/* Do we need any of these for elf?
26   - __DYNAMIC = 0; */
  25 +
27 26 SECTIONS
28 27 {
29   - /* Read-only sections, merged into text segment: */
30   - . = + SIZEOF_HEADERS;
31   - .interp : { *(.interp) }
32   - .hash : { *(.hash) }
33   - .dynsym : { *(.dynsym) }
34   - .dynstr : { *(.dynstr) }
35   - .rel.text : { *(.rel.text) }
36   - .rela.text : { *(.rela.text) }
37   - .rel.data : { *(.rel.data) }
38   - .rela.data : { *(.rela.data) }
39   - .rel.rodata : { *(.rel.rodata) }
40   - .rela.rodata : { *(.rela.rodata) }
41   - .rel.got : { *(.rel.got) }
42   - .rela.got : { *(.rela.got) }
43   - .rel.ctors : { *(.rel.ctors) }
44   - .rela.ctors : { *(.rela.ctors) }
45   - .rel.dtors : { *(.rel.dtors) }
46   - .rela.dtors : { *(.rela.dtors) }
47   - .rel.bss : { *(.rel.bss) }
48   - .rela.bss : { *(.rela.bss) }
49   - .rel.plt : { *(.rel.plt) }
50   - .rela.plt : { *(.rela.plt) }
51   - .init : { *(.init) }
52   - .plt : { *(.plt) }
53 28 .text :
54 29 {
55   - /* WARNING - the following is hand-optimized to fit within */
56   - /* the sector layout of our flash chips! XXX FIXME XXX */
  30 + arch/m68k/cpu/mcf523x/start.o (.text*)
57 31  
58   - arch/m68k/cpu/mcf523x/start.o (.text)
59   - arch/m68k/cpu/mcf523x/cpu.o (.text)
60   - arch/m68k/cpu/mcf523x/cpu_init.o (.text)
61   - arch/m68k/cpu/mcf523x/interrupts.o (.text)
62   - arch/m68k/cpu/mcf523x/speed.o (.text)
63   - arch/m68k/lib/libm68k.o (.text)
64   - common/dlmalloc.o (.text)
65   - common/cmd_bootm.o (.text)
66   - common/cmd_flash.o (.text)
67   - common/cmd_elf.o (.text)
68   - common/cmd_mem.o (.text)
69   - common/console.o (.text)
70   - common/main.o (.text)
71   - lib/libgeneric.o (.text)
72   -
73 32 . = DEFINED(env_offset) ? env_offset : .;
74   - common/env_embedded.o (.text)
  33 + common/env_embedded.o (.text)
75 34  
76   - *(.text)
77   - *(.fixup)
78   - *(.got1)
  35 + *(.text*)
79 36 }
80 37 _etext = .;
81 38 PROVIDE (etext = .);
82 39 .rodata :
83 40 {
84   - *(.rodata)
85   - *(.rodata1)
  41 + *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*)))
86 42 }
87   - .fini : { *(.fini) } =0
88   - .ctors : { *(.ctors) }
89   - .dtors : { *(.dtors) }
90 43  
91 44 /* Read-write section, merged into data segment: */
92 45 . = (. + 0x00FF) & 0xFFFFFF00;
93 46  
94 47  
95 48  
... ... @@ -96,24 +49,20 @@
96 49 .reloc :
97 50 {
98 51 __got_start = .;
99   - *(.got)
  52 + KEEP(*(.got))
100 53 __got_end = .;
101 54 _GOT2_TABLE_ = .;
102   - *(.got2)
  55 + KEEP(*(.got2))
103 56 _FIXUP_TABLE_ = .;
104   - *(.fixup)
  57 + KEEP(*(.fixup))
105 58 }
106 59 __got2_entries = (_FIXUP_TABLE_ - _GOT2_TABLE_) >>2;
107 60 __fixup_entries = (. - _FIXUP_TABLE_)>>2;
108 61  
109 62 .data :
110 63 {
111   - *(.data)
112   - *(.data1)
113   - *(.sdata)
114   - *(.sdata2)
115   - *(.dynamic)
116   - CONSTRUCTORS
  64 + *(.data*)
  65 + *(.sdata*)
117 66 }
118 67 _edata = .;
119 68 PROVIDE (edata = .);
... ... @@ -123,7 +72,6 @@
123 72 .u_boot_cmd : { *(.u_boot_cmd) }
124 73 __u_boot_cmd_end = .;
125 74  
126   -
127 75 . = .;
128 76 __start___ex_table = .;
129 77 __ex_table : { *(__ex_table) }
130 78  
... ... @@ -137,12 +85,11 @@
137 85 __init_end = .;
138 86  
139 87 __bss_start = .;
140   - .bss :
  88 + .bss (NOLOAD) :
141 89 {
142 90 _sbss = .;
143   - *(.sbss) *(.scommon)
144   - *(.dynbss)
145   - *(.bss)
  91 + *(.bss*)
  92 + *(.sbss*)
146 93 *(COMMON)
147 94 . = ALIGN(4);
148 95 _ebss = .;
board/freescale/m5249evb/u-boot.lds
... ... @@ -22,62 +22,24 @@
22 22 */
23 23  
24 24 OUTPUT_ARCH(m68k)
25   -/* Do we need any of these for elf?
26   - __DYNAMIC = 0; */
  25 +
27 26 SECTIONS
28 27 {
29   - /* Read-only sections, merged into text segment: */
30   - . = + SIZEOF_HEADERS;
31   - .interp : { *(.interp) }
32   - .hash : { *(.hash) }
33   - .dynsym : { *(.dynsym) }
34   - .dynstr : { *(.dynstr) }
35   - .rel.text : { *(.rel.text) }
36   - .rela.text : { *(.rela.text) }
37   - .rel.data : { *(.rel.data) }
38   - .rela.data : { *(.rela.data) }
39   - .rel.rodata : { *(.rel.rodata) }
40   - .rela.rodata : { *(.rela.rodata) }
41   - .rel.got : { *(.rel.got) }
42   - .rela.got : { *(.rela.got) }
43   - .rel.ctors : { *(.rel.ctors) }
44   - .rela.ctors : { *(.rela.ctors) }
45   - .rel.dtors : { *(.rel.dtors) }
46   - .rela.dtors : { *(.rela.dtors) }
47   - .rel.bss : { *(.rel.bss) }
48   - .rela.bss : { *(.rela.bss) }
49   - .rel.plt : { *(.rel.plt) }
50   - .rela.plt : { *(.rela.plt) }
51   - .init : { *(.init) }
52   - .plt : { *(.plt) }
53 28 .text :
54 29 {
55   - /* WARNING - the following is hand-optimized to fit within */
56   - /* the sector layout of our flash chips! XXX FIXME XXX */
  30 + arch/m68k/cpu/mcf52x2/start.o (.text*)
57 31  
58   - arch/m68k/cpu/mcf52x2/start.o (.text)
59   - arch/m68k/lib/traps.o (.text)
60   - arch/m68k/cpu/mcf52x2/interrupts.o (.text)
61   - common/dlmalloc.o (.text)
62   - lib/zlib.o (.text)
63   -
64 32 . = DEFINED(env_offset) ? env_offset : .;
65   - common/env_embedded.o (.text)
  33 + common/env_embedded.o (.text)
66 34  
67   - *(.text)
68   - *(.fixup)
69   - *(.got1)
  35 + *(.text*)
70 36 }
71 37 _etext = .;
72 38 PROVIDE (etext = .);
73 39 .rodata :
74 40 {
75   - *(.eh_frame)
76 41 *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*)))
77 42 }
78   - .fini : { *(.fini) } =0
79   - .ctors : { *(.ctors) }
80   - .dtors : { *(.dtors) }
81 43  
82 44 /* Read-write section, merged into data segment: */
83 45 . = (. + 0x00FF) & 0xFFFFFF00;
84 46  
85 47  
86 48  
... ... @@ -87,24 +49,20 @@
87 49 .reloc :
88 50 {
89 51 __got_start = .;
90   - *(.got)
  52 + KEEP(*(.got))
91 53 __got_end = .;
92 54 _GOT2_TABLE_ = .;
93   - *(.got2)
  55 + KEEP(*(.got2))
94 56 _FIXUP_TABLE_ = .;
95   - *(.fixup)
  57 + KEEP(*(.fixup))
96 58 }
97 59 __got2_entries = (_FIXUP_TABLE_ - _GOT2_TABLE_) >>2;
98 60 __fixup_entries = (. - _FIXUP_TABLE_)>>2;
99 61  
100 62 .data :
101 63 {
102   - *(.data)
103   - *(.data1)
104   - *(.sdata)
105   - *(.sdata2)
106   - *(.dynamic)
107   - CONSTRUCTORS
  64 + *(.data*)
  65 + *(.sdata*)
108 66 }
109 67 _edata = .;
110 68 PROVIDE (edata = .);
... ... @@ -114,7 +72,6 @@
114 72 .u_boot_cmd : { *(.u_boot_cmd) }
115 73 __u_boot_cmd_end = .;
116 74  
117   -
118 75 . = .;
119 76 __start___ex_table = .;
120 77 __ex_table : { *(__ex_table) }
121 78  
... ... @@ -128,12 +85,11 @@
128 85 __init_end = .;
129 86  
130 87 __bss_start = .;
131   - .bss (NOLOAD) :
  88 + .bss (NOLOAD) :
132 89 {
133 90 _sbss = .;
134   - *(.sbss) *(.scommon)
135   - *(.dynbss)
136   - *(.bss)
  91 + *(.bss*)
  92 + *(.sbss*)
137 93 *(COMMON)
138 94 . = ALIGN(4);
139 95 _ebss = .;
board/freescale/m5253evbe/u-boot.lds
... ... @@ -22,51 +22,17 @@
22 22 */
23 23  
24 24 OUTPUT_ARCH(m68k)
25   -/* Do we need any of these for elf?
26   - __DYNAMIC = 0; */
  25 +
27 26 SECTIONS
28 27 {
29   - /* Read-only sections, merged into text segment: */
30   - . = + SIZEOF_HEADERS;
31   - .interp : { *(.interp) }
32   - .hash : { *(.hash) }
33   - .dynsym : { *(.dynsym) }
34   - .dynstr : { *(.dynstr) }
35   - .rel.text : { *(.rel.text) }
36   - .rela.text : { *(.rela.text) }
37   - .rel.data : { *(.rel.data) }
38   - .rela.data : { *(.rela.data) }
39   - .rel.rodata : { *(.rel.rodata) }
40   - .rela.rodata : { *(.rela.rodata) }
41   - .rel.got : { *(.rel.got) }
42   - .rela.got : { *(.rela.got) }
43   - .rel.ctors : { *(.rel.ctors) }
44   - .rela.ctors : { *(.rela.ctors) }
45   - .rel.dtors : { *(.rel.dtors) }
46   - .rela.dtors : { *(.rela.dtors) }
47   - .rel.bss : { *(.rel.bss) }
48   - .rela.bss : { *(.rela.bss) }
49   - .rel.plt : { *(.rel.plt) }
50   - .rela.plt : { *(.rela.plt) }
51   - .init : { *(.init) }
52   - .plt : { *(.plt) }
53 28 .text :
54 29 {
55   - /* WARNING - the following is hand-optimized to fit within */
56   - /* the sector layout of our flash chips! XXX FIXME XXX */
  30 + arch/m68k/cpu/mcf52x2/start.o (.text*)
57 31  
58   - arch/m68k/cpu/mcf52x2/start.o (.text)
59   - arch/m68k/lib/traps.o (.text)
60   - arch/m68k/cpu/mcf52x2/interrupts.o (.text)
61   - common/dlmalloc.o (.text)
62   - lib/zlib.o (.text)
63   -
64 32 . = DEFINED(env_offset) ? env_offset : .;
65   - common/env_embedded.o (.text)
  33 + common/env_embedded.o (.text)
66 34  
67   - *(.text)
68   - *(.fixup)
69   - *(.got1)
  35 + *(.text*)
70 36 }
71 37 _etext = .;
72 38 PROVIDE (etext = .);
... ... @@ -74,9 +40,6 @@
74 40 {
75 41 *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*)))
76 42 }
77   - .fini : { *(.fini) } =0
78   - .ctors : { *(.ctors) }
79   - .dtors : { *(.dtors) }
80 43  
81 44 /* Read-write section, merged into data segment: */
82 45 . = (. + 0x00FF) & 0xFFFFFF00;
83 46  
84 47  
85 48  
... ... @@ -86,24 +49,20 @@
86 49 .reloc :
87 50 {
88 51 __got_start = .;
89   - *(.got)
  52 + KEEP(*(.got))
90 53 __got_end = .;
91 54 _GOT2_TABLE_ = .;
92   - *(.got2)
  55 + KEEP(*(.got2))
93 56 _FIXUP_TABLE_ = .;
94   - *(.fixup)
  57 + KEEP(*(.fixup))
95 58 }
96 59 __got2_entries = (_FIXUP_TABLE_ - _GOT2_TABLE_) >>2;
97 60 __fixup_entries = (. - _FIXUP_TABLE_)>>2;
98 61  
99 62 .data :
100 63 {
101   - *(.data)
102   - *(.data1)
103   - *(.sdata)
104   - *(.sdata2)
105   - *(.dynamic)
106   - CONSTRUCTORS
  64 + *(.data*)
  65 + *(.sdata*)
107 66 }
108 67 _edata = .;
109 68 PROVIDE (edata = .);
... ... @@ -113,7 +72,6 @@
113 72 .u_boot_cmd : { *(.u_boot_cmd) }
114 73 __u_boot_cmd_end = .;
115 74  
116   -
117 75 . = .;
118 76 __start___ex_table = .;
119 77 __ex_table : { *(__ex_table) }
120 78  
... ... @@ -127,12 +85,11 @@
127 85 __init_end = .;
128 86  
129 87 __bss_start = .;
130   - .bss (NOLOAD) :
  88 + .bss (NOLOAD) :
131 89 {
132 90 _sbss = .;
133   - *(.sbss) *(.scommon)
134   - *(.dynbss)
135   - *(.bss)
  91 + *(.bss*)
  92 + *(.sbss*)
136 93 *(COMMON)
137 94 . = ALIGN(4);
138 95 _ebss = .;
board/freescale/m5271evb/u-boot.lds
... ... @@ -22,52 +22,17 @@
22 22 */
23 23  
24 24 OUTPUT_ARCH(m68k)
25   -/* Do we need any of these for elf?
26   - __DYNAMIC = 0; */
27   -GROUP(libgcc.o)
  25 +
28 26 SECTIONS
29 27 {
30   - /* Read-only sections, merged into text segment: */
31   - . = + SIZEOF_HEADERS;
32   - .interp : { *(.interp) }
33   - .hash : { *(.hash) }
34   - .dynsym : { *(.dynsym) }
35   - .dynstr : { *(.dynstr) }
36   - .rel.text : { *(.rel.text) }
37   - .rela.text : { *(.rela.text) }
38   - .rel.data : { *(.rel.data) }
39   - .rela.data : { *(.rela.data) }
40   - .rel.rodata : { *(.rel.rodata) }
41   - .rela.rodata : { *(.rela.rodata) }
42   - .rel.got : { *(.rel.got) }
43   - .rela.got : { *(.rela.got) }
44   - .rel.ctors : { *(.rel.ctors) }
45   - .rela.ctors : { *(.rela.ctors) }
46   - .rel.dtors : { *(.rel.dtors) }
47   - .rela.dtors : { *(.rela.dtors) }
48   - .rel.bss : { *(.rel.bss) }
49   - .rela.bss : { *(.rela.bss) }
50   - .rel.plt : { *(.rel.plt) }
51   - .rela.plt : { *(.rela.plt) }
52   - .init : { *(.init) }
53   - .plt : { *(.plt) }
54 28 .text :
55 29 {
56   - /* WARNING - the following is hand-optimized to fit within */
57   - /* the sector layout of our flash chips! XXX FIXME XXX */
  30 + arch/m68k/cpu/mcf52x2/start.o (.text*)
58 31  
59   - arch/m68k/cpu/mcf52x2/start.o (.text)
60   - arch/m68k/lib/traps.o (.text)
61   - arch/m68k/cpu/mcf52x2/interrupts.o (.text)
62   - common/dlmalloc.o (.text)
63   - lib/zlib.o (.text)
64   -
65 32 . = DEFINED(env_offset) ? env_offset : .;
66 33 common/env_embedded.o (.ppcenv)
67 34  
68   - *(.text)
69   - *(.fixup)
70   - *(.got1)
  35 + *(.text*)
71 36 }
72 37 _etext = .;
73 38 PROVIDE (etext = .);
... ... @@ -75,9 +40,6 @@
75 40 {
76 41 *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*)))
77 42 }
78   - .fini : { *(.fini) } =0
79   - .ctors : { *(.ctors) }
80   - .dtors : { *(.dtors) }
81 43  
82 44 /* Read-write section, merged into data segment: */
83 45 . = (. + 0x00FF) & 0xFFFFFF00;
84 46  
85 47  
86 48  
... ... @@ -87,24 +49,20 @@
87 49 .reloc :
88 50 {
89 51 __got_start = .;
90   - *(.got)
  52 + KEEP(*(.got))
91 53 __got_end = .;
92 54 _GOT2_TABLE_ = .;
93   - *(.got2)
  55 + KEEP(*(.got2))
94 56 _FIXUP_TABLE_ = .;
95   - *(.fixup)
  57 + KEEP(*(.fixup))
96 58 }
97 59 __got2_entries = (_FIXUP_TABLE_ - _GOT2_TABLE_) >>2;
98 60 __fixup_entries = (. - _FIXUP_TABLE_)>>2;
99 61  
100 62 .data :
101 63 {
102   - *(.data)
103   - *(.data1)
104   - *(.sdata)
105   - *(.sdata2)
106   - *(.dynamic)
107   - CONSTRUCTORS
  64 + *(.data*)
  65 + *(.sdata*)
108 66 }
109 67 _edata = .;
110 68 PROVIDE (edata = .);
... ... @@ -114,7 +72,6 @@
114 72 .u_boot_cmd : { *(.u_boot_cmd) }
115 73 __u_boot_cmd_end = .;
116 74  
117   -
118 75 . = .;
119 76 __start___ex_table = .;
120 77 __ex_table : { *(__ex_table) }
121 78  
... ... @@ -128,12 +85,11 @@
128 85 __init_end = .;
129 86  
130 87 __bss_start = .;
131   - .bss (NOLOAD) :
  88 + .bss (NOLOAD) :
132 89 {
133 90 _sbss = .;
134   - *(.sbss) *(.scommon)
135   - *(.dynbss)
136   - *(.bss)
  91 + *(.bss*)
  92 + *(.sbss*)
137 93 *(COMMON)
138 94 . = ALIGN(4);
139 95 _ebss = .;
board/freescale/m5272c3/u-boot.lds
... ... @@ -22,51 +22,17 @@
22 22 */
23 23  
24 24 OUTPUT_ARCH(m68k)
25   -/* Do we need any of these for elf?
26   - __DYNAMIC = 0; */
  25 +
27 26 SECTIONS
28 27 {
29   - /* Read-only sections, merged into text segment: */
30   - . = + SIZEOF_HEADERS;
31   - .interp : { *(.interp) }
32   - .hash : { *(.hash) }
33   - .dynsym : { *(.dynsym) }
34   - .dynstr : { *(.dynstr) }
35   - .rel.text : { *(.rel.text) }
36   - .rela.text : { *(.rela.text) }
37   - .rel.data : { *(.rel.data) }
38   - .rela.data : { *(.rela.data) }
39   - .rel.rodata : { *(.rel.rodata) }
40   - .rela.rodata : { *(.rela.rodata) }
41   - .rel.got : { *(.rel.got) }
42   - .rela.got : { *(.rela.got) }
43   - .rel.ctors : { *(.rel.ctors) }
44   - .rela.ctors : { *(.rela.ctors) }
45   - .rel.dtors : { *(.rel.dtors) }
46   - .rela.dtors : { *(.rela.dtors) }
47   - .rel.bss : { *(.rel.bss) }
48   - .rela.bss : { *(.rela.bss) }
49   - .rel.plt : { *(.rel.plt) }
50   - .rela.plt : { *(.rela.plt) }
51   - .init : { *(.init) }
52   - .plt : { *(.plt) }
53 28 .text :
54 29 {
55   - /* WARNING - the following is hand-optimized to fit within */
56   - /* the sector layout of our flash chips! XXX FIXME XXX */
  30 + arch/m68k/cpu/mcf52x2/start.o (.text*)
57 31  
58   - arch/m68k/cpu/mcf52x2/start.o (.text)
59   - arch/m68k/lib/traps.o (.text)
60   - arch/m68k/cpu/mcf52x2/interrupts.o (.text)
61   - common/dlmalloc.o (.text)
62   - lib/zlib.o (.text)
63   -
64 32 . = DEFINED(env_offset) ? env_offset : .;
65   - common/env_embedded.o (.text)
  33 + common/env_embedded.o (.text)
66 34  
67   - *(.text)
68   - *(.fixup)
69   - *(.got1)
  35 + *(.text*)
70 36 }
71 37 _etext = .;
72 38 PROVIDE (etext = .);
... ... @@ -74,9 +40,6 @@
74 40 {
75 41 *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*)))
76 42 }
77   - .fini : { *(.fini) } =0
78   - .ctors : { *(.ctors) }
79   - .dtors : { *(.dtors) }
80 43  
81 44 /* Read-write section, merged into data segment: */
82 45 . = (. + 0x00FF) & 0xFFFFFF00;
83 46  
84 47  
85 48  
... ... @@ -86,24 +49,20 @@
86 49 .reloc :
87 50 {
88 51 __got_start = .;
89   - *(.got)
  52 + KEEP(*(.got))
90 53 __got_end = .;
91 54 _GOT2_TABLE_ = .;
92   - *(.got2)
  55 + KEEP(*(.got2))
93 56 _FIXUP_TABLE_ = .;
94   - *(.fixup)
  57 + KEEP(*(.fixup))
95 58 }
96 59 __got2_entries = (_FIXUP_TABLE_ - _GOT2_TABLE_) >>2;
97 60 __fixup_entries = (. - _FIXUP_TABLE_)>>2;
98 61  
99 62 .data :
100 63 {
101   - *(.data)
102   - *(.data1)
103   - *(.sdata)
104   - *(.sdata2)
105   - *(.dynamic)
106   - CONSTRUCTORS
  64 + *(.data*)
  65 + *(.sdata*)
107 66 }
108 67 _edata = .;
109 68 PROVIDE (edata = .);
... ... @@ -113,7 +72,6 @@
113 72 .u_boot_cmd : { *(.u_boot_cmd) }
114 73 __u_boot_cmd_end = .;
115 74  
116   -
117 75 . = .;
118 76 __start___ex_table = .;
119 77 __ex_table : { *(__ex_table) }
120 78  
... ... @@ -127,12 +85,11 @@
127 85 __init_end = .;
128 86  
129 87 __bss_start = .;
130   - .bss (NOLOAD) :
  88 + .bss (NOLOAD) :
131 89 {
132 90 _sbss = .;
133   - *(.sbss) *(.scommon)
134   - *(.dynbss)
135   - *(.bss)
  91 + *(.bss*)
  92 + *(.sbss*)
136 93 *(COMMON)
137 94 . = ALIGN(4);
138 95 _ebss = .;
board/freescale/m5275evb/u-boot.lds
... ... @@ -22,50 +22,17 @@
22 22 */
23 23  
24 24 OUTPUT_ARCH(m68k)
25   -/* Do we need any of these for elf?
26   - __DYNAMIC = 0; */
  25 +
27 26 SECTIONS
28 27 {
29   - /* Read-only sections, merged into text segment: */
30   - . = + SIZEOF_HEADERS;
31   - .interp : { *(.interp) }
32   - .hash : { *(.hash) }
33   - .dynsym : { *(.dynsym) }
34   - .dynstr : { *(.dynstr) }
35   - .rel.text : { *(.rel.text) }
36   - .rela.text : { *(.rela.text) }
37   - .rel.data : { *(.rel.data) }
38   - .rela.data : { *(.rela.data) }
39   - .rel.rodata : { *(.rel.rodata) }
40   - .rela.rodata : { *(.rela.rodata) }
41   - .rel.got : { *(.rel.got) }
42   - .rela.got : { *(.rela.got) }
43   - .rel.ctors : { *(.rel.ctors) }
44   - .rela.ctors : { *(.rela.ctors) }
45   - .rel.dtors : { *(.rel.dtors) }
46   - .rela.dtors : { *(.rela.dtors) }
47   - .rel.bss : { *(.rel.bss) }
48   - .rela.bss : { *(.rela.bss) }
49   - .rel.plt : { *(.rel.plt) }
50   - .rela.plt : { *(.rela.plt) }
51   - .init : { *(.init) }
52   - .plt : { *(.plt) }
53 28 .text :
54 29 {
55   - /* WARNING - the following is hand-optimized to fit within */
56   - /* the sector layout of our flash chips! XXX FIXME XXX */
  30 + arch/m68k/cpu/mcf52x2/start.o (.text*)
57 31  
58   - arch/m68k/cpu/mcf52x2/start.o (.text)
59   - common/dlmalloc.o (.text)
60   - lib/string.o (.text)
61   - lib/zlib.o (.text)
62   -
63 32 . = DEFINED(env_offset) ? env_offset : .;
64   - common/env_embedded.o(.text)
  33 + common/env_embedded.o (.text)
65 34  
66   - *(.text)
67   - *(.fixup)
68   - *(.got1)
  35 + *(.text*)
69 36 }
70 37 _etext = .;
71 38 PROVIDE (etext = .);
72 39  
73 40  
74 41  
75 42  
76 43  
... ... @@ -73,35 +40,29 @@
73 40 {
74 41 *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*)))
75 42 }
76   - .fini : { *(.fini) } =0
77   - .ctors : { *(.ctors) }
78   - .dtors : { *(.dtors) }
79 43  
80 44 /* Read-write section, merged into data segment: */
81 45 . = (. + 0x00FF) & 0xFFFFFF00;
82 46 _erotext = .;
83 47 PROVIDE (erotext = .);
84   - .reloc :
  48 +
  49 + .reloc :
85 50 {
86 51 __got_start = .;
87   - *(.got)
  52 + KEEP(*(.got))
88 53 __got_end = .;
89 54 _GOT2_TABLE_ = .;
90   - *(.got2)
  55 + KEEP(*(.got2))
91 56 _FIXUP_TABLE_ = .;
92   - *(.fixup)
  57 + KEEP(*(.fixup))
93 58 }
94 59 __got2_entries = (_FIXUP_TABLE_ - _GOT2_TABLE_) >>2;
95 60 __fixup_entries = (. - _FIXUP_TABLE_)>>2;
96 61  
97 62 .data :
98 63 {
99   - *(.data)
100   - *(.data1)
101   - *(.sdata)
102   - *(.sdata2)
103   - *(.dynamic)
104   - CONSTRUCTORS
  64 + *(.data*)
  65 + *(.sdata*)
105 66 }
106 67 _edata = .;
107 68 PROVIDE (edata = .);
108 69  
... ... @@ -124,12 +85,11 @@
124 85 __init_end = .;
125 86  
126 87 __bss_start = .;
127   - .bss :
  88 + .bss (NOLOAD) :
128 89 {
129 90 _sbss = .;
130   - *(.sbss) *(.scommon)
131   - *(.dynbss)
132   - *(.bss)
  91 + *(.bss*)
  92 + *(.sbss*)
133 93 *(COMMON)
134 94 . = ALIGN(4);
135 95 _ebss = .;
board/freescale/m5282evb/u-boot.lds
... ... @@ -22,51 +22,14 @@
22 22 */
23 23  
24 24 OUTPUT_ARCH(m68k)
25   -/* Do we need any of these for elf?
26   - __DYNAMIC = 0; */
  25 +
27 26 SECTIONS
28 27 {
29   - /* Read-only sections, merged into text segment: */
30   - . = + SIZEOF_HEADERS;
31   - .interp : { *(.interp) }
32   - .hash : { *(.hash) }
33   - .dynsym : { *(.dynsym) }
34   - .dynstr : { *(.dynstr) }
35   - .rel.text : { *(.rel.text) }
36   - .rela.text : { *(.rela.text) }
37   - .rel.data : { *(.rel.data) }
38   - .rela.data : { *(.rela.data) }
39   - .rel.rodata : { *(.rel.rodata) }
40   - .rela.rodata : { *(.rela.rodata) }
41   - .rel.got : { *(.rel.got) }
42   - .rela.got : { *(.rela.got) }
43   - .rel.ctors : { *(.rel.ctors) }
44   - .rela.ctors : { *(.rela.ctors) }
45   - .rel.dtors : { *(.rel.dtors) }
46   - .rela.dtors : { *(.rela.dtors) }
47   - .rel.bss : { *(.rel.bss) }
48   - .rela.bss : { *(.rela.bss) }
49   - .rel.plt : { *(.rel.plt) }
50   - .rela.plt : { *(.rela.plt) }
51   - .init : { *(.init) }
52   - .plt : { *(.plt) }
53 28 .text :
54 29 {
55   - /* WARNING - the following is hand-optimized to fit within */
56   - /* the sector layout of our flash chips! XXX FIXME XXX */
  30 + arch/m68k/cpu/mcf52x2/start.o (.text*)
57 31  
58   - arch/m68k/cpu/mcf52x2/start.o (.text)
59   - common/dlmalloc.o (.text)
60   - lib/string.o (.text)
61   - lib/vsprintf.o (.text)
62   - lib/crc32.o (.text)
63   -
64   - . = DEFINED(env_offset) ? env_offset : .;
65   - common/env_embedded.o(.text)
66   -
67   - *(.text)
68   - *(.fixup)
69   - *(.got1)
  32 + *(.text*)
70 33 }
71 34 _etext = .;
72 35 PROVIDE (etext = .);
73 36  
74 37  
75 38  
76 39  
77 40  
... ... @@ -74,35 +37,29 @@
74 37 {
75 38 *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*)))
76 39 }
77   - .fini : { *(.fini) } =0
78   - .ctors : { *(.ctors) }
79   - .dtors : { *(.dtors) }
80 40  
81 41 /* Read-write section, merged into data segment: */
82 42 . = (. + 0x00FF) & 0xFFFFFF00;
83 43 _erotext = .;
84 44 PROVIDE (erotext = .);
85   - .reloc :
  45 +
  46 + .reloc :
86 47 {
87 48 __got_start = .;
88   - *(.got)
  49 + KEEP(*(.got))
89 50 __got_end = .;
90 51 _GOT2_TABLE_ = .;
91   - *(.got2)
  52 + KEEP(*(.got2))
92 53 _FIXUP_TABLE_ = .;
93   - *(.fixup)
  54 + KEEP(*(.fixup))
94 55 }
95 56 __got2_entries = (_FIXUP_TABLE_ - _GOT2_TABLE_) >>2;
96 57 __fixup_entries = (. - _FIXUP_TABLE_)>>2;
97 58  
98 59 .data :
99 60 {
100   - *(.data)
101   - *(.data1)
102   - *(.sdata)
103   - *(.sdata2)
104   - *(.dynamic)
105   - CONSTRUCTORS
  61 + *(.data*)
  62 + *(.sdata*)
106 63 }
107 64 _edata = .;
108 65 PROVIDE (edata = .);
109 66  
... ... @@ -125,12 +82,11 @@
125 82 __init_end = .;
126 83  
127 84 __bss_start = .;
128   - .bss (NOLOAD) :
  85 + .bss (NOLOAD) :
129 86 {
130 87 _sbss = .;
131   - *(.sbss) *(.scommon)
132   - *(.dynbss)
133   - *(.bss)
  88 + *(.bss*)
  89 + *(.sbss*)
134 90 *(COMMON)
135 91 . = ALIGN(4);
136 92 _ebss = .;
board/idmr/u-boot.lds
... ... @@ -22,52 +22,14 @@
22 22 */
23 23  
24 24 OUTPUT_ARCH(m68k)
25   -/* Do we need any of these for elf?
26   - __DYNAMIC = 0; */
27   -GROUP(libgcc.o)
  25 +
28 26 SECTIONS
29 27 {
30   - /* Read-only sections, merged into text segment: */
31   - . = + SIZEOF_HEADERS;
32   - .interp : { *(.interp) }
33   - .hash : { *(.hash) }
34   - .dynsym : { *(.dynsym) }
35   - .dynstr : { *(.dynstr) }
36   - .rel.text : { *(.rel.text) }
37   - .rela.text : { *(.rela.text) }
38   - .rel.data : { *(.rel.data) }
39   - .rela.data : { *(.rela.data) }
40   - .rel.rodata : { *(.rel.rodata) }
41   - .rela.rodata : { *(.rela.rodata) }
42   - .rel.got : { *(.rel.got) }
43   - .rela.got : { *(.rela.got) }
44   - .rel.ctors : { *(.rel.ctors) }
45   - .rela.ctors : { *(.rela.ctors) }
46   - .rel.dtors : { *(.rel.dtors) }
47   - .rela.dtors : { *(.rela.dtors) }
48   - .rel.bss : { *(.rel.bss) }
49   - .rela.bss : { *(.rela.bss) }
50   - .rel.plt : { *(.rel.plt) }
51   - .rela.plt : { *(.rela.plt) }
52   - .init : { *(.init) }
53   - .plt : { *(.plt) }
54 28 .text :
55 29 {
56   - /* WARNING - the following is hand-optimized to fit within */
57   - /* the sector layout of our flash chips! XXX FIXME XXX */
  30 + arch/m68k/cpu/mcf52x2/start.o (.text*)
58 31  
59   - arch/m68k/cpu/mcf52x2/start.o (.text)
60   - arch/m68k/lib/traps.o (.text)
61   - arch/m68k/cpu/mcf52x2/interrupts.o (.text)
62   - common/dlmalloc.o (.text)
63   - lib/zlib.o (.text)
64   -
65   - . = DEFINED(env_offset) ? env_offset : .;
66   - common/env_embedded.o (.ppcenv)
67   -
68   - *(.text)
69   - *(.fixup)
70   - *(.got1)
  32 + *(.text*)
71 33 }
72 34 _etext = .;
73 35 PROVIDE (etext = .);
... ... @@ -75,9 +37,6 @@
75 37 {
76 38 *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*)))
77 39 }
78   - .fini : { *(.fini) } =0
79   - .ctors : { *(.ctors) }
80   - .dtors : { *(.dtors) }
81 40  
82 41 /* Read-write section, merged into data segment: */
83 42 . = (. + 0x00FF) & 0xFFFFFF00;
84 43  
85 44  
86 45  
... ... @@ -87,24 +46,20 @@
87 46 .reloc :
88 47 {
89 48 __got_start = .;
90   - *(.got)
  49 + KEEP(*(.got))
91 50 __got_end = .;
92 51 _GOT2_TABLE_ = .;
93   - *(.got2)
  52 + KEEP(*(.got2))
94 53 _FIXUP_TABLE_ = .;
95   - *(.fixup)
  54 + KEEP(*(.fixup))
96 55 }
97 56 __got2_entries = (_FIXUP_TABLE_ - _GOT2_TABLE_) >>2;
98 57 __fixup_entries = (. - _FIXUP_TABLE_)>>2;
99 58  
100 59 .data :
101 60 {
102   - *(.data)
103   - *(.data1)
104   - *(.sdata)
105   - *(.sdata2)
106   - *(.dynamic)
107   - CONSTRUCTORS
  61 + *(.data*)
  62 + *(.sdata*)
108 63 }
109 64 _edata = .;
110 65 PROVIDE (edata = .);
... ... @@ -114,7 +69,6 @@
114 69 .u_boot_cmd : { *(.u_boot_cmd) }
115 70 __u_boot_cmd_end = .;
116 71  
117   -
118 72 . = .;
119 73 __start___ex_table = .;
120 74 __ex_table : { *(__ex_table) }
121 75  
... ... @@ -128,12 +82,11 @@
128 82 __init_end = .;
129 83  
130 84 __bss_start = .;
131   - .bss (NOLOAD) :
  85 + .bss (NOLOAD) :
132 86 {
133 87 _sbss = .;
134   - *(.sbss) *(.scommon)
135   - *(.dynbss)
136   - *(.bss)
  88 + *(.bss*)
  89 + *(.sbss*)
137 90 *(COMMON)
138 91 . = ALIGN(4);
139 92 _ebss = .;