This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: Your bfd changes broke sh sim
- From: Hans-Peter Nilsson <hans-peter dot nilsson at axis dot com>
- To: danny dot backx at scarlet dot be
- Cc: hans-peter dot nilsson at axis dot com, dannybackx at users dot sourceforge dot net, binutils at sourceware dot org, gdb at sourceware dot org
- Date: Sat, 19 Jul 2008 05:52:39 +0200
- Subject: Re: Your bfd changes broke sh sim
> From: Danny Backx <danny.backx@scarlet.be>
> Date: Fri, 18 Jul 2008 20:12:39 +0200
> I've tested (and tested again) with
> ./configure --enable-targets=all
Looks like you didn't even try and build binutils *without*
--enable-targets=all, because you broke e.g. sh-elf (and yes,
sh-pe too). For --target=sh-elf, make all:
/bin/sh ./libtool --tag=CC --mode=link gcc -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Werror -g -O2 -o size size.o bucomm.o version.o filemode.o ../bfd/libbfd.la ../libiberty/libiberty.a -lz
libtool: link: gcc -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Werror -g -O2 -o size size.o bucomm.o version.o filemode.o ../bfd/.libs/libbfd.a ../libiberty/libiberty.a -lz
../bfd/.libs/libbfd.a(coff-sh.o)(.rodata+0x488): undefined reference to `pe_print_ce_compressed_pdata'
../bfd/.libs/libbfd.a(coff-sh.o)(.rodata+0xc68): undefined reference to `pe_print_ce_compressed_pdata'
collect2: ld returned 1 exit status
make[4]: *** [size] Error 1
make[4]: Leaving directory `/home/hp/combined/binuo/binutils'
For --target=sh-pe, make all:
/bin/sh ./libtool --tag=CC --mode=link gcc -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Werror -g -O2 -o size size.o bucomm.o version.o filemode.o ../bfd/libbfd.la ../libiberty/libiberty.a -lz
libtool: link: gcc -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Werror -g -O2 -o size size.o bucomm.o version.o filemode.o ../bfd/.libs/libbfd.a ../libiberty/libiberty.a -lz
../bfd/.libs/libbfd.a(pe-sh.o)(.rodata+0x488): undefined reference to `pe_print_ce_compressed_pdata'
../bfd/.libs/libbfd.a(pei-sh.o)(.rodata+0x488): undefined reference to `pe_print_ce_compressed_pdata'
../bfd/.libs/libbfd.a(coff-sh.o)(.rodata+0x488): undefined reference to `pe_print_ce_compressed_pdata'
../bfd/.libs/libbfd.a(coff-sh.o)(.rodata+0xc68): undefined reference to `pe_print_ce_compressed_pdata'
collect2: ld returned 1 exit status
make[4]: *** [size] Error 1
make[4]: Leaving directory `/home/hp/combined/binuo/binutils'
I suggest you revert your change and move
pe_print_ce_compressed_pdata out of pe-arm-wince.c (clearly the
wrong place) and into peXXigen.c or its own file (don't forget
to adjust the build machinery), making it the default of a
target-dependent hook, overridden for pe-mips or something.
brgds, H-P