Your bfd changes broke sh sim

Hans-Peter Nilsson hans-peter.nilsson@axis.com
Sat Jul 19 05:53:00 GMT 2008


> 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



More information about the Gdb mailing list