public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* Re: Duplicate symbols in recent cvs source
  1999-07-01  0:00     ` John David Anglin
@ 1999-07-01  0:00       ` Ian Lance Taylor
  1999-07-01  0:00         ` John David Anglin
  0 siblings, 1 reply; 10+ messages in thread
From: Ian Lance Taylor @ 1999-07-01  0:00 UTC (permalink / raw)
  To: dave; +Cc: nickc, binutils

   Date: Fri, 4 Jun 1999 14:52:23 -0400 (EDT)
   From: "John David Anglin" <dave@hiauly1.hia.nrc.ca>

   gcc -O3 -s -o as-new app.o as.o atof-generic.o bignum-copy.o cond.o depend.o dwa
   rf2dbg.o ecoff.o ehopt.o expr.o flonum-copy.o flonum-konst.o flonum-mult.o frags
   .o hash.o input-file.o input-scrub.o listing.o literal.o macro.o messages.o outp
   ut-file.o read.o sb.o stabs.o subsegs.o symbols.o write.o tc-hppa.o obj-som.o at
   of-ieee.o ../opcodes/.libs/libopcodes.a ../bfd/.libs/libbfd.a ../libiberty/libib
   erty.a ./../intl/libintl.a
   /bin/ld: Unsatisfied symbols:
      _bfd_dwarf1_find_nearest_line (code)
   collect2: ld returned 1 exit status
   make[3]: *** [as-new] Error 1

   This routine appears to be in bfd/dwarf1.c.  It appears to be missing
   from the bfd/Makefile.

You're right, dwarf1.c was not correctly added to the BFD Makefile.  I
just checked in a patch.

Ian

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Duplicate symbols in recent cvs source
  1999-07-01  0:00   ` Ian Lance Taylor
@ 1999-07-01  0:00     ` John David Anglin
  1999-07-01  0:00       ` Ian Lance Taylor
  0 siblings, 1 reply; 10+ messages in thread
From: John David Anglin @ 1999-07-01  0:00 UTC (permalink / raw)
  To: Ian Lance Taylor; +Cc: nickc, binutils

> 
>    Date: Fri, 4 Jun 1999 14:14:11 -0400 (EDT)
>    From: "John David Anglin" <dave@hiauly1.hia.nrc.ca>
> 
>    I checked out the latest source and now there is another problem:
> 
> These problems are due to the symbol handling changes I checked in on
> Wednesday.  These particular ones should be fixed by Mark Klein's
> patches which I just checked in.

And another:

gcc -O3 -s -o as-new app.o as.o atof-generic.o bignum-copy.o cond.o depend.o dwa
rf2dbg.o ecoff.o ehopt.o expr.o flonum-copy.o flonum-konst.o flonum-mult.o frags
.o hash.o input-file.o input-scrub.o listing.o literal.o macro.o messages.o outp
ut-file.o read.o sb.o stabs.o subsegs.o symbols.o write.o tc-hppa.o obj-som.o at
of-ieee.o ../opcodes/.libs/libopcodes.a ../bfd/.libs/libbfd.a ../libiberty/libib
erty.a ./../intl/libintl.a
/bin/ld: Unsatisfied symbols:
   _bfd_dwarf1_find_nearest_line (code)
collect2: ld returned 1 exit status
make[3]: *** [as-new] Error 1

