This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] sim: move sim-engine.o/sim-hrw.o to the common list


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]