Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ null_kludge(1A) — Amiga System V Release 4 Version 1.1

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

elf(3e)

a.out(4)



NULL_KLUDGE(1A)   MISC. REFERENCE MANUAL PAGES    NULL_KLUDGE(1A)



NAME
     null_kludge - manipulate null_kludge ELF section to  disable
     null pointer detection

SYNOPSIS
     /usr/amiga/bin/null_kludge [-adq] files

DESCRIPTION
     nullkludge adds, deletes, or detects a special ELF  section
     which  will  cause  a  page  of  zeroes to appear at virtual
     address zero.

     Such a section is useful to get a program to run even if  it
     has  harmless  null-pointer dereferencing bugs.  Exactly one
     of the following options is in effect for any invocation  of
     nullkludge:

     -q (default)
          Query.  A zero exit status indicates the presence of  a
          null_kludge  section  in all the files.  (otherwise the
          exit status is the number of files which don't  contain
          such a section.)

     -a   Add.  A null_kludge section is added to files.

     -d   Delete.  A null_kludge section is deleted  from  files.
          The -d option does not work as of the Beta3j release of
          Amiga Unix.

DIAGNOSTICS
     nullkludge's exit status is zero if all operations succeded
     (or all files were found to contain a null_kludge section in
     query mode).  An appropriate message is written to  standard
     error  output on any failure.  The number of files for which
     something went wrong.

SEE ALSO
     elf(3e), a.out(4),


WARNING
     Dereferencing a null pointer in the C  language  is  illegal
     and  the  result is undefined.  This utility allows programs
     whose authors accidentally or intentionally relied  on  very
     particular  "undefined"  behavior  on some machines (such as
     the VAX and 3B2) to operate in an  acceptable  manner  under
     Amiga Unix.

     Any programmer whose code needs this to  work  is  a  rotten
     egg.





Amiga Unix                Last change:                          1



Typewritten Software • bear@typewritten.org • Edmonds, WA 98026