This routine appears to be in bfd/dwarf1.c.  It appears to be missing
from the bfd/Makefile.
-- 
J. David Anglin                                  dave.anglin@nrc.ca
National Research Council of Canada              (613) 990-0752 (FAX: 952-6605)

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Duplicate symbols in recent cvs source
@ 1999-07-01  0:00 Nick Clifton
  1999-07-01  0:00 ` John David Anglin
  0 siblings, 1 reply; 10+ messages in thread
From: Nick Clifton @ 1999-07-01  0:00 UTC (permalink / raw)
  To: dave; +Cc: binutils

Hi Dave,

: After adding these, there are another similar set of duplicate
: symbols:
: 
: /bin/ld: Duplicate symbol "bfd_arm_pe_get_bfd_for_interworking", files epoc-pe-a
: rm.lo and pe-arm.lo
: /bin/ld: Duplicate symbol "bfd_arm_pe_process_before_allocation", files epoc-pe-
: arm.lo and pe-arm.lo
: /bin/ld: Duplicate symbol "bfd_arm_pe_allocate_interworking_sections", files epo
: c-pe-arm.lo and pe-arm.lo
: /bin/ld: Duplicate symbols are not allowed in shared libraries

I have checked in the patches below to fix this problem.

Cheers
	Nick

1999-06-04  Nick Clifton  <nickc@cygnus.com>

	* Makefile.am: Add epoc-arm-pe target.
	* Makefile.in: Regenerate.
	* pe-arm.c: Only redefine interworking function names if they have
	not already been redefined.
	* pei-arm.c: Only redefine interworking function names if they have
	not already been redefined.
	* epoc-pe-arm.c: Redefine interworking function names to avoid a
	name space clash.
	* epoc-pei-arm.c: Redefine interworking function names to avoid a
	name space clash.

1999-06-04  Nick Clifton  <nickc@cygnus.com>

	* emultempl/pe.em: If compiling for arm_epoc_pe rename
	interworking functions to avoid a name space clash.

Index: bfd/Makefile.am
===================================================================
RCS file: /cvs/binutils/binutils/bfd/Makefile.am,v
retrieving revision 1.2
diff -p -r1.2 Makefile.am
*** Makefile.am	1999/05/27 21:42:07	1.2
--- Makefile.am	1999/06/04 14:34:05
*************** BFD32_BACKENDS = \
*** 172,177 ****
--- 172,179 ----
  	elf32-v850.lo \
  	elf32.lo \
  	elflink.lo \
+ 	epoc-pe-arm.lo \
+ 	epoc-pei-arm.lo \
  	hp300bsd.lo \
  	hp300hpux.lo \
  	som.lo \
*************** BFD32_BACKENDS_CFILES = \
*** 291,296 ****
--- 293,300 ----
  	elf32-v850.c \
  	elf32.c \
  	elflink.c \
+ 	epoc-pe-arm.c \
+ 	epoc-pei-arm.c \
  	hp300bsd.c \
  	hp300hpux.c \
  	som.c \
*************** elf32.lo: elf32.c elfcode.h $(INCDIR)/bf
*** 888,893 ****
--- 892,903 ----
    elfcore.h elflink.h
  elflink.lo: elflink.c $(INCDIR)/bfdlink.h elf-bfd.h \
    $(INCDIR)/elf/common.h $(INCDIR)/elf/internal.h $(INCDIR)/elf/external.h
+ epoc-pe-arm.lo: epoc-ep-arm.c pe-arm.c coff-arm.c $(INCDIR)/coff/arm.h \
+   $(INCDIR)/coff/internal.h $(INCDIR)/coff/pe.h libcoff.h \
+   $(INCDIR)/bfdlink.h coffcode.h peicode.h
+ epoc-pei-arm.lo: epoc-pei-arm.c pei-arm.c coff-arm.c $(INCDIR)/coff/arm.h \
+   $(INCDIR)/coff/internal.h $(INCDIR)/coff/pe.h libcoff.h \
+   $(INCDIR)/bfdlink.h coffcode.h peicode.h
  hp300bsd.lo: hp300bsd.c libaout.h $(INCDIR)/bfdlink.h \
    aout-target.h $(INCDIR)/aout/aout64.h $(INCDIR)/aout/stab_gnu.h \
    $(INCDIR)/aout/stab.def $(INCDIR)/aout/ar.h
Index: bfd/Makefile.in
===================================================================
RCS file: /cvs/binutils/binutils/bfd/Makefile.in,v
retrieving revision 1.2
diff -p -r1.2 Makefile.in
*** Makefile.in	1999/05/27 21:42:08	1.2
--- Makefile.in	1999/06/04 14:34:15
*************** BFD32_BACKENDS = \
*** 291,296 ****
--- 291,298 ----
  	elf32-v850.lo \
  	elf32.lo \
  	elflink.lo \
+ 	epoc-pe-arm.lo \
+ 	epoc-pei-arm.lo \
  	hp300bsd.lo \
  	hp300hpux.lo \
  	som.lo \
*************** BFD32_BACKENDS_CFILES = \
*** 411,416 ****
--- 413,420 ----
  	elf32-v850.c \
  	elf32.c \
  	elflink.c \
+ 	epoc-pe-arm.c \
+ 	epoc-pei-arm.c \
  	hp300bsd.c \
  	hp300hpux.c \
  	som.c \
*************** elf32.lo: elf32.c elfcode.h $(INCDIR)/bf
*** 1418,1423 ****
--- 1422,1433 ----
    elfcore.h elflink.h
  elflink.lo: elflink.c $(INCDIR)/bfdlink.h elf-bfd.h \
    $(INCDIR)/elf/common.h $(INCDIR)/elf/internal.h $(INCDIR)/elf/external.h
+ epoc-pe-arm.lo: epoc-pe-arm.c pe-arm.c coff-arm.c $(INCDIR)/coff/arm.h \
+   $(INCDIR)/coff/internal.h $(INCDIR)/coff/pe.h libcoff.h \
+   $(INCDIR)/bfdlink.h coffcode.h peicode.h
+ epoc-pei-arm.lo: epoc-pei-arm.c pei-arm.c coff-arm.c $(INCDIR)/coff/arm.h \
+   $(INCDIR)/coff/internal.h $(INCDIR)/coff/pe.h libcoff.h \
+   $(INCDIR)/bfdlink.h coffcode.h peicode.h
  hp300bsd.lo: hp300bsd.c libaout.h $(INCDIR)/bfdlink.h \
    aout-target.h $(INCDIR)/aout/aout64.h $(INCDIR)/aout/stab_gnu.h \
    $(INCDIR)/aout/stab.def $(INCDIR)/aout/ar.h
Index: bfd/pe-arm.c
===================================================================
RCS file: /cvs/binutils/binutils/bfd/pe-arm.c,v
retrieving revision 1.2
diff -p -r1.2 pe-arm.c
*** pe-arm.c	1999/06/02 14:27:08	1.2
--- pe-arm.c	1999/06/04 14:34:33
*************** Foundation, Inc., 59 Temple Place - Suit
*** 31,41 ****
  #define PCRELOFFSET          true
  #define COFF_LONG_SECTION_NAMES
  
  #define bfd_arm_allocate_interworking_sections \
  	bfd_arm_pe_allocate_interworking_sections
  #define bfd_arm_get_bfd_for_interworking \
  	bfd_arm_pe_get_bfd_for_interworking
  #define bfd_arm_process_before_allocation \
  	bfd_arm_pe_process_before_allocation
! 
  #include "coff-arm.c"
--- 31,43 ----
  #define PCRELOFFSET          true
  #define COFF_LONG_SECTION_NAMES
  
+ #ifndef bfd_arm_allocate_interworking_sections 
  #define bfd_arm_allocate_interworking_sections \
  	bfd_arm_pe_allocate_interworking_sections
  #define bfd_arm_get_bfd_for_interworking \
  	bfd_arm_pe_get_bfd_for_interworking
  #define bfd_arm_process_before_allocation \
  	bfd_arm_pe_process_before_allocation
! #endif
! 	
  #include "coff-arm.c"
Index: bfd/pei-arm.c
===================================================================
RCS file: /cvs/binutils/binutils/bfd/pei-arm.c,v
retrieving revision 1.2
diff -p -r1.2 pei-arm.c
*** pei-arm.c	1999/06/02 14:27:10	1.2
--- pei-arm.c	1999/06/04 14:34:45
*************** Foundation, Inc., 59 Temple Place - Suit
*** 33,43 ****
  #define PCRELOFFSET        true
  #define COFF_LONG_SECTION_NAMES
  
  #define bfd_arm_allocate_interworking_sections \
  	bfd_arm_pe_allocate_interworking_sections
  #define bfd_arm_get_bfd_for_interworking \
  	bfd_arm_pe_get_bfd_for_interworking
  #define bfd_arm_process_before_allocation \
  	bfd_arm_pe_process_before_allocation
! 
  #include "coff-arm.c"
--- 33,45 ----
  #define PCRELOFFSET        true
  #define COFF_LONG_SECTION_NAMES
  
+ #ifndef bfd_arm_allocate_interworking_sections 
  #define bfd_arm_allocate_interworking_sections \
  	bfd_arm_pe_allocate_interworking_sections
  #define bfd_arm_get_bfd_for_interworking \
  	bfd_arm_pe_get_bfd_for_interworking
  #define bfd_arm_process_before_allocation \
  	bfd_arm_pe_process_before_allocation
! #endif
! 	
  #include "coff-arm.c"
Index: bfd/epoc-pe-arm.c
===================================================================
RCS file: /cvs/binutils/binutils/bfd/epoc-pe-arm.c,v
retrieving revision 1.1.1.1
diff -p -r1.1.1.1 epoc-pe-arm.c
*** epoc-pe-arm.c	1999/05/03 07:28:57	1.1.1.1
--- epoc-pe-arm.c	1999/06/04 14:34:55
*************** Foundation, Inc., 59 Temple Place - Suit
*** 25,30 ****
--- 25,36 ----
  #define TARGET_BIG_SYM       arm_epoc_pe_big_vec
  #define TARGET_BIG_NAME      "epoc-pe-arm-big"
  
+ #define bfd_arm_allocate_interworking_sections \
+ 	bfd_arm_epoc_pe_allocate_interworking_sections
+ #define bfd_arm_get_bfd_for_interworking \
+ 	bfd_arm_epoc_pe_get_bfd_for_interworking
+ #define bfd_arm_process_before_allocation \
+ 	bfd_arm_epoc_pe_process_before_allocation
  
  #include "pe-arm.c"
  
Index: bfd/epoc-pei-arm.c
===================================================================
RCS file: /cvs/binutils/binutils/bfd/epoc-pei-arm.c,v
retrieving revision 1.1.1.1
diff -p -r1.1.1.1 epoc-pei-arm.c
*** epoc-pei-arm.c	1999/05/03 07:28:57	1.1.1.1
--- epoc-pei-arm.c	1999/06/04 14:35:04
*************** Foundation, Inc., 59 Temple Place - Suit
*** 25,29 ****
--- 25,36 ----
  #define TARGET_BIG_SYM       arm_epoc_pei_big_vec
  #define TARGET_BIG_NAME      "epoc-pei-arm-big"
  
+ #define bfd_arm_allocate_interworking_sections \
+ 	bfd_arm_epoc_pe_allocate_interworking_sections
+ #define bfd_arm_get_bfd_for_interworking \
+ 	bfd_arm_epoc_pe_get_bfd_for_interworking
+ #define bfd_arm_process_before_allocation \
+ 	bfd_arm_epoc_pe_process_before_allocation
+ 
  #include "pei-arm.c"
  
Index: ld/emultempl/pe.em
===================================================================
RCS file: /cvs/binutils/binutils/ld/emultempl/pe.em,v
retrieving revision 1.4
diff -p -r1.4 pe.em
*** pe.em	1999/06/02 14:26:01	1.4
--- pe.em	1999/06/04 14:35:22
*************** Foundation, Inc., 59 Temple Place - Suit
*** 54,59 ****
--- 54,68 ----
  
  #define	PE_DEF_SUBSYSTEM		3
  
+ #ifdef TARGET_IS_arm_epoc_pe
+ #define bfd_arm_pe_allocate_interworking_sections \
+ 	bfd_arm_epoc_pe_allocate_interworking_sections
+ #define bfd_arm_pe_get_bfd_for_interworking \
+ 	bfd_arm_epoc_pe_get_bfd_for_interworking
+ #define bfd_arm_pe_process_before_allocation \
+ 	bfd_arm_epoc_pe_process_before_allocation
+ #endif
+ 
  static void gld_${EMULATION_NAME}_set_symbols PARAMS ((void));
  static void gld_${EMULATION_NAME}_after_open PARAMS ((void));
  static void gld_${EMULATION_NAME}_before_parse PARAMS ((void));

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Duplicate symbols in recent cvs source
  1999-07-01  0:00 ` John David Anglin
