delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2011/09/25/11:43:49

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-2.2 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,T_TO_NO_BRKTS_FREEMAIL
X-Spam-Check-By: sourceware.org
Message-ID: <4E7F4C16.8050009@gmail.com>
Date: Sun, 25 Sep 2011 16:43:18 +0100
From: Dave Korn <dave DOT korn DOT cygwin AT gmail DOT com>
User-Agent: Thunderbird 2.0.0.17 (Windows/20080914)
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: rebaseall and cygstdc++-6.dll
References: <4E6AC3F4 DOT 1090401 AT gmail DOT com> <4E7EC532 DOT 9020306 AT gmail DOT com>
In-Reply-To: <4E7EC532.9020306@gmail.com>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

--------------030501050806050400070301
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

On 25/09/2011 07:07, Dave Korn wrote:
>  Sourceware CVS is down right now but I'll be
> sending the attached to binutils when it's working again, 

  Yeah, d'oh.  Maybe I'll send the file with the actual patch in it, instead
of the fresh diff I tried to generate when CVS wasn't working!  Attached, JFTR.

    cheers,
      DaveK


--------------030501050806050400070301
Content-Type: text/x-c;
 name="no-base-relocs-against-discarded-sections.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
 filename="no-base-relocs-against-discarded-sections.diff"

--- pe-dll.c.orig	2011-09-25 03:11:10.906250000 +0100
+++ pe-dll.c	2011-09-25 03:11:10.781250000 +0100
@@ -1398,6 +1398,16 @@ generate_reloc (bfd *abfd, struct bfd_li
 		      else if (!blhe || blhe->type != bfd_link_hash_defined)
 			continue;
 		    }
+		  /* Nor for Dwarf FDE references to discarded sections.  */
+		  else if (bfd_is_abs_section (sym->section->output_section))
+		    {
+		      /* These are the same section names that
+			 _bfd_elf_default_action_discarded chooses to discard
+			 relocs against.  */
+		      if (!strcmp (s->name, ".eh_frame")
+			  || !strcmp (s->name, ".gcc_except_table"))
+			continue;
+		    }
 
 		  reloc_data[total_relocs].vma = sec_vma + relocs[i]->address;
 


--------------030501050806050400070301
Content-Type: text/plain; charset=us-ascii

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
--------------030501050806050400070301--

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019