• Sam Ravnborg's avatar
    xen: fix section usage in xen-head.S and setup.c · 08b6d290
    Sam Ravnborg authored
    additional section for .init.text appending a number.
    
    A side effect of this was a section mismatch warning because modpost did
    not recognize a .init.text section named .init.text.1: WARNING:
    vmlinux.o(.text.head+0x247): Section mismatch: reference to
    .init.text.1:start_kernel (between 'is386' and 'check_x87')
    
    Fix this by hardcoding the "ax" in the pushsection.  Thanks to Torlaf for
    reporting this.
    
    Alan Modra provided the hint that made me able to locate the root cause of
    this warning.  And Mike Frysinger told me how to properly fix it using
    __INIT/__FINIT.
    
    Fix following Section mismatch warning in addition:
    WARNING: vmlinux.o(.text+0x14c8): Section mismatch: reference to .init.data:vsyscall_int80_start (between 'fiddle_vdso' and 'xen_setup_features')
    
    fiddle_vdso was only used from a __init function - so declare it __init.
    Signed-off-by: default avatarSam Ravnborg <sam@ravnborg.org>
    Cc: Jeremy Fitzhardinge <jeremy@xensource.com>
    Cc: Chris Wright <chrisw@sous-sol.org>
    Cc: WANG Cong <xiyou.wangcong@gmail.com>
    Cc: Toralf Förster <toralf.foerster@gmx.de>
    Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
    Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
    Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
    08b6d290
xen-head.S 1.12 KB