@ 1999-07-01  0:00   ` Ian Lance Taylor
  1999-07-01  0:00     ` John David Anglin
  0 siblings, 1 reply; 10+ messages in thread
From: Ian Lance Taylor @ 1999-07-01  0:00 UTC (permalink / raw)
  To: dave; +Cc: nickc, binutils

   Date: Fri, 4 Jun 1999 14:14:11 -0400 (EDT)
   From: "John David Anglin" <dave@hiauly1.hia.nrc.ca>

   I checked out the latest source and now there is another problem:

These problems are due to the symbol handling changes I checked in on
Wednesday.  These particular ones should be fixed by Mark Klein's
patches which I just checked in.

Ian

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Duplicate symbols in recent cvs source
  1999-07-01  0:00 Duplicate symbols in recent cvs source Nick Clifton
@ 1999-07-01  0:00 ` John David Anglin
  1999-07-01  0:00   ` Ian Lance Taylor
  0 siblings, 1 reply; 10+ messages in thread
From: John David Anglin @ 1999-07-01  0:00 UTC (permalink / raw)
  To: Nick Clifton; +Cc: binutils

> : After adding these, there are another similar set of duplicate
> : symbols:
> : 
> : /bin/ld: Duplicate symbol "bfd_arm_pe_get_bfd_for_interworking", files epoc-pe-a
> : rm.lo and pe-arm.lo
> : /bin/ld: Duplicate symbol "bfd_arm_pe_process_before_allocation", files epoc-pe-
> : arm.lo and pe-arm.lo
> : /bin/ld: Duplicate symbol "bfd_arm_pe_allocate_interworking_sections", files epo
> : c-pe-arm.lo and pe-arm.lo
> : /bin/ld: Duplicate symbols are not allowed in shared libraries
> 
> I have checked in the patches below to fix this problem.

