@@ -135,7 +135,7 @@ SECTIONS
135
135
SOFTIRQENTRY_TEXT
136
136
#ifdef CONFIG_RETPOLINE
137
137
__indirect_thunk_start = .;
138
- *(.text .__x86.*)
138
+ KEEP( *(.text .__x86.*) )
139
139
__indirect_thunk_end = .;
140
140
#endif
141
141
STATIC_CALL_TEXT
@@ -239,22 +239,22 @@ SECTIONS
239
239
* See static_cpu_has() for an example.
240
240
*/
241
241
.altinstr_aux : AT(ADDR(.altinstr_aux) - LOAD_OFFSET) {
242
- *(.altinstr_aux)
242
+ KEEP( *(.altinstr_aux) )
243
243
}
244
244
245
245
INIT_DATA_SECTION(16 )
246
246
247
247
.x86_cpu_dev.init : AT(ADDR(.x86_cpu_dev.init) - LOAD_OFFSET) {
248
248
__x86_cpu_dev_start = .;
249
- *(.x86_cpu_dev.init)
249
+ KEEP( *(.x86_cpu_dev.init) )
250
250
__x86_cpu_dev_end = .;
251
251
}
252
252
253
253
#ifdef CONFIG_X86_INTEL_MID
254
254
.x86_intel_mid_dev.init : AT(ADDR(.x86_intel_mid_dev.init) - \
255
255
LOAD_OFFSET) {
256
256
__x86_intel_mid_dev_start = .;
257
- *(.x86_intel_mid_dev.init)
257
+ KEEP( *(.x86_intel_mid_dev.init) )
258
258
__x86_intel_mid_dev_end = .;
259
259
}
260
260
#endif
@@ -268,7 +268,7 @@ SECTIONS
268
268
. = ALIGN(8 );
269
269
.parainstructions : AT(ADDR(.parainstructions) - LOAD_OFFSET) {
270
270
__parainstructions = .;
271
- *(.parainstructions)
271
+ KEEP( *(.parainstructions) )
272
272
__parainstructions_end = .;
273
273
}
274
274
@@ -281,21 +281,21 @@ SECTIONS
281
281
. = ALIGN(8 );
282
282
.retpoline_sites : AT(ADDR(.retpoline_sites) - LOAD_OFFSET) {
283
283
__retpoline_sites = .;
284
- *(.retpoline_sites)
284
+ KEEP( *(.retpoline_sites) )
285
285
__retpoline_sites_end = .;
286
286
}
287
287
288
288
. = ALIGN(8 );
289
289
.return_sites : AT(ADDR(.return_sites) - LOAD_OFFSET) {
290
290
__return_sites = .;
291
- *(.return_sites)
291
+ KEEP( *(.return_sites) )
292
292
__return_sites_end = .;
293
293
}
294
294
295
295
. = ALIGN(8 );
296
296
.call_sites : AT(ADDR(.call_sites) - LOAD_OFFSET) {
297
297
__call_sites = .;
298
- *(.call_sites)
298
+ KEEP( *(.call_sites) )
299
299
__call_sites_end = .;
300
300
}
301
301
#endif
@@ -304,7 +304,7 @@ SECTIONS
304
304
. = ALIGN(8 );
305
305
.ibt_endbr_seal : AT(ADDR(.ibt_endbr_seal) - LOAD_OFFSET) {
306
306
__ibt_endbr_seal = .;
307
- *(.ibt_endbr_seal)
307
+ KEEP( *(.ibt_endbr_seal) )
308
308
__ibt_endbr_seal_end = .;
309
309
}
310
310
#endif
@@ -313,7 +313,7 @@ SECTIONS
313
313
. = ALIGN(8 );
314
314
.cfi_sites : AT(ADDR(.cfi_sites) - LOAD_OFFSET) {
315
315
__cfi_sites = .;
316
- *(.cfi_sites)
316
+ KEEP( *(.cfi_sites) )
317
317
__cfi_sites_end = .;
318
318
}
319
319
#endif
@@ -326,7 +326,7 @@ SECTIONS
326
326
. = ALIGN(8 );
327
327
.altinstructions : AT(ADDR(.altinstructions) - LOAD_OFFSET) {
328
328
__alt_instructions = .;
329
- *(.altinstructions)
329
+ KEEP( *(.altinstructions) )
330
330
__alt_instructions_end = .;
331
331
}
332
332
@@ -336,13 +336,13 @@ SECTIONS
336
336
* get the address and the length of them to patch the kernel safely.
337
337
*/
338
338
.altinstr_replacement : AT(ADDR(.altinstr_replacement) - LOAD_OFFSET) {
339
- *(.altinstr_replacement)
339
+ KEEP( *(.altinstr_replacement) )
340
340
}
341
341
342
342
. = ALIGN(8 );
343
343
.apicdrivers : AT(ADDR(.apicdrivers) - LOAD_OFFSET) {
344
344
__apicdrivers = .;
345
- *(.apicdrivers);
345
+ KEEP( *(.apicdrivers))
346
346
__apicdrivers_end = .;
347
347
}
348
348
@@ -377,7 +377,7 @@ SECTIONS
377
377
. = ALIGN(PAGE_SIZE);
378
378
.smp_locks : AT(ADDR(.smp_locks) - LOAD_OFFSET) {
379
379
__smp_locks = .;
380
- *(.smp_locks)
380
+ KEEP( *(.smp_locks) )
381
381
. = ALIGN(PAGE_SIZE);
382
382
__smp_locks_end = .;
383
383
}
@@ -412,7 +412,7 @@ SECTIONS
412
412
.brk : AT(ADDR(.brk) - LOAD_OFFSET) {
413
413
__brk_base = .;
414
414
. += 64 * 1024 ; /* 64k alignment slop space */
415
- *(.bss ..brk) /* areas brk users have reserved */
415
+ KEEP( *(.bss ..brk)) /* areas brk users have reserved */
416
416
__brk_limit = .;
417
417
}
418
418
@@ -438,7 +438,7 @@ SECTIONS
438
438
. = ALIGN(HPAGE_SIZE);
439
439
.init.scratch : AT(ADDR(.init.scratch) - LOAD_OFFSET) {
440
440
__init_scratch_begin = .;
441
- *(.init.scratch)
441
+ KEEP( *(.init.scratch) )
442
442
. = ALIGN(HPAGE_SIZE);
443
443
__init_scratch_end = .;
444
444
}
0 commit comments