pe-arm.c 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. /* BFD back-end for ARM PECOFF files.
  2. Copyright (C) 1995-2015 Free Software Foundation, Inc.
  3. This file is part of BFD, the Binary File Descriptor library.
  4. This program is free software; you can redistribute it and/or modify
  5. it under the terms of the GNU General Public License as published by
  6. the Free Software Foundation; either version 3 of the License, or
  7. (at your option) any later version.
  8. This program is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. GNU General Public License for more details.
  12. You should have received a copy of the GNU General Public License
  13. along with this program; if not, write to the Free Software
  14. Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston,
  15. MA 02110-1301, USA. */
  16. /* Do this before including bfd.h, so we prototype the right functions. */
  17. #ifndef bfd_arm_allocate_interworking_sections
  18. #define bfd_arm_allocate_interworking_sections \
  19. bfd_armpe_allocate_interworking_sections
  20. #define bfd_arm_get_bfd_for_interworking \
  21. bfd_armpe_get_bfd_for_interworking
  22. #define bfd_arm_process_before_allocation \
  23. bfd_armpe_process_before_allocation
  24. #endif
  25. #include "sysdep.h"
  26. #include "bfd.h"
  27. #ifndef TARGET_LITTLE_SYM
  28. #define TARGET_LITTLE_SYM arm_pe_le_vec
  29. #define TARGET_LITTLE_NAME "pe-arm-little"
  30. #define TARGET_BIG_SYM arm_pe_be_vec
  31. #define TARGET_BIG_NAME "pe-arm-big"
  32. #endif
  33. #define COFF_WITH_PE
  34. #define PCRELOFFSET TRUE
  35. #define COFF_LONG_SECTION_NAMES
  36. #define COFF_SECTION_ALIGNMENT_ENTRIES \
  37. { COFF_SECTION_NAME_EXACT_MATCH (".bss"), \
  38. COFF_ALIGNMENT_FIELD_EMPTY, COFF_ALIGNMENT_FIELD_EMPTY, 2 }, \
  39. { COFF_SECTION_NAME_EXACT_MATCH (".data"), \
  40. COFF_ALIGNMENT_FIELD_EMPTY, COFF_ALIGNMENT_FIELD_EMPTY, 2 }, \
  41. { COFF_SECTION_NAME_EXACT_MATCH (".rdata"), \
  42. COFF_ALIGNMENT_FIELD_EMPTY, COFF_ALIGNMENT_FIELD_EMPTY, 2 }, \
  43. { COFF_SECTION_NAME_EXACT_MATCH (".text"), \
  44. COFF_ALIGNMENT_FIELD_EMPTY, COFF_ALIGNMENT_FIELD_EMPTY, 2 }, \
  45. { COFF_SECTION_NAME_PARTIAL_MATCH (".idata"), \
  46. COFF_ALIGNMENT_FIELD_EMPTY, COFF_ALIGNMENT_FIELD_EMPTY, 2 }, \
  47. { COFF_SECTION_NAME_EXACT_MATCH (".pdata"), \
  48. COFF_ALIGNMENT_FIELD_EMPTY, COFF_ALIGNMENT_FIELD_EMPTY, 2 }, \
  49. { COFF_SECTION_NAME_PARTIAL_MATCH (".debug"), \
  50. COFF_ALIGNMENT_FIELD_EMPTY, COFF_ALIGNMENT_FIELD_EMPTY, 0 }, \
  51. { COFF_SECTION_NAME_PARTIAL_MATCH (".zdebug"), \
  52. COFF_ALIGNMENT_FIELD_EMPTY, COFF_ALIGNMENT_FIELD_EMPTY, 0 }, \
  53. { COFF_SECTION_NAME_PARTIAL_MATCH (".gnu.linkonce.wi."), \
  54. COFF_ALIGNMENT_FIELD_EMPTY, COFF_ALIGNMENT_FIELD_EMPTY, 0 }
  55. #include "coff-arm.c"