diff options
Diffstat (limited to 'libexec/rtld-aout/i386/md.h')
-rw-r--r-- | libexec/rtld-aout/i386/md.h | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/libexec/rtld-aout/i386/md.h b/libexec/rtld-aout/i386/md.h index 285b0e6..c7271b3 100644 --- a/libexec/rtld-aout/i386/md.h +++ b/libexec/rtld-aout/i386/md.h @@ -27,7 +27,7 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $Id: md.h,v 1.5 1993/12/08 10:14:48 pk Exp $ + * $Id: md.h,v 1.6 1993/12/11 12:02:05 jkh Exp $ */ @@ -45,10 +45,15 @@ #define PAGSIZ 4096 #endif -#define N_SET_FLAG(ex,f) N_SETMAGIC(ex,N_GETMAGIC(ex), MID_MACHINE, \ - N_GETFLAG(ex)|(f)) - -#define N_IS_DYNAMIC(ex) ((N_GETFLAG(ex) & EX_DYNAMIC)) +#define N_SET_FLAG(ex,f) (netzmagic ? \ + N_SETMAGIC_NET(ex,N_GETMAGIC_NET(ex), MID_MACHINE, \ + N_GETFLAG_NET(ex)|(f)) : \ + N_SETMAGIC(ex,N_GETMAGIC(ex), MID_MACHINE, \ + N_GETFLAG(ex)|(f))) + +#define N_IS_DYNAMIC(ex) ((N_GETMAGIC_NET(ex) == ZMAGIC) ? \ + ((N_GETFLAG_NET(ex) & EX_DYNAMIC)) : \ + ((N_GETFLAG(ex) & EX_DYNAMIC))) /* * Should be handled by a.out.h ? |