public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
From: Chris Quenelle <chris.quenelle@oracle.com>
To: binutils@sourceware.org
Subject: Sun/Oracle C++ compiler patch
Date: Fri, 25 Feb 2011 00:17:00 -0000	[thread overview]
Message-ID: <4D66F521.8010902@oracle.com> (raw)

(ignore the last copy of this email, it had a terrible subject line)

Hello,

When the Sun/Oracle C++ compiler was ported to Linux, we started
bundling a patched version of gnu ld to get the necessary treatment
for our exception range sections.  I don't believe anyone has tried to
offer this patch upstream, and it would really help us out if we could
use the system linker when running on Linux.  I've included the
contents of the patch at the end of this email.

--chris



% more patch-intel-Linux-2.17.90
*** binutils-2.17.90/ld/scripttempl/elf.sc      2007-08-07 
00:00:22.000000000 +0400
--- bu-patched/ld/scripttempl/elf.sc    2008-06-06 15:08:24.602615680 +0400
***************
*** 372,377 ****
--- 372,378 ----
     .eh_frame_hdr : { *(.eh_frame_hdr) }
     .eh_frame     ${RELOCATING-0} : ONLY_IF_RO { KEEP (*(.eh_frame)) }
     .gcc_except_table ${RELOCATING-0} : ONLY_IF_RO { 
*(.gcc_except_table .gcc_except_table.*) }
+   .exception_ranges ${RELOCATING-0} : ONLY_IF_RO { *(.exception_ranges 
.exception_ranges*) }

     /* Adjust the address for the data segment.  We want to adjust up to
        the same address within the page on the next page up.  */
***************
*** 382,387 ****
--- 383,389 ----
     /* Exception handling  */
     .eh_frame     ${RELOCATING-0} : ONLY_IF_RW { KEEP (*(.eh_frame)) }
     .gcc_except_table ${RELOCATING-0} : ONLY_IF_RW { 
*(.gcc_except_table .gcc_except_table.*) }
+   .exception_ranges ${RELOCATING-0} : ONLY_IF_RW { *(.exception_ranges 
.exception_ranges*) }

     /* Thread Local Storage sections  */
     .tdata      ${RELOCATING-0} : { *(.tdata${RELOCATING+ .tdata.* 
.gnu.linkonce.td.*}) }




             reply	other threads:[~2011-02-25  0:17 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-25  0:17 Chris Quenelle [this message]
2011-02-25  9:54 ` Tristan Gingold
2011-02-25 12:19   ` Jakub Jelinek
2011-02-25 18:11     ` Chris Quenelle
2011-04-01  3:13     ` Chris Quenelle
2011-04-11 15:40       ` Nick Clifton
2011-04-12 21:49         ` Chris Quenelle

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=4D66F521.8010902@oracle.com \
    --to=chris.quenelle@oracle.com \
    --cc=binutils@sourceware.org \
    /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).