This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils 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: "reloc refers to symbol ... which is not being output" fromcygwin ld -r


Hi Brian,

> No problem. Here are the objects (1.o and 2.o) as well as the sources
> and a shell script to re-create them (reproduce-bug).

Thanks for the attachment.  Please could you try the attached patch
which I think should solve the problem.  If it does work please let me
know so that I can check it in.

Cheers
        Nick

2003-08-21  Nick Clifton  <nickc@redhat.com>

	* cofflink.c (_bfd_coff_link_input_bfd): Do not skip sections
	containing relocs.

Index: bfd/cofflink.c
===================================================================
RCS file: /cvs/src/src/bfd/cofflink.c,v
retrieving revision 1.37
diff -c -3 -p -r1.37 cofflink.c
*** bfd/cofflink.c	25 Jun 2003 06:40:19 -0000	1.37
--- bfd/cofflink.c	21 Aug 2003 16:08:46 -0000
*************** _bfd_coff_link_input_bfd (finfo, input_b
*** 1533,1539 ****
  	  && isym.n_type == T_NULL
            && isym.n_numaux > 0)
          {
!           if ((*secpp)->output_section == bfd_abs_section_ptr)
              skip = TRUE;
          }
  #endif
--- 1533,1540 ----
  	  && isym.n_type == T_NULL
            && isym.n_numaux > 0)
          {
!           if ((*secpp)->output_section == bfd_abs_section_ptr
! 	      && ((*secpp)->flags & SEC_RELOC) == 0)
              skip = TRUE;
          }
  #endif
        


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