LD arch/x86/realmode/rm/realmode.elf
arch/x86/realmode/rm/header.o:功能real_mode_header':(.header+0x8): undefined reference to
pa_蹦床开始'
arch/x86/realmode/rm/header.o:In functionreal_mode_header':(.header+0xc): undefined reference to
pa嫒u蹦床状态'
arch/x86/realmode/rm/header.o:功能real_mode_header':(.header+0x10): undefined reference to
pa嫒u蹦床嫒头'
arch/x86/realmode/rm/header.o:功能real_mode_header':(.header+0x14): undefined reference to
pa_蹦床
arch/x86/realmode/rm/header.o:在函数中real_mode_header':(.header+0x18): undefined reference to
pa_wakeup_start'
arch/x86/realmode/rm/header.o:在函数中real_mode_header':(.header+0x1c): undefined reference to
pa廑u wakeup廑u header'
arch/x86/realmode/rm/header.o:功能real_mode_header':(.header+0x20): undefined reference to
pa_machine_real_restart_asm'
arch/x86/realmode/rm/trampoline_64.o:功能trampoline_start':/home/xhyang/src/linux/arch/x86/realmode/rm/trampoline_64.S:77: undefined reference to
pa_32'
arch/x86/realmode/rm/trampoline_64.o:功能startup_32':/home/xhyang/src/linux/arch/x86/realmode/rm/trampoline_64.S:95: undefined reference to
pa_tr_cr4'
/home/xhyang/src/linux/arch/x86/realmode/rm/trampoline_64.S:99:未定义对pa_trampoline_pgd'/home/xhyang/src/linux/arch/x86/realmode/rm/trampoline_64.S:103: undefined reference to
pa_tr_efer'的引用
/home/xhyang/src/linux/arch/x86/realmode/rm/trampoline_64.S:104:未定义对pa_tr_efer'/home/xhyang/src/linux/arch/x86/realmode/rm/trampoline_64.S:118: undefined reference to
pa_64'启动的引用
arch/x86/realmode/rm/trampoline_64.o:功能tr_gdt':(.rodata+0x2): undefined reference to
pa_tr_gdt'
arch/x86/realmode/rm/reboot.o:功能machine_real_restart_asm':/home/xhyang/src/linux/arch/x86/realmode/rm/reboot.S:27: undefined reference to
pa_tr_gdt'
/home/xhyang/src/linux/arch/x86/realmode/rm/reboot.S:33:未定义的对pa_machine_real_restart_paging_off'arch/x86/realmode/rm/reboot.o: In function
machine_real_restart_paging_off'的引用:
/home/xhyang/src/linux/arch/x86/realmode/rm/reboot.S:46:未定义对pa_machine_real_restart_idt'/home/xhyang/src/linux/arch/x86/realmode/rm/reboot.S:53: undefined reference to
pa_machine_real_restart_gdt'的引用
arch/x86/realmode/rm/reboot.o:In functionmachine_real_restart_gdt':(.rodata+0x12): undefined reference to
pa_machine_real_restart_gdt'
arch/x86/realmode/rm/wakeup_asm.o:功能wakeup_gdt':(.rodata+0x2): undefined reference to
pa_wakeup_gdt'
make[3]:*[arch/x86/realmode/rm/realmode.elf]错误1
make[2]:*[arch/x86/realmode/rm/realmode.bin]错误2
最佳答案
我找到了原因。
nm工具不是gnu版本。
关于linux - 在ubuntu中编译最新内核时总会出现编译错误,如下,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/34916800/