relocs.h 710 B

123456789101112131415161718192021222324252627282930313233343536
  1. #ifndef RELOCS_H
  2. #define RELOCS_H
  3. #include <stdio.h>
  4. #include <stdarg.h>
  5. #include <stdlib.h>
  6. #include <stdint.h>
  7. #include <inttypes.h>
  8. #include <string.h>
  9. #include <errno.h>
  10. #include <unistd.h>
  11. #include <elf.h>
  12. #include <byteswap.h>
  13. #define USE_BSD
  14. #include <endian.h>
  15. #include <regex.h>
  16. #include <tools/le_byteshift.h>
  17. void die(char *fmt, ...);
  18. #define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))
  19. enum symtype {
  20. S_ABS,
  21. S_REL,
  22. S_SEG,
  23. S_LIN,
  24. S_NSYMTYPES
  25. };
  26. void process_32(FILE *fp, int use_real_mode, int as_text,
  27. int show_absolute_syms, int show_absolute_relocs);
  28. void process_64(FILE *fp, int use_real_mode, int as_text,
  29. int show_absolute_syms, int show_absolute_relocs);
  30. #endif /* RELOCS_H */