This is the mail archive of the binutils@sourceware.org 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: Sun/Oracle C++ compiler patch


On Friday February 25 4:19AM, Jakub Jelinek wrote:
On Fri, Feb 25, 2011 at 10:54:32AM +0100, Tristan Gingold wrote:
On Feb 25, 2011, at 1:17 AM, Chris Quenelle wrote:

(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.
Just a suggestion: can you add a comment just before to explain that this is for Sun/Oracle C++ compiler ?  This is not
obvious from the section name.

Is the content of this section documented somewhere ?
Also, do you really need ONLY_IF_R{O,W}, i.e. do some older Oracle C++ compiler versions
emit the section writable and some later compilers emit it read-only (or vice versa)?
.eh_frame with very old gcc versions used to be a writable sections that needed
runtime relocation, then gcc changed to a new format which doesn't need any relocations
and thus it is desirable to put the section into a read-only segment if all
.eh_frame input sections are read-only.

Jakub


Jakub: I believe our fix was made by just copying the way gcc_except_table is treated.
Our sections see to be writable in the a.out, I've emailed our C++ team to ask if we do
runtime relocations. (ugh)


Tristan: I'll add a comment and repost the patch when I resolve Jakub's question.

Thanks!

--chris





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