[Info-vax] For OpenVMS hackers
VAXman- at SendSpamHere.ORG
VAXman- at SendSpamHere.ORG
Fri Aug 31 15:58:59 EDT 2012
In article <k1r1ih$2ql$1 at dont-email.me>, Stephen Hoffman <seaohveh at hoffmanlabs.invalid> writes:
>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...
C doesn't have macros! ;)
>> ==> #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.
Yup.
--
VAXman- A Bored Certified VMS Kernel Mode Hacker VAXman(at)TMESIS(dot)ORG
Well I speak to machines with the voice of humanity.
More information about the Info-vax
mailing list