*****************************************************************************/
#include <limits.h>
#include <stddef.h>
+#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "lib.h"
#include "macho.h"
#include "report.h"
-#include "stdint.h"
struct strtab {
uint16_t e_shnum = array_to_integer (hdr->e_shnum, 2, endianess);
uint16_t e_shentsize = array_to_integer (hdr->e_shentsize, 2, endianess);
-
-#if defined (NO_LONG_LONG)
- uint64_t e_shoff = array_to_integer (hdr->e_shoff, 4, endianess);
-#else
uint64_t e_shoff = array_to_integer (hdr->e_shoff, 8, endianess);
-#endif
uint64_t sh_link, sh_offset, sh_entsize, sh_size;
uint64_t sym_strtab_size, i, j, st_name;
}
sh_link = array_to_integer (shdr.sh_link, 4, endianess);
-
-#if defined (NO_LONG_LONG)
- sh_offset = array_to_integer (shdr.sh_offset, 4, endianess);
-#else
sh_offset = array_to_integer (shdr.sh_offset, 8, endianess);
-#endif
if (sh_link == 0 || sh_link >= e_shnum) {
continue;
continue;
}
-#if defined (NO_LONG_LONG)
- sym_strtab_size = array_to_integer (strtabhdr.sh_size, 4, endianess);
- sym_strtab = (char *) object + array_to_integer (strtabhdr.sh_offset, 4, endianess);
-
- if ((sh_entsize = array_to_integer (shdr.sh_entsize, 4, endianess)) < sizeof (elf_symbol)) {
- continue;
- }
-
- sh_size = array_to_integer (shdr.sh_size, 4, endianess);
-#else
sym_strtab_size = array_to_integer (strtabhdr.sh_size, 8, endianess);
sym_strtab = (char *) object + array_to_integer (strtabhdr.sh_offset, 8, endianess);
}
sh_size = array_to_integer (shdr.sh_size, 8, endianess);
-#endif
for (j = 1; j < sh_size / sh_entsize; j++) {
+++ /dev/null
-/******************************************************************************
- * @file stdint.h
- *****************************************************************************/
-#ifndef _STDINT_H_INCLUDED
-#ifndef _STDINT_H
-#ifndef _STDINT_H_
-
-#define _STDINT_H_INCLUDED
-#define _STDINT_H
-#define _STDINT_H_
-
-#include <limits.h>
-
-/* Add all data types (even though we don't use them) as the project seems to fail to build on some systems. */
-typedef signed char int8_t;
-typedef unsigned char uint8_t;
-
-typedef signed short int16_t;
-typedef unsigned short uint16_t;
-
-#if INT_MAX > 32767
-typedef signed int int32_t;
-typedef unsigned int uint32_t;
-#else
-typedef signed long int32_t;
-typedef unsigned long uint32_t;
-#endif
-
-#ifndef _INT64_T
-#define _INT64_T
-#if defined (NO_LONG_LONG) || ((ULONG_MAX >> 16) >> 16) == 0xffffffff
-typedef signed long int64_t;
-#else
-typedef signed long long int64_t;
-#endif
-#endif /* _INT64_T */
-
-#ifndef _UINT64_T
-#define _UINT64_T
-#if defined (NO_LONG_LONG) || ((ULONG_MAX >> 16) >> 16) == 0xffffffff
-typedef unsigned long uint64_t;
-#else
-typedef unsigned long long uint64_t;
-#endif
-#endif /* _UINT64_T */
-
-#endif /* _STDINT_H_ */
-#endif /* _STDINT_H */
-#endif /* _STDINT_H_INCLUDED */