public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
From: Nick Clifton <nickc@cygnus.com>
To: dave@hiauly1.hia.nrc.ca
Cc: binutils@sourceware.cygnus.com
Subject: Re: Duplicate symbols in recent cvs source
Date: Thu, 01 Jul 1999 00:00:00 -0000	[thread overview]
Message-ID: <199906022122.OAA23279@elmo.cygnus.com> (raw)

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


             reply	other threads:[~1999-07-01  0:00 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-07-01  0:00 Nick Clifton [this message]
     [not found] <no.id>
1999-07-01  0:00 ` John David Anglin
1999-07-01  0:00   ` John David Anglin
  -- strict thread matches above, loose matches on Subject: below --
1999-07-01  0:00 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
1999-07-01  0:00 John David Anglin

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=199906022122.OAA23279@elmo.cygnus.com \
    --to=nickc@cygnus.com \
    --cc=binutils@sourceware.cygnus.com \
    --cc=dave@hiauly1.hia.nrc.ca \
    /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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).