I checked out the latest source and now there is another problem:

gcc -DHAVE_CONFIG_H -I. -I. -I. -D_GNU_SOURCE -I. -I. -I../bfd -I./config -I./..
/include -I./.. -I./../bfd -I./../intl -I../intl -DLOCALEDIR="\"/usr/local/share
/locale\""    -O3 -c ./config/tc-hppa.c
./config/tc-hppa.c: In function `tc_gen_reloc':
./config/tc-hppa.c:2816: dereferencing pointer to incomplete type
./config/tc-hppa.c:2831: dereferencing pointer to incomplete type
./config/tc-hppa.c:2835: dereferencing pointer to incomplete type
./config/tc-hppa.c:2881: dereferencing pointer to incomplete type
./config/tc-hppa.c:2889: dereferencing pointer to incomplete type
./config/tc-hppa.c: In function `hppa_fix_adjustable':
./config/tc-hppa.c:6558: dereferencing pointer to incomplete type
make[3]: *** [tc-hppa.o] Error 1
make[3]: Leaving directory `/xxx/gnu/binutils-2.9.4/gas'

Have a good weekend,
Dave

-- 
J. David Anglin                                  dave.anglin@nrc.ca
National Research Council of Canada              (613) 990-0752 (FAX: 952-6605)

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Duplicate symbols in recent cvs source
  1999-07-01  0:00       ` Ian Lance Taylor
