[lkml]   [1996]   [Sep]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Subjecthow 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) ?

I need this to trap accesses to a NULL pointer with offsets up to 64k
and I can't build a ELF binary to test it... I tried using

cc -O -g -v -Wl,-Ttext,0xffe0 segv.c

with "ld version cygnus-2.5.3 (with BFD cygnus-2.5)" but every offset
except "-Ttext 0x1000" just killed the program at startup :-(

All SCSI disks will from now on ___ _____
be required to send an email notice 0--,| /OOOOOOO\
24 hours prior to complete hardware failure! <_/ / /OOOOOOOOOOO\
Harald Koenig, \/\/\/\/\/\/\/\/\/
Inst.f.Theoret.Astrophysik // / \\ \ ^^^^^ ^^^^^

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