fsl_incbin.S 862 B

12345678910111213141516171819202122232425262728293031323334353637
  1. ;/*
  2. ; * Copyright 2020 NXP
  3. ; *
  4. ; * All rights reserved.
  5. ; *
  6. ; * SPDX-License-Identifier: BSD-3-Clause
  7. ; */
  8. #if defined(__CC_ARM)
  9. AREA core1_code, DATA, READONLY, PREINIT_ARRAY, ALIGN=3
  10. EXPORT core1_image_start
  11. EXPORT core1_image_end
  12. core1_image_start
  13. INCBIN core1_image.bin
  14. core1_image_end
  15. END
  16. #elif defined(__GNUC__) || defined(__ARMCC_VERSION)
  17. .section .core1_code, "ax" @progbits @preinit_array
  18. .global core1_image_start
  19. .type core1_image_start, %object
  20. .align 4
  21. core1_image_start:
  22. .incbin "core1_image.bin"
  23. .global core1_image_end
  24. .type core1_image_end, %object
  25. core1_image_end:
  26. .global core1_image_size
  27. .type core1_image_size, %object
  28. .align 4
  29. core1_image_size:
  30. .int core1_image_end - core1_image_start
  31. .end
  32. #endif