@ 1999-07-01  0:00         ` John David Anglin
  0 siblings, 0 replies; 10+ messages in thread
From: John David Anglin @ 1999-07-01  0:00 UTC (permalink / raw)
  To: Ian Lance Taylor; +Cc: nickc, binutils

> You're right, dwarf1.c was not correctly added to the BFD Makefile.  I
> just checked in a patch.

After fixing the Makefile, I noticed this during make check:

sed -f /xxx/gnu/binutils-2.9.4/binutils/testsuite/config/hppa.sed < /xxx/gnu/bin
utils-2.9.4/binutils/testsuite/binutils-all/hppa/addendbug.s > asm.s
Executing on host: /xxx/gnu/binutils-2.9.4/gas/as-new asm.s  -o tmpdir/addendbug
.o
spawn /xxx/gnu/binutils-2.9.4/gas/as-new asm.s -o tmpdir/addendbug.o ^M
asm.s: Assembler messages:^M
asm.s:23: Internal error, aborting at symbols.c line 93 in symbol_new^M
Please report this bug.^M
...
ERROR: asm.s: assembly failed
testcase /xxx/gnu/binutils-2.9.4/binutils/testsuite/binutils-all/hppa/objdump.ex
p completed in 1 seconds

Dave

-- 
J. David Anglin                                  dave.anglin@nrc.ca
National Research Council of Canada              (613) 990-0752 (FAX: 952-6605)

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Duplicate symbols in recent cvs source
       [not found] <no.id>
@ 1999-07-01  0:00 ` John David Anglin
  1999-07-01  0:00   ` John David Anglin
  0 siblings, 1 reply; 10+ messages in thread
From: John David Anglin @ 1999-07-01  0:00 UTC (permalink / raw)
  To: John David Anglin; +Cc: binutils

After apply the supplied patch to fix the duplicate symbol problem,
there are now some unresolved symbols.  I think the problem is that
epoc-pe-arm and epoc-pei-arm are not in the Makefile.

1031 (hiauly1)dave> ./ar --help
/lib/dld.sl: Unresolved symbol: arm_epoc_pe_little_vec (data)  from /xxx/gnu/bin
utils-2.9.4/bfd/.libs/libbfd.sl
/lib/dld.sl: Unresolved symbol: arm_epoc_pei_little_vec (data)  from /xxx/gnu/bi
nutils-2.9.4/bfd/.libs/libbfd.sl
/lib/dld.sl: Unresolved symbol: arm_epoc_pe_big_vec (data)  from /xxx/gnu/binuti
ls-2.9.4/bfd/.libs/libbfd.sl
/lib/dld.sl: Unresolved symbol: arm_epoc_pei_big_vec (data)  from /xxx/gnu/binut
ils-2.9.4/bfd/.libs/libbfd.sl


-- 
J. David Anglin                                  dave.anglin@nrc.ca
National Research Council of Canada              (613) 990-0752 (FAX: 952-6605)

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Duplicate symbols in recent cvs source
@ 1999-07-01  0:00 John David Anglin
  0 siblings, 0 replies; 10+ messages in thread
From: John David Anglin @ 1999-07-01  0:00 UTC (permalink / raw)
  To: binutils

/bin/ld -b +b /usr/local/lib -o .libs/libbfd-2.9.4.sl  archive.lo archures.lo bfd.lo cache.lo coffgen.lo corefile.lo format.lo init.lo libbfd.lo opncls.lo reloc.lo section.lo syms.lo targets.lo hash.lo linker.lo srec.lo binary.lo tekhex.lo ihex.lo stabs.lo stab-syms.lo som.lo aout-adobe.lo aout-arm.lo aout-ns32k.lo aout-sparcle.lo aout-tic30.lo aout0.lo aout32.lo bout.lo cf-i386lynx.lo cf-m68klynx.lo cf-sparclynx.lo coff-a29k.lo coff-apollo.lo coff-arm.lo coff-aux.lo coff-h8300.lo coff-h8500.lo coff-i386.lo coff-go32.lo coff-i860.lo coff-i960.lo coff-m68k.lo coff-m88k.lo coff-mips.lo coff-pmac.lo coff-rs6000.lo coff-sh.lo coff-sparc.lo coff-stgo32.lo coff-svm68k.lo coff-tic30.lo coff-tic80.lo coff-u68k.lo coff-we32k.lo coff-w65.lo coff-z8k.lo cofflink.lo dwarf2.lo ecoff.lo ecofflink.lo elf.lo elf32-arc.lo elfarm-oabi.lo elfarm-nabi.lo elf32-d10v.lo elf32-d30v.lo elf32-fr30.lo elf32-gen.lo elf32-hppa.lo elf32-i386.lo elf32-i860.lo elf32-i960.lo elf32-m32r.lo elf32-m68k.lo elf32!
-m88k.lo elf-m10200.lo elf-m10300.lo elf32-mcore.lo elf32-mips.lo elf32-ppc.lo elf32-sh.lo elf32-sparc.lo elf32-v850.lo elf32.lo elflink.lo hp300bsd.lo hp300hpux.lo i386aout.lo i386bsd.lo i386dynix.lo i386freebsd.lo i386linux.lo i386lynx.lo i386msdos.lo i386netbsd.lo i386mach3.lo i386os9k.lo ieee.lo m68k4knetbsd.lo m68klinux.lo m68klynx.lo m68knetbsd.lo m88kmach3.lo mipsbsd.lo newsos3.lo nlm.lo nlm32-i386.lo nlm32-sparc.lo nlm32-ppc.lo nlm32.lo ns32knetbsd.lo oasys.lo pc532-mach.lo pe-arm.lo pei-arm.lo pe-i386.lo pei-i386.lo pe-mcore.lo pei-mcore.lo pe-ppc.lo pei-ppc.lo ppcboot.lo reloc16.lo riscix.lo sparclinux.lo sparclynx.lo sparcnetbsd.lo sunos.lo vaxnetbsd.lo versados.lo vms.lo vms-gsd.lo vms-hdr.lo vms-misc.lo vms-tir.lo xcofflink.lo cpu-hppa.lo cpu-a29 k.lo cpu-alpha.lo cpu-arc.lo cpu-arm.lo cpu-d10v.lo cpu-d30v.lo cpu-fr30.lo cpu- h8300.lo cpu-h8500.lo cpu-i386.lo cpu-i860.lo cpu-i960.lo cpu-m32r.lo cpu-m68k.l
o cpu-m88k.lo cpu-m10200.lo cpu-m10300.lo cpu-mcore.lo cpu-mips.lo cpu-ns32k.lo cpu-powerpc.lo cpu-rs6000.lo cpu-sh.lo cpu-sparc.lo cpu-tic30.lo cpu-tic80.lo cpu-v850.lo cpu-vax.lo cpu-we32k.lo cpu-w65.lo cpu-z8k.lo hpux-core.lo
/bin/ld: Duplicate symbol "bfd_arm_get_bfd_for_interworking", files coff-arm.lo and pe-arm.lo
/bin/ld: Duplicate symbol "bfd_arm_process_before_allocation", files coff-arm.lo and pe-arm.lo
/bin/ld: Duplicate symbol "bfd_arm_allocate_interworking_sections", files coff-arm.lo and pe-arm.lo
/bin/ld: Duplicate symbols are not allowed in shared libraries
make[3]: *** [libbfd.la] Error 1

-- 
J. David Anglin                                  dave.anglin@nrc.ca
National Research Council of Canada              (613) 990-0752 (FAX: 952-6605)

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Duplicate symbols in recent cvs source
@ 1999-07-01  0:00 Nick Clifton
  0 siblings, 0 replies; 10+ messages in thread
From: Nick Clifton @ 1999-07-01  0:00 UTC (permalink / raw)
  To: dave; +Cc: binutils

Hi Dave,

: /bin/ld: Duplicate symbol "bfd_arm_get_bfd_for_interworking", files
: coff-arm.lo and pe-arm.lo

The following patch will fix this.  I will apply it to the sources
shortly.

Cheers
	Nick

1999-06-02  Nick Clifton  <nickc@cygnus.com>

	* pe-arm.c: Rename global arm interworking functions to avoid name
	collision when all targets BFD is built.
	* pei-arm.c: Ditto.

1999-06-02  Nick Clifton  <nickc@cygnus.com>

	* emultempl/pe.em: Rename global arm interworking functions to
	avoid name collision when all targets BFD is built.

Index: bfd/pe-arm.c
===================================================================
RCS file: /cvs/binutils/binutils/bfd/pe-arm.c,v
retrieving revision 1.1.1.1
diff -p -r1.1.1.1 pe-arm.c
*** pe-arm.c	1999/05/03 07:28:58	1.1.1.1
--- pe-arm.c	1999/06/02 21:17:36
*************** Foundation, Inc., 59 Temple Place - Suit
*** 31,34 ****
--- 31,41 ----
  #define PCRELOFFSET          true
  #define COFF_LONG_SECTION_NAMES
  
+ #define bfd_arm_allocate_interworking_sections \
+ 	bfd_arm_pe_allocate_interworking_sections
+ #define bfd_arm_get_bfd_for_interworking \
+ 	bfd_arm_pe_get_bfd_for_interworking
+ #define bfd_arm_process_before_allocation \
+ 	bfd_arm_pe_process_before_allocation
+ 
  #include "coff-arm.c"

Index: bfd/pei-arm.c
===================================================================
RCS file: /cvs/binutils/binutils/bfd/pei-arm.c,v
retrieving revision 1.1.1.1
diff -p -r1.1.1.1 pei-arm.c
*** pei-arm.c	1999/05/03 07:28:58	1.1.1.1
--- pei-arm.c	1999/06/02 21:17:43
*************** Foundation, Inc., 59 Temple Place - Suit
*** 33,36 ****
--- 33,43 ----
  #define PCRELOFFSET        true
  #define COFF_LONG_SECTION_NAMES
  
+ #define bfd_arm_allocate_interworking_sections \
+ 	bfd_arm_pe_allocate_interworking_sections
+ #define bfd_arm_get_bfd_for_interworking \
+ 	bfd_arm_pe_get_bfd_for_interworking
+ #define bfd_arm_process_before_allocation \
+ 	bfd_arm_pe_process_before_allocation
+ 
  #include "coff-arm.c"

Index: ld/emultempl/pe.em
===================================================================
RCS file: /cvs/binutils/binutils/ld/emultempl/pe.em,v
retrieving revision 1.3
diff -p -r1.3 pe.em
*** pe.em	1999/05/11 21:06:49	1.3
--- pe.em	1999/06/02 21:17:48
*************** gld_${EMULATION_NAME}_after_open ()
*** 639,645 ****
      /* Find a BFD that can hold the interworking stubs.  */
      LANG_FOR_EACH_INPUT_STATEMENT (is)
        {
! 	if (bfd_arm_get_bfd_for_interworking (is->the_bfd, & link_info))
  	  break;
        }
    }
--- 639,645 ----
      /* Find a BFD that can hold the interworking stubs.  */
      LANG_FOR_EACH_INPUT_STATEMENT (is)
        {
! 	if (bfd_arm_pe_get_bfd_for_interworking (is->the_bfd, & link_info))
  	  break;
        }
    }
*************** gld_${EMULATION_NAME}_before_allocation(
*** 740,746 ****
    {
      LANG_FOR_EACH_INPUT_STATEMENT (is)
        {
! 	if (! bfd_arm_process_before_allocation
  	    (is->the_bfd, & link_info, support_old_code))
  	  {
  	    /* xgettext:c-format */
--- 740,746 ----
    {
      LANG_FOR_EACH_INPUT_STATEMENT (is)
        {
! 	if (! bfd_arm_pe_process_before_allocation
  	    (is->the_bfd, & link_info, support_old_code))
  	  {
  	    /* xgettext:c-format */
*************** gld_${EMULATION_NAME}_before_allocation(
*** 751,757 ****
    }
  
    /* We have seen it all. Allocate it, and carry on */
!   bfd_arm_allocate_interworking_sections (& link_info);
  #endif /* TARGET_IS_armpe */
  }
  \f
--- 751,757 ----
    }
  
    /* We have seen it all. Allocate it, and carry on */
!   bfd_arm_pe_allocate_interworking_sections (& link_info);
  #endif /* TARGET_IS_armpe */
  }
  \f


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Duplicate symbols in recent cvs source
  1999-07-01  0:00 ` John David Anglin
