aboutsummaryrefslogtreecommitdiffstats
path: root/bruiser/bruiser.h
diff options
context:
space:
mode:
authorbloodstalker <thabogre@gmail.com>2018-09-27 08:41:14 +0000
committerbloodstalker <thabogre@gmail.com>2018-09-27 08:41:14 +0000
commit7abb76507eae14c5baf8e3b8cde4ee4ea8a22501 (patch)
treeccfb9af87dea1ccf8b3f9eff5f5b9a9197df0f3b /bruiser/bruiser.h
parentit's working for the most part, the getter methods are also registering light... (diff)
downloadmutator-7abb76507eae14c5baf8e3b8cde4ee4ea8a22501.tar.gz
mutator-7abb76507eae14c5baf8e3b8cde4ee4ea8a22501.zip
did some code cleanup on m0 and bruiser, now you can specify report paths for m0, wip of dedrecating mutator.sh and mutator.py
Diffstat (limited to '')
-rw-r--r--bruiser/bruiser.h53
1 files changed, 0 insertions, 53 deletions
diff --git a/bruiser/bruiser.h b/bruiser/bruiser.h
index ff47919..1e54d34 100644
--- a/bruiser/bruiser.h
+++ b/bruiser/bruiser.h
@@ -301,59 +301,6 @@ class Daemonize
};
/**********************************************************************************************************************/
/*structs to hold load.py's return values*/
-/*@DEVI-at some point in the future i might revert to using libbfd or libelf.*/
-
-/*elf*/
-#define ELF_EI_MAGIC = 0x000000000000ffff;
-#define ELF_EI_CLASS = 0x00000000000f0000;
-#define ELF_EI_DATA = 0x0000000000f00000;
-#define ELF_EI_VERSION = 0x000000000f000000;
-#define ELF_EI_OSABI = 0x00000000f0000000;
-#define ELF_EI_ABIVERSION = 0x0000000f00000000;
-#define ELF_EI_PAD = 0xfffffff000000000;
-
-// @DEVI-FIXME-using uint128 here
-// fails to build on stock ubuntu 16.04
-# if 0
-struct ELFHDR_64 {
- public:
- ELFHDR_64() = default;
- ELFHDR_64(__uint128_t _ident, uint16_t _type, uint16_t _machine,
- uint32_t _version, uint64_t _entry, uint64_t _phoff, uint64_t _shoff,
- uint32_t _flags, uint16_t _ehsize, uint16_t _phentsize,
- uint16_t _phnum, uint16_t _shentsize, uint16_t _shnum, uint16_t _shstrndx) {
- e_ident = _ident; e_type = _type; e_machine = _machine; e_version = _version;
- e_entry = _entry; e_phoff = _phoff; e_shoff = _shoff; e_flags = _flags;
- e_ehsize = _ehsize; e_phentsize = _phentsize; e_phnum = _phnum;
- e_shentsize = _shentsize; e_shnum = _shnum; e_shstrndx = _shstrndx;
- }
- __uint128_t e_ident; uint16_t e_type; uint16_t e_machine; uint32_t e_version;
- uint64_t e_entry; uint64_t e_phoff; uint64_t e_shoff; uint32_t e_flags;
- uint16_t e_ehsize; uint16_t e_phentsize; uint16_t e_phnum; uint16_t e_shentsize;
- uint16_t e_shnum; uint16_t e_shstrndx;
-};
-
-// @DEVI-FIXME-using uint128 here
-struct ELFHDR_32 {
- public:
- ELFHDR_32() = default;
- ELFHDR_32(__uint128_t _ident, uint16_t _type, uint16_t _machine, uint32_t _version,
- uint32_t _entry, uint32_t _phoff, uint32_t _shoff, uint32_t _flags,
- uint16_t _ehsize, uint16_t _phentsize, uint16_t _phnum, uint16_t _shentsize,
- uint16_t _shnum, uint16_t _shstrndx) {
- e_ident = _ident; e_type = _type; e_machine = _machine; e_version = _version;
- e_entry = _entry; e_phoff = _phoff; e_shoff = _shoff; e_flags = _flags;
- e_ehsize = _ehsize; e_phentsize = _phentsize; e_phnum = _phnum;
- e_shentsize = _shentsize; e_shnum = _shnum; e_shstrndx = _shstrndx;
- }
-
- __uint128_t e_ident; uint16_t e_type; uint16_t e_machine; uint32_t e_version;
- uint32_t e_entry; uint32_t e_phoff; uint32_t e_shoff; uint32_t e_flags;
- uint16_t e_ehsize; uint16_t e_phentsize; uint16_t e_phnum; uint16_t e_shentsize;
- uint16_t e_shnum; uint16_t e_shstrndx;
-};
-#endif
-/*program header*/
struct PHDR_64 {
public:
PHDR_64() = default;