]>
Commit | Line | Data |
---|---|---|
6ac9f479 MF |
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 | ||
9 | #ifndef __U_BOOT_LDS__ | |
10 | #define __U_BOOT_LDS__ | |
11 | ||
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)) | |
15 | ||
16 | /* | |
17 | * Linker versions prior to 2.16 don't understand the builtin | |
18 | * functions SORT_BY_ALIGNMENT() and SORT_BY_NAME(), so disable these | |
19 | */ | |
20 | #if !LD_AT_LEAST(2, 16) | |
21 | # define SORT_BY_ALIGNMENT(x) x | |
22 | # define SORT_BY_NAME(x) x | |
23 | #endif | |
24 | ||
25 | #endif |