Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Hans-Peter Nilsson <hans-peter.nilsson@axis.com>
To: danny.backx@scarlet.be
Cc: hans-peter.nilsson@axis.com, dannybackx@users.sourceforge.net,
	        binutils@sourceware.org, gdb@sourceware.org
Subject: Re: Your bfd changes broke sh sim
Date: Sat, 19 Jul 2008 05:53:00 -0000	[thread overview]
Message-ID: <200807190352.m6J3qdr0011498@ignucius.se.axis.com> (raw)
In-Reply-To: <1216404759.30145.33.camel@dannypc> (message from Danny Backx on 	Fri, 18 Jul 2008 20:12:39 +0200)

> 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


  parent reply	other threads:[~2008-07-19  3:53 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-07-18 16:57 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 [this message]
2008-07-19  6:45     ` Danny Backx
2008-07-19 14:57       ` Hans-Peter Nilsson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200807190352.m6J3qdr0011498@ignucius.se.axis.com \
    --to=hans-peter.nilsson@axis.com \
    --cc=binutils@sourceware.org \
    --cc=danny.backx@scarlet.be \
    --cc=dannybackx@users.sourceforge.net \
    --cc=gdb@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox