* Your bfd changes broke sh sim
@ 2008-07-18 16:57 Hans-Peter Nilsson
2008-07-18 18:51 ` Danny Backx
0 siblings, 1 reply; 6+ messages in thread
From: Hans-Peter Nilsson @ 2008-07-18 16:57 UTC (permalink / raw)
To: dannybackx; +Cc: binutils, gdb
Check out the cvs module "sim" (like "binutils")
configure with --target=sh-elf
make all-sim
Observe:
gcc -DHAVE_CONFIG_H -DPROFILE=1 -DWITH_PROFILE=-1 -DDEFAULT_INLINE=0 -I. -I/tmp/hpautotest-sim/src/sim/sh -I../common -I/tmp/hpautotest-sim/src/sim/sh/../common -I../../include -I/tmp/hpautotest-sim/src/sim/sh/../../include -I../../bfd -I/tmp/hpautotest-sim/src/sim/sh/../../bfd -I../../opcodes -I/tmp/hpautotest-sim/src/sim/sh/../../opcodes -g -O2 -o run \
run.o libsim.a ../../bfd/libbfd.a ../../opcodes/libopcodes.a ../../libiberty/libiberty.a -lz -lnsl -lm
../../bfd/libbfd.a(coff-sh.o):(.rodata+0x1bc8): undefined reference to `pe_print_ce_compressed_pdata'
../../bfd/libbfd.a(coff-sh.o):(.rodata+0x1d28): undefined reference to `pe_print_ce_compressed_pdata'
collect2: ld returned 1 exit status
make[3]: Leaving directory `/tmp/hpautotest-sim/sh-elf/sim/sh'
make[3]: *** [run] Error 1
Please fix.
brgds, H-P
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Your bfd changes broke sh sim
2008-07-18 16:57 Your bfd changes broke sh sim Hans-Peter Nilsson
@ 2008-07-18 18:51 ` Danny Backx
2008-07-18 18:52 ` Hans-Peter Nilsson
2008-07-19 5:53 ` Hans-Peter Nilsson
0 siblings, 2 replies; 6+ messages in thread
From: Danny Backx @ 2008-07-18 18:51 UTC (permalink / raw)
To: Hans-Peter Nilsson; +Cc: dannybackx, binutils, gdb
I've tested (and tested again) with
./configure --enable-targets=all
Is this different ? Are some problems not caught this way ?
Danny
On Fri, 2008-07-18 at 18:22 +0200, Hans-Peter Nilsson wrote:
> Check out the cvs module "sim" (like "binutils")
> configure with --target=sh-elf
> make all-sim
>
> Observe:
> gcc -DHAVE_CONFIG_H -DPROFILE=1 -DWITH_PROFILE=-1 -DDEFAULT_INLINE=0 -I. -I/tmp/hpautotest-sim/src/sim/sh -I../common -I/tmp/hpautotest-sim/src/sim/sh/../common -I../../include -I/tmp/hpautotest-sim/src/sim/sh/../../include -I../../bfd -I/tmp/hpautotest-sim/src/sim/sh/../../bfd -I../../opcodes -I/tmp/hpautotest-sim/src/sim/sh/../../opcodes -g -O2 -o run \
> run.o libsim.a ../../bfd/libbfd.a ../../opcodes/libopcodes.a ../../libiberty/libiberty.a -lz -lnsl -lm
> ../../bfd/libbfd.a(coff-sh.o):(.rodata+0x1bc8): undefined reference to `pe_print_ce_compressed_pdata'
> ../../bfd/libbfd.a(coff-sh.o):(.rodata+0x1d28): undefined reference to `pe_print_ce_compressed_pdata'
> collect2: ld returned 1 exit status
> make[3]: Leaving directory `/tmp/hpautotest-sim/sh-elf/sim/sh'
> make[3]: *** [run] Error 1
>
> Please fix.
>
> brgds, H-P
>
--
Danny Backx ; danny.backx - at - scarlet.be ; http://danny.backx.info
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Your bfd changes broke sh sim
2008-07-18 18:51 ` Danny Backx
@ 2008-07-18 18:52 ` Hans-Peter Nilsson
2008-07-19 5:53 ` Hans-Peter Nilsson
1 sibling, 0 replies; 6+ messages in thread
From: Hans-Peter Nilsson @ 2008-07-18 18:52 UTC (permalink / raw)
To: danny.backx; +Cc: hans-peter.nilsson, dannybackx, binutils, gdb
> 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
>
> Is this different ? Are some problems not caught this way ?
Read again. This is *sim*, not *binutils*, though both are
users of the BFD library.
> On Fri, 2008-07-18 at 18:22 +0200, Hans-Peter Nilsson wrote:
> > Check out the cvs module "sim" (like "binutils")
> > configure with --target=sh-elf
> > make all-sim
> >
> > Observe:
> > gcc -DHAVE_CONFIG_H -DPROFILE=1 -DWITH_PROFILE=-1 -DDEFAULT_INLINE=0 -I. -I/tmp/hpautotest-sim/src/sim/sh -I../common -I/tmp/hpautotest-sim/src/sim/sh/../common -I../../include -I/tmp/hpautotest-sim/src/sim/sh/../../include -I../../bfd -I/tmp/hpautotest-sim/src/sim/sh/../../bfd -I../../opcodes -I/tmp/hpautotest-sim/src/sim/sh/../../opcodes -g -O2 -o run \
> > run.o libsim.a ../../bfd/libbfd.a ../../opcodes/libopcodes.a ../../libiberty/libiberty.a -lz -lnsl -lm
> > ../../bfd/libbfd.a(coff-sh.o):(.rodata+0x1bc8): undefined reference to `pe_print_ce_compressed_pdata'
> > ../../bfd/libbfd.a(coff-sh.o):(.rodata+0x1d28): undefined reference to `pe_print_ce_compressed_pdata'
> > collect2: ld returned 1 exit status
> > make[3]: Leaving directory `/tmp/hpautotest-sim/sh-elf/sim/sh'
> > make[3]: *** [run] Error 1
brgds, H-P
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Your bfd changes broke sh sim
2008-07-18 18:51 ` Danny Backx
2008-07-18 18:52 ` Hans-Peter Nilsson
@ 2008-07-19 5:53 ` Hans-Peter Nilsson
2008-07-19 6:45 ` Danny Backx
1 sibling, 1 reply; 6+ messages in thread
From: Hans-Peter Nilsson @ 2008-07-19 5:53 UTC (permalink / raw)
To: danny.backx; +Cc: hans-peter.nilsson, dannybackx, binutils, gdb
> 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
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Your bfd changes broke sh sim
2008-07-19 5:53 ` Hans-Peter Nilsson
@ 2008-07-19 6:45 ` Danny Backx
2008-07-19 14:57 ` Hans-Peter Nilsson
0 siblings, 1 reply; 6+ messages in thread
From: Danny Backx @ 2008-07-19 6:45 UTC (permalink / raw)
To: Hans-Peter Nilsson; +Cc: dannybackx, binutils, gdb
On Sat, 2008-07-19 at 05:52 +0200, Hans-Peter Nilsson wrote:
> > 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:
I was told to check --enable-targets=all in addition to what I was doing
(several arm targets). I did that.
Here's what I just found (unless I overlooked something) :
- I argued with Nick about where this code needed to be, the initial
place was peXXigen.c but I argued that this appeared to be the wrong
place because it could get generated more than once.
- Then I was given a choice where to put it, evidently I made the wrong
choice (pe-arm-wince.c).
- I just moved it back and tested with three builds :
configure --enable-targets=all
configure --target=arm-wince
configure --target=sh-elf
and found that only the last one failed to build, even with the code
in peXXigen.c.
- Inspection reveals that peXXigen.c isn't compiled for sh-elf, so this
was the wrong choice too.
I see three options :
- remove the line that causes this in coff-sh.c and change it as in all
the other architectures. Then all this only works for ARM, not for ARM
and SH as it is supposed to.
- remove all the smart configuration stuff that Nick talked me into and
revert all this to a dumb ARM-only patch
- find a better place to store the code
Please advise.
Danny
> 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
>
--
Danny Backx ; danny.backx - at - scarlet.be ; http://danny.backx.info
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Your bfd changes broke sh sim
2008-07-19 6:45 ` Danny Backx
@ 2008-07-19 14:57 ` Hans-Peter Nilsson
0 siblings, 0 replies; 6+ messages in thread
From: Hans-Peter Nilsson @ 2008-07-19 14:57 UTC (permalink / raw)
To: danny.backx; +Cc: hans-peter.nilsson, dannybackx, binutils, gdb
> From: Danny Backx <danny.backx@scarlet.be>
> Date: Sat, 19 Jul 2008 07:52:27 +0200
> I see three options :
> - find a better place to store the code
Yeah, like I suggested below, the "its own file" alternative.
If you don't understand the target-dependent-hook part, skip it.
> > 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
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2008-07-19 6:45 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-07-18 16:57 Your bfd changes broke sh sim Hans-Peter Nilsson
2008-07-18 18:51 ` Danny Backx
2008-07-18 18:52 ` Hans-Peter Nilsson
2008-07-19 5:53 ` Hans-Peter Nilsson
2008-07-19 6:45 ` Danny Backx
2008-07-19 14:57 ` Hans-Peter Nilsson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox