Correct byte order of 'desc' field

This commit is contained in:
ceriel 1990-12-19 10:26:39 +00:00
parent 631f40cb1a
commit f72cc607a1
2 changed files with 2 additions and 0 deletions

View file

@ -592,6 +592,7 @@ emit_symtab()
else M->name = outhead.oh_nchar + 3; /* pointer to nullbyte */
cvlong(&(M->name));
cvlong(&(M->value));
cvshort(&(M->desc));
}
writef(MACHnames, sizeof(struct sym), (long) outhead.oh_nname);
free(MACHnames);

View file

@ -592,6 +592,7 @@ emit_symtab()
else M->name = outhead.oh_nchar + 3; /* pointer to nullbyte */
cvlong(&(M->name));
cvlong(&(M->value));
cvshort(&(M->desc));
}
writef(MACHnames, sizeof(struct sym), (long) outhead.oh_nname);
free(MACHnames);