Re: how to unmap first 64k for a.out ?

Harald Koenig (koenig@tat.physik.uni-tuebingen.de)
Tue, 24 Sep 1996 20:02:01 +0200 (MET DST)


> 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

thanks for all the suggestions. right now I used another solution
since I know which the base pointer is which is used for this 64k offset
accesses. for now I initialize this pointer to (NULL - 64*1024) so
all the suspicious access are trapped and I found all my problems...

Thanks,

Harald

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