Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

x86_64: Squash initial_code modpost warnings

Get rid of warnings like

WARNING: vmlinux.o(.bootstrap.text+0x1a8): Section mismatch: reference to .init.text:x86_64_start_kernel (between 'initial_code' and 'init_rsp')

- Move initialization code into .text.head like i386 because modpost knows about this already
- Mark initial_code .initdata

Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Andi Kleen and committed by
Linus Torvalds
92417df0 dec2e6b7

+8 -2
+7 -1
arch/x86_64/kernel/head.S
··· 25 25 */ 26 26 27 27 .text 28 - .section .bootstrap.text 28 + .section .text.head 29 29 .code64 30 30 .globl startup_64 31 31 startup_64: ··· 243 243 lretq 244 244 245 245 /* SMP bootup changes these two */ 246 + #ifndef CONFIG_HOTPLUG_CPU 247 + .pushsection .init.data 248 + #endif 246 249 .align 8 247 250 .globl initial_code 248 251 initial_code: 249 252 .quad x86_64_start_kernel 253 + #ifndef CONFIG_HOTPLUG_CPU 254 + .popsection 255 + #endif 250 256 .globl init_rsp 251 257 init_rsp: 252 258 .quad init_thread_union+THREAD_SIZE-8
+1 -1
arch/x86_64/kernel/vmlinux.lds.S
··· 28 28 _text = .; /* Text and read-only data */ 29 29 .text : AT(ADDR(.text) - LOAD_OFFSET) { 30 30 /* First the code that has to be first for bootstrapping */ 31 - *(.bootstrap.text) 31 + *(.text.head) 32 32 _stext = .; 33 33 /* Then the rest */ 34 34 TEXT_TEXT