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