<div dir="ltr"><span style="font-size:12.8px">> By the way, may be we want to implement some simple option like -z permissive-flags</span><br><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">I think that's not a bad idea. Inconsistent type/flags is not an uncommon scenario. </span><span style="font-size:12.8px">Ben has already mentioned the same for section types here <a href="https://reviews.llvm.org/D29278">https://reviews.llvm.org/D29278</a>. We</span><span style="font-size:12.8px">'ve seen a number of codebases where developers will write assembly but forget to correctly configure type/flags to a section, in some cases where the developer are unable/unwilling to change their source.</span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">maybe permissive-section-flags to be more explicit. Maybe worth also adding permissive-section-type too?</span></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jan 31, 2017 at 4:49 PM, George Rimar via llvm-commits <span dir="ltr"><<a href="mailto:llvm-commits@lists.llvm.org" target="_blank">llvm-commits@lists.llvm.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">>So, this really looks like a bug in the kernel. Even some of its flags<br>
>are marked alloc.<br>
><br>
>Can you try changing include/linux/elfnote.h to have<br>
><br>
>#define ELFNOTE(name, type, desc)               \<br>
>        ELFNOTE_START(name, type, "a")          \<br>
>                desc                    ;       \<br>
>        ELFNOTE_END<br>
><br>
>and see if that fixes the problem?<br>
><br>
<br>
</span>Sure, I'll check that tomorrow and return with info.<br>
<br>
By the way, may be we want to implement some simple option like -z permissive-flags, which<br>
will ignore flags checks ? It looks it can be not a unique case for software that have such issues.<br>
<span class="HOEnZb"><font color="#888888"><br>
George.<br>
</font></span><div class="HOEnZb"><div class="h5">______________________________<wbr>_________________<br>
llvm-commits mailing list<br>
<a href="mailto:llvm-commits@lists.llvm.org">llvm-commits@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/<wbr>mailman/listinfo/llvm-commits</a><br>
</div></div></blockquote></div><br></div>