FIX: to kernel/include/a.out.h
utzoo!decvax!ucbvax!dist2
utzoo!decvax!ucbvax!dist2
Sun Oct 4 05:04:45 AEST 1981
In diff, there is a call to a macro N_BADMAG, which I found in
the VAX a.out.h, but not in the supplied one.
These changes should be made to kernel/include/a.out.h:
diff kernel/include/a.out.h.old kernel/include/a.out.h:
23a24,36
> /*
> * Macros which take exec structures as arguments and tell whether
> * the file has a reasonable magic number or offsets to text|symbols.
> */
> #define N_BADMAG(x) \
> (((x).a_magic)!=A_MAGIC1 && ((x).a_magic)!=A_MAGIC2 && \
> ((x).a_magic)!=A_MAGIC3 && ((x).a_magic)!=A_MAGIC4 && \
> ((x).a_magic)!=A_MAGIC5 && ((x).a_magic)!=A_MAGIC6)
>
> #define N_TXTOFF(x) \
> ((x).a_magic==A_MAGIC5 || (x).a_magic==A_MAGIC6 ? \
> sizeof (struct ovlhdr) + sizeof (struct exec) : sizeof (struct exec))
>
They should be applied to all tapes written before 10/5/81.
Carl
More information about the Comp.bugs.2bsd
mailing list