gem5
v19.0.0.0
|
Go to the source code of this file.
Macros | |
#define | OMAGIC_STRUCT (*((const aout_exechdr *)omagic)) |
#define | NMAGIC_STRUCT (*((const aout_exechdr *)nmagic)) |
#define | ZMAGIC_STRUCT (*((const aout_exechdr *)zmagic)) |
#define | NO_MAGIC_STRUCT (*((const aout_exechdr *)no_magic)) |
Functions | |
TEST (ExecAoutTest, IsNotBadMagicNumber) | |
TEST (ExecAoutTest, IsBadMagicNumber) | |
TEST (ExecAoutTest, AlignNotZmagic) | |
TEST (ExecAoutTest, AlignIsZmagic) | |
TEST (ExecAoutTest, AlignIsZmagicNoRounding) | |
Variables | |
const uint8_t | omagic [] |
const uint8_t | nmagic [] |
const uint8_t | zmagic [] |
const uint8_t | no_magic [] |
#define NMAGIC_STRUCT (*((const aout_exechdr *)nmagic)) |
Definition at line 37 of file exec_aout.test.cc.
Referenced by TEST().
#define NO_MAGIC_STRUCT (*((const aout_exechdr *)no_magic)) |
Definition at line 39 of file exec_aout.test.cc.
Referenced by TEST().
#define OMAGIC_STRUCT (*((const aout_exechdr *)omagic)) |
Definition at line 36 of file exec_aout.test.cc.
Referenced by TEST().
#define ZMAGIC_STRUCT (*((const aout_exechdr *)zmagic)) |
Definition at line 38 of file exec_aout.test.cc.
Referenced by TEST().
TEST | ( | ExecAoutTest | , |
IsNotBadMagicNumber | |||
) |
Definition at line 102 of file exec_aout.test.cc.
References EXPECT_FALSE, N_BADMAG, NMAGIC_STRUCT, OMAGIC_STRUCT, and ZMAGIC_STRUCT.
TEST | ( | ExecAoutTest | , |
IsBadMagicNumber | |||
) |
Definition at line 109 of file exec_aout.test.cc.
References EXPECT_TRUE, N_BADMAG, and NO_MAGIC_STRUCT.
TEST | ( | ExecAoutTest | , |
AlignNotZmagic | |||
) |
Definition at line 114 of file exec_aout.test.cc.
References EXPECT_EQ, N_ALIGN, NMAGIC_STRUCT, NO_MAGIC_STRUCT, OMAGIC_STRUCT, and X86ISA::x.
TEST | ( | ExecAoutTest | , |
AlignIsZmagic | |||
) |
Definition at line 126 of file exec_aout.test.cc.
References EXPECT_EQ, N_ALIGN, X86ISA::x, and ZMAGIC_STRUCT.
TEST | ( | ExecAoutTest | , |
AlignIsZmagicNoRounding | |||
) |
Definition at line 136 of file exec_aout.test.cc.
References EXPECT_EQ, N_ALIGN, X86ISA::x, and ZMAGIC_STRUCT.
const uint8_t nmagic[] |
Definition at line 50 of file exec_aout.test.cc.
const uint8_t no_magic[] |
Definition at line 64 of file exec_aout.test.cc.
const uint8_t omagic[] |
Definition at line 43 of file exec_aout.test.cc.
const uint8_t zmagic[] |
Definition at line 57 of file exec_aout.test.cc.