@ 1999-07-01  0:00   ` John David Anglin
  0 siblings, 0 replies; 10+ messages in thread
From: John David Anglin @ 1999-07-01  0:00 UTC (permalink / raw)
  To: John David Anglin; +Cc: binutils

> 
> After apply the supplied patch to fix the duplicate symbol problem,
> there are now some unresolved symbols.  I think the problem is that
> epoc-pe-arm and epoc-pei-arm are not in the Makefile.

After adding these, there are another similar set of duplicate
symbols:

/bin/ld: Duplicate symbol "bfd_arm_pe_get_bfd_for_interworking", files epoc-pe-a
rm.lo and pe-arm.lo
/bin/ld: Duplicate symbol "bfd_arm_pe_process_before_allocation", files epoc-pe-
arm.lo and pe-arm.lo
/bin/ld: Duplicate symbol "bfd_arm_pe_allocate_interworking_sections", files epo
c-pe-arm.lo and pe-arm.lo
/bin/ld: Duplicate symbols are not allowed in shared libraries

-- 
J. David Anglin                                  dave.anglin@nrc.ca
National Research Council of Canada              (613) 990-0752 (FAX: 952-6605)

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~1999-07-01  0:00 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-07-01  0:00 Duplicate symbols in recent cvs source Nick Clifton
1999-07-01  0:00 ` John David Anglin
1999-07-01  0:00   ` Ian Lance Taylor
1999-07-01  0:00     ` John David Anglin
1999-07-01  0:00       ` Ian Lance Taylor
1999-07-01  0:00         ` John David Anglin
  -- strict thread matches above, loose matches on Subject: below --
1999-07-01  0:00 John David Anglin
     [not found] <no.id>
1999-07-01  0:00 ` John David Anglin
1999-07-01  0:00   ` John David Anglin
1999-07-01  0:00 Nick Clifton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).