Redhat compiles the 2.6.22 kernel and executes makebzImage. An error is reported when compilation is completed quickly.

Source: Internet
Author: User
Redhat compiles the 2.6.22 kernel and executes makebzImage. When compilation is completed quickly, an error is reported. For details, refer to Linux general technology-Linux programming and kernel information. Make some modifications in arch/i386/Makefile:

Change OBJCOPYFLAGS to the following:

OBJCOPYFLAGS: =-O binary -- change-section-lma. bss-0xc0000000-R. note-R. comment-S

Then re-make bzImage

OK.

KSYM. tmp_kallsyms1.S
AS. tmp_kallsyms1.o
LD. tmp_vmlinux2
KSYM. tmp_kallsyms2.S
AS. tmp_kallsyms2.o
LD vmlinux
SYSMAP System. map
SYSMAP. tmp_System.map
MODPOST vmlinux
WARNING: arch/i386/kernel/built-in.o (. exit. text + 0x1b): Section mismatch: reference. init. text: (between 'cache _ remove_dev 'and 'msr _ exit ')
WARNING: arch/i386/kernel/built-in.o (. data + 0x2174): Section mismatch: reference. init. text: (between 'thermal _ throttle_cpu_notifier 'and 'num _ var_ranges ')
WARNING: kernel/built-in.o (. text + 0x15e79): Section mismatch: reference to. init. text: (between 'kthreadd' and 'init _ waitqueue_head ')
AS arch/i386/boot/bootsect. o
LD arch/i386/boot/bootsect
AS arch/i386/boot/setup. o
LD arch/i386/boot/setup
AS arch/i386/boot/compressed/head. o
CC arch/i386/boot/compressed/misc. o
Include/asm/processor. h: In function 'native _ get_debugreg ':
Include/asm/processor. h: 531: warning: asm operand 0 probably doesn't match constraints
Include/asm/processor. h: In function 'native _ set_debugreg ':
Include/asm/processor. h: 558: warning: asm operand 0 probably doesn't match constraints
OBJCOPY arch/i386/boot/compressed/vmlinux. bin
BFD: Warning: Writing section '. bss' to huge (ie negative) file offset 0xc0277000.
Objcopy: arch/i386/boot/compressed/vmlinux. bin: File truncated
Make [2]: *** [arch/i386/boot/compressed/vmlinux. bin] Error 1
Make [1]: *** [arch/i386/boot/compressed/vmlinux] Error 2
Make: *** [bzImage] Error 2
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.