[PATCH] [RFC] [GOLD] s390 -fsplit-stack support.

Cary Coutant ccoutant@gmail.com
Fri Dec 11 21:58:00 GMT 2015


Oops, sorry!

-cary

On Fri, Dec 11, 2015 at 1:30 PM, Marcin Kościelnicki <koriakin@0x04.net> wrote:
> On 11/12/15 22:10, Cary Coutant wrote:
>>>
>>> To get the view of the section containing the parameter block, I'd
>>> suggest adding a new Object method:
>>>
>>> [public:]
>>> const unsigned char*
>>> Object::get_output_view(Output_file* of, unsigned int shndx,
>>> section_size_type* plen)
>>> { return this->do_get_output_view(of, shndx, plen); }
>>> ...
>>
>>
>> After thinking about this a bit, I'd prefer to save a pointer to the
>> output views in the Sized_relobj object, so get_output_view() can
>> access the pre-computed view directly, rather than trying to recompute
>> it. I've added a simple RAII class to make sure the saved pointer gets
>> NULL'd when the output views go out of scope.
>>
>> Try the attached patch. If this works for you, I'll go ahead and
>> commit it as preparation for your patch.
>>
>
> Thanks for the idea, but I don't see any attachment...
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: output_views.patch
Type: application/octet-stream
Size: 5602 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20151211/fcd2d8b5/attachment.obj>


More information about the Binutils mailing list