[prev in list] [next in list] [prev in thread] [next in thread] 

List:       illumos-developer
Subject:    Re: [developer] [REVIEW] 7323 ld(1) -zignore can erroneously discard init and fini arrays as unrefer
From:       "Richard Lowe" <richlowe () richlowe ! net>
Date:       2016-08-24 20:12:10
Message-ID: CAA7J0x_2LMYOJWyV+nG1G3=zfG6Y-7pJM6FJfy2PUFGcqijMbQ () mail ! gmail ! com
[Download RAW message or body]

Instruction alignment shouldn't matter, but crti had 16 and I wanted to
draw attention to it.

Thanks

On Wed, Aug 24, 2016, 16:03 Patrick Mooney <patrick.mooney@joyent.com>
wrote:

> Looks good, modulo the XXX comment on the .align directive.
> (Alignment for the instructions themselves doesn't seem like it would
> matter in this case?)
>
> On 24 August 2016 at 14:38, Richard Lowe <richlowe@richlowe.net> wrote:
>
>> webrev: http://cr.illumos.org/~webrev/richlowe/il_7323
>>
>> bugs:
>>   7324 stack needs to be sufficiently aligned for SSE before init_array
>> are called
>> 7322 ld(1) gets init/fini array section names wrong
>> 7323 ld(1) -zignore can erroneously discard init and fini arrays as
>> unreferenced
>>
>> This fixes a couple of bugs found by the OI folks due to GCC 5.4 using
>> .init_array rather than .init.    Firstly we were discarding them in the
>> face of -zignore (they will have no traditional references, only being
>> referenced by the dynamic tag), secondly we had not aligned the stack
>> sufficiently for any functions called from them to use SIMD instructions.
>> Thirdly, I noticed by chance that we mis-named them in the manual page.
>>
>> Robert has looked at 7324, which mirrors a fix he made to the CRT for
>> .init, Alexander has tested 7324 and 7323 with the problematic GCC version
>> and the affected pdns_recursor software.
>>
>> Thanks,
>>
>> -- Rich
>> --
>>
>> -- Rich
>>
>
> *illumos-developer* | Archives
> <https://www.listbox.com/member/archive/182179/=now>
> <https://www.listbox.com/member/archive/rss/182179/21175253-52f9b689> |
> Modify
> <https://www.listbox.com/member/?&>
> Your Subscription <http://www.listbox.com>
>
-- 

-- Rich



-------------------------------------------
illumos-developer
Archives: https://www.listbox.com/member/archive/182179/=now
RSS Feed: https://www.listbox.com/member/archive/rss/182179/25758058-4e9228dc
Modify Your Subscription: https://www.listbox.com/member/?member_id=25758058&id_secret=25758058-c19b436a
Powered by Listbox: http://www.listbox.com

[Attachment #3 (text/html)]

<html><html><p dir="ltr">Instruction alignment shouldn&#39;t matter, but crti had 16 \
and I wanted to draw attention to it. <p dir="ltr">Thanks<br /><div \
class="gmail_quote"><div dir="ltr">On Wed, Aug 24, 2016, 16:03 Patrick Mooney &lt;<a \
href="mailto:patrick.mooney@joyent.com">patrick.mooney@joyent.com</a>&gt; wrote:<br \
/></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"><div dir="ltr"><div>Looks good, modulo the XXX comment on the \
.align directive.<br /></div>(Alignment for the instructions themselves doesn&#39;t \
seem like it would matter in this case?)<br /></div><div class="gmail_extra"><br \
/><div class="gmail_quote">On 24 August 2016 at 14:38, Richard Lowe <span \
dir="ltr">&lt;<a href="mailto:richlowe@richlowe.net" \
target="_blank">richlowe@richlowe.net</a>&gt;</span> wrote:<br /><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"><div dir="ltr">webrev: <a \
href="http://cr.illumos.org/~webrev/richlowe/il_7323" \
target="_blank">http://cr.illumos.org/~webrev/richlowe/il_7323</a><div><br \
/></div><div>bugs:</div><div>&nbsp; 7324 stack needs to be sufficiently aligned for \
SSE before init_array are called</div><div>7322 ld(1) gets init/fini array section \
names wrong</div><div>7323 ld(1) -zignore can erroneously discard init and fini \
arrays as unreferenced</div><div><br /></div><div>This fixes a couple of bugs found \
by the OI folks due to GCC 5.4 using .init_array rather than .init. &nbsp; \
&nbsp;Firstly we were discarding them in the face of -zignore (they will have no \
traditional references, only being referenced by the dynamic tag), secondly we had \
not aligned the stack sufficiently for any functions called from them to use SIMD \
instructions.&nbsp; Thirdly, I noticed by chance that we mis-named them in the manual \
page.</div><div><br /></div><div>Robert has looked at 7324, which mirrors a fix he \
made to the CRT for .init, Alexander has tested 7324 and 7323 with the problematic \
GCC version and the affected pdns_recursor software.</div><div><br \
/></div><div>Thanks,</div><div><br /></div><div>-- Rich</div></div><div dir="ltr">-- \
<br /></div><div data-smartmail="gmail_signature"><p dir="ltr">-- \
Rich</div></blockquote></div><br /></div></blockquote></div><div dir="ltr">-- <br \
/></div><div data-smartmail="gmail_signature"><p dir="ltr">-- Rich</div></html><div \
bgcolor="#ffffff" id="listbox-footer" \
style="width:auto;margin:0;padding:5px;background-color:#fff;clear:both;border-top: \
1px solid #ccc;"><table bgcolor="#ffffff" border="0" cellpadding="0" cellspacing="0" \
style="background-color:#fff" width="100%"><tr><td padding="4px"><font \
color="#333333" size="1" style="font-family:helvetica, sans-serif;">  \
<strong>illumos-developer</strong> | <a \
href="https://www.listbox.com/member/archive/182179/=now" \
style="text-decoration:none;color:#669933;border-bottom: 1px solid #444444" title="Go \
to archives for illumos-developer">Archives</a> <a border="0" \
href="https://www.listbox.com/member/archive/rss/182179/25758058-4e9228dc" \
style="text-decoration:none;color:#669933" title="RSS feed for \
illumos-developer"><img border="0" \
src="http://postlink.www.listbox.com/2190664/833487e62783d55fe81f119fb93ef644/25758058 \
/bb3fe179.jpg?uri=aHR0cHM6Ly93d3cubGlzdGJveC5jb20vaW1hZ2VzL2ZlZWQtaWNvbi0xMHgxMC5qcGc" \
/></a>  | <a href="https://www.listbox.com/member/?member_id=25758058&id_secret=25758058-c19b436a" \
style="text-decoration:none;color:#669933;border-bottom: 1px solid #444444" \
title="">Modify</a>  Your Subscription<td align="right" valign="top"><a \
href="http://www.listbox.com" style="border-bottom:none;"> <img border="0" \
src="http://postlink.www.listbox.com/2190665/3379085af0f1cf7fc3708f04b4471ae2/25758058 \
/bb3fe179.png?uri=aHR0cHM6Ly93d3cubGlzdGJveC5jb20vaW1hZ2VzL2xpc3Rib3gtbG9nby1zbWFsbC5wbmc" \
title="Powered by Listbox" /></a></td></font></td></tr></table></div></html>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic