This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] sim: move sim-engine.o/sim-hrw.o to the common list
- From: Steve Ellcey <sellcey at imgtec dot com>
- To: Richard Earnshaw <Richard dot Earnshaw at foss dot arm dot com>
- Cc: Mike Frysinger <vapier at gentoo dot org>, <gdb-patches at sourceware dot org>
- Date: Wed, 8 Apr 2015 08:46:46 -0700
- Subject: Re: [PATCH] sim: move sim-engine.o/sim-hrw.o to the common list
- Authentication-results: sourceware.org; auth=none
- References: <55250C69 dot 8030100 at foss dot arm dot com>
- Reply-to: <sellcey at imgtec dot com>
On Wed, 2015-04-08 at 12:09 +0100, Richard Earnshaw wrote:
> On 07/04/15 04:57, Mike Frysinger wrote:
> > This makes these two objects available to all sims by default.
> >
>
> Which breaks the build for the ARM simulator:
>
> ../sim/arm/libsim.a(wrapper.o): In function `sim_read'
> :
> /arm/scratch/rearnsha/gnusrc/gcc-cross/trunk/sim/arm/wrapper.c:195:
> multiple definition of `sim_read'
> ../sim/arm/libsim.a(sim-hrw.o):/arm/scratch/rearnsha/gnusrc/gcc-cross/trunk/sim/arm/../common/sim-hrw.c:28:
> first defined here
> /usr/bin/ld: Warning: size of symbol `sim_read' changed from 119 in
> ../sim/arm/libsim.a(sim-hrw.o) to 76 in ../sim/arm/libsim.a(wrapper.o)
> ../sim/arm/libsim.a(wrapper.o): In function `sim_write':
> /arm/scratch/rearnsha/gnusrc/gcc-cross/trunk/sim/arm/wrapper.c:179:
> multiple definition of `sim_write'
> ../sim/arm/libsim.a(sim-hrw.o):/arm/scratch/rearnsha/gnusrc/gcc-cross/trunk/sim/arm/../common/sim-hrw.c:36:
> first defined here
> /usr/bin/ld: Warning: size of symbol `sim_write' changed from 122 in
> ../sim/arm/libsim.a(sim-hrw.o) to 77 in ../sim/arm/libsim.a(wrapper.o)
> collect2: ld returned 1 exit status
>
> R.
I am seeing this failure on MIPS as well.
Steve Ellcey
sellcey@imgtec.com