This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: Update readelf to know about the new ELF constants
- To: , obrien at FreeBSD dot org
- Subject: Re: Update readelf to know about the new ELF constants
- From: Andreas Jaeger <aj at suse dot de>
- Date: 12 Dec 2000 20:21:52 +0100
- Cc: binutils at sources dot redhat dot com
- References: <200011271938.LAA19423@elmo.cygnus.com><20001127122028.A20242@valinux.com><20001211124837.A11175@dragon.nuxi.com> <hou2894k85.fsf@gee.suse.de>
>>>>> Andreas Jaeger writes:
AJ> But testing it on i386 showed the following problem:
AJ> make[3]: Entering directory `/x86-64/builds/sourceware-src/binutils/binutils'
AJ> /bin/sh ./libtool --mode=link gcc -W -Wall -g -O2 -o readelf readelf.o version.o ../libiberty/libiberty.a
AJ> gcc -W -Wall -g -O2 -o readelf readelf.o version.o ../libiberty/libiberty.a
AJ> readelf.o: In function `dump_relocations':
AJ> /cvs/binutils-ln/binutils/readelf.c:800: undefined reference to `elf_m32r_reloc_type'
AJ> /cvs/binutils-ln/binutils/readelf.c:805: undefined reference to `elf_i386_reloc_type'
AJ> /cvs/binutils-ln/binutils/readelf.c:809: undefined reference to `elf_m68k_reloc_type'
AJ> /cvs/binutils-ln/binutils/readelf.c:813: undefined reference to `elf_i960_reloc_type'
AJ> /cvs/binutils-ln/binutils/readelf.c:817: undefined reference to `elf_avr_reloc_type'
AJ> /cvs/binutils-ln/binutils/readelf.c:824: undefined reference to `elf_sparc_reloc_type'
AJ> /cvs/binutils-ln/binutils/readelf.c:828: undefined reference to `v850_reloc_type'
AJ> /cvs/binutils-ln/binutils/readelf.c:832: undefined reference to `elf_d10v_reloc_type'
AJ> /cvs/binutils-ln/binutils/readelf.c:836: undefined reference to `elf_d30v_reloc_type'
AJ> /cvs/binutils-ln/binutils/readelf.c:840: undefined reference to `elf_sh_reloc_type'
AJ> /cvs/binutils-ln/binutils/readelf.c:844: undefined reference to `elf_mn10300_reloc_type'
AJ> /cvs/binutils-ln/binutils/readelf.c:848: undefined reference to `elf_mn10200_reloc_type'
AJ> /cvs/binutils-ln/binutils/readelf.c:852: undefined reference to `elf_fr30_reloc_type'
AJ> /cvs/binutils-ln/binutils/readelf.c:856: undefined reference to `elf_mcore_reloc_type'
AJ> /cvs/binutils-ln/binutils/readelf.c:860: undefined reference to `elf_ppc_reloc_type'
AJ> /cvs/binutils-ln/binutils/readelf.c:865: undefined reference to `elf_mips_reloc_type'
AJ> /cvs/binutils-ln/binutils/readelf.c:869: undefined reference to `elf_alpha_reloc_type'
AJ> /cvs/binutils-ln/binutils/readelf.c:873: undefined reference to `elf_arm_reloc_type'
AJ> /cvs/binutils-ln/binutils/readelf.c:877: undefined reference to `elf_arc_reloc_type'
AJ> /cvs/binutils-ln/binutils/readelf.c:881: undefined reference to `elf_hppa_reloc_type'
AJ> /cvs/binutils-ln/binutils/readelf.c:885: undefined reference to `elf_pj_reloc_type'
AJ> /cvs/binutils-ln/binutils/readelf.c:888: undefined reference to `elf_ia64_reloc_type'
AJ> /cvs/binutils-ln/binutils/readelf.c:892: undefined reference to `elf_cris_reloc_type'
AJ> /cvs/binutils-ln/binutils/readelf.c:896: undefined reference to `elf_i860_reloc_type'
AJ> /cvs/binutils-ln/binutils/readelf.c:900: undefined reference to `elf_x86_64_reloc_type'
AJ> collect2: ld returned 1 exit status
AJ> make[3]: *** [readelf] Error 1
AJ> This worked recently (with the last snapshot I tried).
I can't reproduce this (on another machine at home). I'll investigate
tomorrow why it fails on that single machine at work :-(.
Andreas
--
Andreas Jaeger
SuSE Labs aj@suse.de
private aj@arthur.inka.de
http://www.suse.de/~aj