<br><br><div class="gmail_quote">On Wed, Jan 9, 2013 at 6:36 AM, horseriver <span dir="ltr"><<a href="mailto:horserivers@gmail.com" target="_blank">horserivers@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On Wed, Jan 09, 2013 at 01:28:12PM +0800, Peter Teoh wrote:<br>
> On Sun, Jan 6, 2013 at 11:17 AM, horseriver <<a href="mailto:horserivers@gmail.com">horserivers@gmail.com</a>> wrote:<br>
><br></div>
VSYSCALL_BASE = 0xffffe000;<br>
<br>
SECTIONS<br>
{<br>
. = VSYSCALL_BASE ;<br>
<br>
.hash : { *(.hash) } :text<br>
.dynsym : { *(.dynsym) }<br>
.dynstr : { *(.dynstr) }<br>
.gnu.version : { *(.gnu.version) }<br>
.gnu.version_d : { *(.gnu.version_d) }<br>
.gnu.version_r : { *(.gnu.version_r) }<br>
</blockquote><div><br></div><div>I suspect something wrong with VSYSCALL_BASE + value here. </div><div><br></div><div>look at this:</div><div><br></div><div><a href="http://marcbug.scc-dc.com/svn/repository/trunk/linuxkernel/linux-2.6.16-mcemu/arch/x86_64/ia32/vsyscall.lds">http://marcbug.scc-dc.com/svn/repository/trunk/linuxkernel/linux-2.6.16-mcemu/arch/x86_64/ia32/vsyscall.lds</a></div>
<div><br></div><div>and doing a diff with your ld script, there is not much diff, except for the VSYSCALL_BASE + SIZEOF_HEADER </div><div><br></div><div>portion.</div><div><br></div><div>Read here to understand how SIZEOF_HEADER is calculated:</div>
<div><br></div><div><a href="http://www.math.utah.edu/docs/info/ld_3.html#SEC13">http://www.math.utah.edu/docs/info/ld_3.html#SEC13</a></div><div><br></div><div>Not sure why do u want to shift the whole section by SIZEOF_HEADER down in bytes?</div>
<div><br></div></div>-- <br>Regards,<br>Peter Teoh