Multiple Simulators Link Failure on Head

Joel Sherrill
2015-03-20T13:16:20Z

Hi

Multiple targets fail to link with sim_addr_range_hit_p. The
targets are:

bfin h8300 lm32 m32r mips moxie v850

gcc -DHAVE_CONFIG_H -DWITH_DEFAULT_MODEL='"bf537"' -DTRACE=1
-DWITH_TRACE=-1 -DPROFILE=1 -DWITH_PROFILE=-1
-DWITH_DEFAULT_ALIGNMENT=STRICT_ALIGNMENT
-DWITH_TARGET_BYTE_ORDER=LITTLE_ENDIAN
-DWITH_ENVIRONMENT=ALL_ENVIRONMENT -DWITH_HW=1
-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN -Wall
-Wdeclaration-after-statement -Wpointer-arith -Wpointer-sign -Wno-unused
-Wunused-value -Wunused-function -Wno-switch -Wno-char-subscripts
-Wmissing-prototypes -Wdeclaration-after-statement -Wempty-body
-Wmissing-parameter-type -Wold-style-declaration -Wold-style-definition
-Wformat-nonliteral -I. -I../../../binutils-gdb/sim/bfin
-I../common -I../../../binutils-gdb/sim/bfin/../common -I../../include
-I../../../binutils-gdb/sim/bfin/../../include -I../../bfd
-I../../../binutils-gdb/sim/bfin/../../bfd -I../../opcodes
-I../../../binutils-gdb/sim/bfin/../../opcodes -g -O2 -static-libstdc++
-static-libgcc -o run \
nrun.o libsim.a ../../bfd/libbfd.a ../../opcodes/libopcodes.a
../../libiberty/libiberty.a -lm -ldl -lz -lnsl -lm
libsim.a(sim-info.o): In function `sim_addr_range_hit_p':
/users/joel/test-gcc/b-bfin-rtems4.11-bin/sim/bfin/../../../binutils-gdb/sim/bfin/../common/sim-arange.c:290:
multiple definition of `sim_addr_range_hit_p'
nrun.o:/users/joel/test-gcc/b-bfin-rtems4.11-bin/sim/bfin/../../../binutils-gdb/sim/bfin/../common/sim-arange.c:290:
first defined here
libsim.a(sim-module.o): In function `sim_addr_range_hit_p':
/users/joel/test-gcc/b-bfin-rtems4.11-bin/sim/bfin/../../../binutils-gdb/sim/bfin/../common/sim-arange.c:290:
multiple definition of `sim_addr_range_hit_p'
nrun.o:/users/joel/test-gcc/b-bfin-rtems4.11-bin/sim/bfin/../../../binutils-gdb/sim/bfin/../common/sim-arange.c:290:
first defined here
libsim.a(sim-options.o): In function `sim_addr_range_hit_p':
/users/joel/test-gcc/b-bfin-rtems4.11-bin/sim/bfin/../../../binutils-gdb/sim/bfin/../common/sim-arange.c:290:
multiple definition of `sim_addr_range_hit_p'
nrun.o:/users/joel/test-gcc/b-bfin-rtems4.11-bin/sim/bfin/../../../binutils-gdb/sim/bfin/../common/sim-arange.c:290:
first defined here
libsim.a(sim-profile.o): In function `sim_addr_range_hit_p':
/users/joel/test-gcc/b-bfin-rtems4.11-bin/sim/bfin/../../../binutils-gdb/sim/bfin/../common/sim-arange.c:290:
multiple definition of `sim_addr_range_hit_p'
nrun.o:/users/joel/test-gcc/b-bfin-rtems4.11-bin/sim/bfin/../../../binutils-gdb/sim/bfin/../common/sim-arange.c:290:
first defined here
libsim.a(sim-signal.o): In function `sim_addr_range_hit_p':

--joel