u-boot.lds.h 578 B

12345678910111213141516171819202122232425
  1. /*
  2. * Linker script helper macros
  3. *
  4. * Copyright (c) 2009 Analog Devices Inc.
  5. *
  6. * Licensed under the GPL-2 or later.
  7. */
  8. #ifndef __U_BOOT_LDS__
  9. #define __U_BOOT_LDS__
  10. /* See if the linker version is at least the specified version */
  11. #define LD_AT_LEAST(major, minor) \
  12. ((major > LD_MAJOR) || (major == LD_MAJOR && minor <= LD_MINOR))
  13. /*
  14. * Linker versions prior to 2.16 don't understand the builtin
  15. * functions SORT_BY_ALIGNMENT() and SORT_BY_NAME(), so disable these
  16. */
  17. #if !LD_AT_LEAST(2, 16)
  18. # define SORT_BY_ALIGNMENT(x) x
  19. # define SORT_BY_NAME(x) x
  20. #endif
  21. #endif