[lkml]   [1996]   [Sep]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: how to unmap first 64k for a.out ?
> >is there a way to build an a.out binary which has all the first 64k
> >unmapped and not only the first page (4k) ?
> Not with a.out. There isn't sufficient information in the a.out
> header to specify a different load address (from linux/a.out.h):

However, you could add an object file first on the link line with

.skip 64*1024

and then do

munmap(0, 64*1024);

at the beginning of main.


 \ /
  Last update: 2005-03-22 13:37    [W:0.044 / U:1.288 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site