summaryrefslogtreecommitdiffstats
path: root/target/linux/ubicom32/patches-2.6.30/110-vmlinux_lds_fix.patch
blob: 1a14308874635beb2dc280e274387ec4821ddf50 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
--- a/arch/ubicom32/kernel/vmlinux.lds.S
+++ b/arch/ubicom32/kernel/vmlinux.lds.S
@@ -25,7 +25,6 @@
  *   arch/blackfin
  *   arch/parisc
  */
-#include <asm-generic/vmlinux.lds.h>
 #include <asm/ocm_size.h>
 #include <asm/memory_map.h>
 #include <asm/thread_info.h>
@@ -201,94 +200,28 @@ SECTIONS {
 		*(__ex_table)
 		__stop___ex_table = .;
 
-		*(.rodata) *(.rodata.*)
-		*(__vermagic)		/* Kernel version magic */
-		*(__markers_strings)
-		*(.rodata1)
-		*(.rodata.str1.1)
-		*(__tracepoints_strings)
-
-		 /* PCI quirks */
-		__start_pci_fixups_early = . ;
-			*(.pci_fixup_early)
-		__end_pci_fixups_early = . ;
-		__start_pci_fixups_header = . ;
-			*(.pci_fixup_header)
-		__end_pci_fixups_header = . ;
-		__start_pci_fixups_final = . ;
-			*(.pci_fixup_final)
-		__end_pci_fixups_final = . ;
-		__start_pci_fixups_enable = . ;
-			*(.pci_fixup_enable)
-		__end_pci_fixups_enable = . ;
-		__start_pci_fixups_resume = . ;
-		       *(.pci_fixup_resume)
-		__end_pci_fixups_resume = . ;
-		__start_pci_fixups_resume_early = . ;
-		       *(.pci_fixup_resume_early)
-		__end_pci_fixups_resume_early = . ;
-		__start_pci_fixups_suspend  = . ;
-		       *(.pci_fixup_suspend)
-		__end_pci_fixups_suspend = . ;
-
-		__start_builtin_fw = . ;
-			*(.builtin_fw)
-		__end_builtin_fw = . ;
-
-
-		/* Kernel symbol table: Normal symbols */
-		. = ALIGN(4);
-		__start___ksymtab = .;
-		*(__ksymtab)
-		__stop___ksymtab = .;
-
-		/* Kernel symbol table: GPL-only symbols */
-		__start___ksymtab_gpl = .;
-		*(__ksymtab_gpl)
-		__stop___ksymtab_gpl = .;
-
-		/* Kernel symbol table: Normal unused symbols */
-		__start___ksymtab_unused = .;
-		*(__ksymtab_unused)
-		__stop___ksymtab_unused = .;
-
-		/* Kernel symbol table: GPL-only unused symbols */
-		__start___ksymtab_unused_gpl = .;
-		*(__ksymtab_unused_gpl)
-		__stop___ksymtab_unused_gpl = .;
-
-		/* Kernel symbol table: GPL-future symbols */
-		__start___ksymtab_gpl_future = .;
-		*(__ksymtab_gpl_future)
-		__stop___ksymtab_gpl_future = .;
-
-		/* Kernel symbol table: Normal symbols */
-		__start___kcrctab = .;
-		*(__kcrctab)
-		__stop___kcrctab = .;
-
-		/* Kernel symbol table: GPL-only symbols */
-		__start___kcrctab_gpl = .;
-		*(__kcrctab_gpl)
-		__stop___kcrctab_gpl = .;
-
-		/* Kernel symbol table: GPL-future symbols */
-		__start___kcrctab_gpl_future = .;
-		*(__kcrctab_gpl_future)
-		__stop___kcrctab_gpl_future = .;
+	} > TEXT
 
-		/* Kernel symbol table: strings */
-		*(__ksymtab_strings)
+	RO_DATA(16)
 
-		/* Built-in module parameters */
-		. = ALIGN(4) ;
-		__start___param = .;
-		*(__param)
-		__stop___param = .;
+	.rodata : {} > TEXT
+	.rodata1 : {} > TEXT
+	.pci_fixup : {} > TEXT
+	.builtin_fw : {} > TEXT
+	.rio_route : {} > TEXT
+	.tracedata : {} > TEXT
+	__ksymtab : {} > TEXT
+	__ksymtab_gpl : {} > TEXT
+	__ksymtab_gpl_future : {} > TEXT
+	__kcrctab_gpl : {} > TEXT
+	__kcrctab_unused : {} > TEXT
+	__kcrctab_unused_gpl : {} > TEXT
+	__kcrctab_gpl_future : {} > TEXT
+	__ksymtab_strings : {} > TEXT
+	__init_rodata : {} > TEXT
+	__param : {} > TEXT
 
-		. = ALIGN(4) ;
-		_etext = . ;
-	} > TEXT
+	_etext = .;
 
 	.data DATA_ADDR : {
 		. = ALIGN(4);
@@ -349,12 +282,6 @@ SECTIONS {
 	    PROVIDE (___eh_frame_end = .);
 	  } > INIT
 
-	/DISCARD/ : {
-		EXIT_TEXT
-		EXIT_DATA
-		*(.exitcall.exit)
-	}
-
 	.bss : {
 		. = ALIGN(4);
 		_sbss = . ;
@@ -365,6 +292,12 @@ SECTIONS {
 		_end = . ;
 	} > BSS
 
+	/DISCARD/ : {
+		EXIT_TEXT
+		EXIT_DATA
+		*(.exitcall.exit)
+	}
+
 	NOTES > BSS
 
 }