make bzImage CC=/usr/local/bin/gcc LD=/usr/local/bin/ld
LAST PART OF BUILDING
##############################
/usr/local/bin/ld -T /usr/src/linux-2.4.21/arch/i386/vmlinux.lds -e stext arch/i386/kernel/head.o arch/i386/kernel/init_task.o init/main.o init/version.o init/do_mounts.o \
--start-group \
arch/i386/kernel/kernel.o arch/i386/mm/mm.o kernel/kernel.o mm/mm.o fs/fs.o ipc/ipc.o \
drivers/char/char.o drivers/block/block.o drivers/misc/misc.o drivers/net/net.o drivers/ide/idedriver.o drivers/cdrom/driver.o drivers/pci/driver.o drivers/video/video.o drivers/usb/usbdrv.o drivers/media/media.o \
net/network.o \
grsecurity/grsec.o \
/usr/src/linux-2.4.21/arch/i386/lib/lib.a /usr/src/linux-2.4.21/lib/lib.a /usr/src/linux-2.4.21/arch/i386/lib/lib.a \
--end-group \
-o vmlinux
nm vmlinux | grep -v '\(compiled\)\|\(\.o$\)\|\( [aUw] \)\|\(\.\.ng$\)\|\(LASH[RL]DI\)' | sort > System.map
make[1]: Entering directory `/usr/src/linux-2.4.21/arch/i386/boot'
/usr/local/bin/gcc -E -D__KERNEL__ -I/usr/src/linux-2.4.21/include -D__BIG_KERNEL__ -traditional -DSVGA_MODE=NORMAL_VGA bootsect.S -o bbootsect.s
bootsect.S:237: attention : éléments lexicaux superflus à la fin de la directive #ifdef
as -o bbootsect.o bbootsect.s
bbootsect.s: Assembler messages:
bbootsect.s:232: Warning: indirect lcall without `*'
/usr/local/bin/ld -Ttext 0x0 -s --oformat binary bbootsect.o -o bbootsect
/usr/local/bin/gcc -E -D__KERNEL__ -I/usr/src/linux-2.4.21/include -D__BIG_KERNEL__ -D__ASSEMBLY__ -traditional -DSVGA_MODE=NORMAL_VGA setup.S -o bsetup.s
as -o bsetup.o bsetup.s
bsetup.s: Assembler messages:
bsetup.s:1335: Warning: indirect lcall without `*'
/usr/local/bin/ld -Ttext 0x0 -s --oformat binary -e begtext -o bsetup bsetup.o
make[2]: Entering directory `/usr/src/linux-2.4.21/arch/i386/boot/compressed'
tmppiggy=_tmp_$$piggy; \
rm -f $tmppiggy $tmppiggy.gz $tmppiggy.lnk; \
objcopy -O binary -R .note -R .comment -S /usr/src/linux-2.4.21/vmlinux $tmppiggy; \
gzip -f -9 < $tmppiggy > $tmppiggy.gz; \
echo "SECTIONS { .data : { input_len = .; LONG(input_data_end - input_data) input_data = .; *(.data) input_data_end = .; }}" > $tmppiggy.lnk; \
/usr/local/bin/ld -r -o piggy.o -b binary $tmppiggy.gz -b elf32-i386 -T $tmppiggy.lnk; \
rm -f $tmppiggy $tmppiggy.gz $tmppiggy.lnk
BFD: Warning: Writing section `.text.startup' to huge (ie negative) file offset 0xc0100000.
BFD: Warning: Writing section `.data' to huge (ie negative) file offset 0xc0100040.
BFD: Warning: Writing section `.data.cacheline_aligned' to huge (ie negative) file offset 0xc013b440.
BFD: Warning: Writing section `.data.init_task' to huge (ie negative) file offset 0xc013c000.
BFD: Warning: Writing section `.data.page_aligned' to huge (ie negative) file offset 0xc013e000.
BFD: Warning: Writing section `.bss' to huge (ie negative) file offset 0xc0143000.
BFD: Warning: Writing section `.data.init' to huge (ie negative) file offset 0xc0179000.
BFD: Warning: Writing section `.setup.init' to huge (ie negative) file offset 0xc017b060.
BFD: Warning: Writing section `.initcall.init' to huge (ie negative) file offset 0xc017b178.
BFD: Warning: Writing section `.text.init' to huge (ie negative) file offset 0xc017b2a8.
BFD: Warning: Writing section `.rodata.page_aligned' to huge (ie negative) file offset 0xc057e000.
BFD: Warning: Writing section `.rodata' to huge (ie negative) file offset 0xc057e800.
BFD: Warning: Writing section `__ex_table' to huge (ie negative) file offset 0xc05ba2b0.
objcopy: _tmp_7037piggy: File truncated
/usr/local/bin/gcc -D__ASSEMBLY__ -D__KERNEL__ -I/usr/src/linux-2.4.21/include -traditional -c head.S
/usr/local/bin/gcc -D__KERNEL__ -I/usr/src/linux-2.4.21/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=athlon -DKBUILD_BASENAME=misc -c misc.c
/usr/local/bin/ld -Ttext 0x100000 -e startup_32 -o bvmlinux head.o misc.o piggy.o
make[2]: Leaving directory `/usr/src/linux-2.4.21/arch/i386/boot/compressed'
gcc -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -o tools/build tools/build.c -I/usr/src/linux-2.4.21/include
objcopy -O binary -R .note -R .comment -S compressed/bvmlinux compressed/bvmlinux.out
tools/build -b bbootsect bsetup compressed/bvmlinux.out CURRENT > bzImage
Root device is (3, 1)
Boot sector 512 bytes.
Setup is 2524 bytes.
System is 13 kB
make[1]: Leaving directory `/usr/src/linux-2.4.21/arch/i386/boot'
[root@FIREWALL linux-2.4.21]#
############################
END OF BUILDING
I'm not sure to have only one "ld", i just downloaded binutils 2.13.1 and install it, i thought that "ld" should be overwritten.
But "/usr/local/bin/ld -v" give me "2.13.1".
I just downloaded 2.14 (but not installed), if you want i can try install it and try again ?
Or may be have i to clean up all "ld" version before re installing it, but i don't know which directory i have to delete.
regards,
gkweb.
EDIT : the full log available here
http://perso.wanadoo.fr/jugesoftware/LOG.txt (but warning and errors were printed on screen, not logged).