elf.h 829 B

123456789101112131415161718192021222324252627282930
  1. /*
  2. * Copyright (C) 2006 Atmark Techno, Inc.
  3. *
  4. * This file is subject to the terms and conditions of the GNU General Public
  5. * License. See the file "COPYING" in the main directory of this archive
  6. * for more details.
  7. */
  8. #ifndef _ASM_MICROBLAZE_ELF_H
  9. #define _ASM_MICROBLAZE_ELF_H
  10. /*
  11. * Note there is no "official" ELF designation for Microblaze.
  12. * I've snaffled the value from the microblaze binutils source code
  13. * /binutils/microblaze/include/elf/microblaze.h
  14. */
  15. #define EM_XILINX_MICROBLAZE 0xbaab
  16. #define ELF_ARCH EM_XILINX_MICROBLAZE
  17. /*
  18. * This is used to ensure we don't load something for the wrong architecture.
  19. */
  20. #define elf_check_arch(x) ((x)->e_machine == EM_XILINX_MICROBLAZE)
  21. /*
  22. * These are used to set parameters in the core dumps.
  23. */
  24. #define ELF_CLASS ELFCLASS32
  25. #endif /* _ASM_MICROBLAZE_ELF_H */