Problems with objdump...

John Sanabria (josanabr@fibbonaci.univalle.edu.co)
Sun, 15 Jun 1997 16:24:50 -0500 (EST)


Hi, i can't compress my kernel with file's makefile.

I download the binary release binutils-2.8.1.0.1.bin.tar.gz,
gcc-2.7.2.1.bin.tar.gz, and libc-5.4.33.bin.tar.gz i untar-ed, but when
i try to compile the kernel i have the next message of mistake:

make[2]: Entering directory `/usr/src/linux-2.1.15/arch/i386/boot/compressed'
tmppiggy=/tmp/$$piggy; \
rm -f $tmppiggy $tmppiggy.gz $tmppiggy.lnk; \
if hash encaps 2> /dev/null; then \
objdump -k -q -o 0xC0100000 /usr/src/linux/vmlinux > $tmppiggy; \
else \
objcopy -O binary -R .note -R .comment -R .stab -R .stabstr /usr/src/linux/vmlinux $tmppiggy; \
fi; \
gzip -f -9 < $tmppiggy > $tmppiggy.gz; \
if hash encaps 2> /dev/null; then \
encaps --target elf32-i386 piggy.o $tmppiggy.gz input_data input_len; \
else \
echo "SECTIONS { .data : { input_len = .; LONG(input_data_end - input_data) input_data = .; *(.data) input_data_end = .; }}" > $tmppiggy.lnk; \
ld -m elf_i386 -m elf_i386 -r -o piggy.o -b binary $tmppiggy.gz -b elf32-i386 -T $tmppiggy.lnk; \
fi; \
rm -f $tmppiggy $tmppiggy.gz $tmppiggy.lnk
objdump: illegal option -- k
Usage: objdump [-ahifCdDprRtTxsSlw] [-b bfdname] [-m machine] [-j section-name]
[--archive-headers] [--target=bfdname] [--debugging] [--disassemble]
[--disassemble-all] [--disassemble-zeroes] [--file-headers]
[--section-headers] [--headers]
[--info] [--section=section-name] [--line-numbers] [--source]
[--architecture=machine] [--reloc] [--full-contents] [--stabs]
[--syms] [--all-headers] [--dynamic-syms] [--dynamic-reloc]
[--wide] [--version] [--help] [--private-headers]
[--start-address=addr] [--stop-address=addr]
[--prefix-addresses] [--[no-]show-raw-insn] [--demangle]
[--adjust-vma=offset] [-EB|-EL] [--endian={big|little}] objfile...
at least one option besides -l (--line-numbers) must be given
objdump: supported targets: elf32-i386 a.out-i386-linux srec symbolsrec tekhex binary ihex trad-core
gcc -D__KERNEL__ -I/usr/src/linux/include -traditional -c head.S
gcc -D__KERNEL__ -I/usr/src/linux/include -O2 -DSTDC_HEADERS -c misc.c -o misc.o
ld -m elf_i386 -Ttext 0x1000 -e startup_32 -o vmlinux head.o misc.o piggy.o
make[2]: Leaving directory `/usr/src/linux-2.1.15/arch/i386/boot/compressed'
gcc -O2 -fomit-frame-pointer -D__BFD__ -o tools/build tools/build.c -I/usr/src/linux/include
if hash encaps 2> /dev/null; then \
objdump -k -q -o 0x1000 compressed/vmlinux > compressed/vmlinux.out; \
else \
objcopy -O binary -R .note -R .comment -R .stab -R .stabstr compressed/vmlinux compressed/vmlinux.out; \
fi
objdump: illegal option -- k
Usage: objdump [-ahifCdDprRtTxsSlw] [-b bfdname] [-m machine] [-j section-name]
[--archive-headers] [--target=bfdname] [--debugging] [--disassemble]
[--disassemble-all] [--disassemble-zeroes] [--file-headers]
[--section-headers] [--headers]
[--info] [--section=section-name] [--line-numbers] [--source]
[--architecture=machine] [--reloc] [--full-contents] [--stabs]
[--syms] [--all-headers] [--dynamic-syms] [--dynamic-reloc]
[--wide] [--version] [--help] [--private-headers]
[--start-address=addr] [--stop-address=addr]
[--prefix-addresses] [--[no-]show-raw-insn] [--demangle]
[--adjust-vma=offset] [-EB|-EL] [--endian={big|little}] objfile...
at least one option besides -l (--line-numbers) must be given
objdump: supported targets: elf32-i386 a.out-i386-linux srec symbolsrec tekhex binary ihex trad-core
make[1]: *** [zImage] Error 1
make[1]: Leaving directory `/usr/src/linux-2.1.15/arch/i386/boot'
make: *** [zImage] Error 2

What do you recommend me?
Do I need a before release of binutils (objdump) or if you have can tell me what
is the right flags with this objdump?

Many thanks for your help.

http://calvin/~josanabr
e-mail: josanabr@calvin.univalle.edu.co
josanabr@fibbonaci.univalle.edu.co