<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div class="gmail_default" style="font-size:small"><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Feb 12, 2019 at 6:15 AM Jan Stancek <<a href="mailto:jstancek@redhat.com" target="_blank">jstancek@redhat.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">exec_func() is dummy/empty function. Try to align it so we don't<br>
need to worry about copying 2 pages. But also check that compiler<br>
aligned it and there's sufficient space between start of func_exec<br>
and end of page.<br>
<br>
This patch also removes copy_sz, which is now replaced with page_sz.<br>
<br>
Signed-off-by: Jan Stancek <<a href="mailto:jstancek@redhat.com" target="_blank">jstancek@redhat.com</a>><br></blockquote><div> </div><div><span class="gmail_default" style="font-size:small">Reviewed-by: Li Wang <<a href="mailto:liwang@redhat.com" target="_blank">liwang@redhat.com</a>></span></div><div><span class="gmail_default" style="font-size:small"></span> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
+mprotect04: CFLAGS += -falign-functions=64<br></blockquote><div><br></div><div><div class="gmail_default" style="font-size:small">One of my concern was this option maybe not supported by kind of compiler and probably broken in the compiling phase. So I just submitted these two(another is Daniel's) patches to Travis CI, the result looks good and no compiler error found there.</div></div><div class="gmail_default"><a href="https://travis-ci.com/wangli5665/ltp/builds/101429714" target="_blank">https://travis-ci.com/wangli5665/ltp/builds/101429714</a><br></div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Beside that, I also manually tried that with old gcc(gcc version 4.1.2) and verify that works fine. </div></div><div><br></div>-- <br><div dir="ltr" class="m_-5733509398791970619gmail-m_-2076020761401734715gmail-m_-501886661145571594gmail_signature"><div dir="ltr"><div>Regards,<br></div><div>Li Wang<br></div></div></div></div></div></div></div>