[Info-vax] For OpenVMS hackers
Stephen Hoffman
seaohveh at hoffmanlabs.invalid
Fri Aug 31 14:59:29 EDT 2012
On 2012-08-31 18:17:18 +0000, VAXman- @SendSpamHere.ORG said:
Or more specifically...
> ==> unsigned char ehdr$t_e_ident [16];
> ==> __struct {
> ==> unsigned char ehdr$b_ei_mag0;
> ==> unsigned char ehdr$b_ei_mag1;
> ==> unsigned char ehdr$b_ei_mag2;
> ==> unsigned char ehdr$b_ei_mag3;
> ==> unsigned char ehdr$b_ei_class;
> ==> unsigned char ehdr$b_ei_data;
> ==> unsigned char ehdr$b_ei_version;
> ==> unsigned char ehdr$b_ei_osabi;
> ==> unsigned char ehdr$b_ei_abiversion;
> ==> unsigned char ehdr$b_ei_pad [7];
> ==> } ehdr$r_bytes;
There doesn't appear to be a macro. But there is...
> ==> #define EHDR$K_ELFMAG0 127
> ==> #define EHDR$K_ELFMAG1 69
> ==> #define EHDR$K_ELFMAG2 76
> ==> #define EHDR$K_ELFMAG3 70
...
Values which lines up nicely with that ... char ELF_magic[16] =
"\x7f\x45\x4c\x46\2\1\1\xd\2\0\0\0\0\0\0"; ... stuff.
--
Pure Personal Opinion | HoffmanLabs LLC
More information about the Info-vax
mailing list