summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2019-10-02 16:29:25 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2019-10-14 12:09:50 +0200
commitc5d38e92010174f58d733274430ee91f340553b5 (patch)
tree0292e40df43b2e59bd910c11ae68227a79b3d5f8 /include
parent1bb55ab2d12ebf9be0f9999c3865a658ba928a9e (diff)
downloadbarebox-c5d38e92010174f58d733274430ee91f340553b5.tar.gz
barebox-c5d38e92010174f58d733274430ee91f340553b5.tar.xz
lds: Add and use RO_DATA_SECTION macro
We have many different pointer arrays which we put into linker sections and each time there's one added we have to adjust all linker scripts. This adds a common RO_DATA_SECTION define and uses it for all architectures. This makes it easier to add a new linker array. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include')
-rw-r--r--include/asm-generic/barebox.lds.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/asm-generic/barebox.lds.h b/include/asm-generic/barebox.lds.h
index e91fb7ceb0..8e8ae183db 100644
--- a/include/asm-generic/barebox.lds.h
+++ b/include/asm-generic/barebox.lds.h
@@ -98,6 +98,17 @@
#define BAREBOX_PCI_FIXUP
#endif
+#define RO_DATA_SECTION \
+ BAREBOX_INITCALLS \
+ BAREBOX_EXITCALLS \
+ BAREBOX_CMDS \
+ BAREBOX_RATP_CMDS \
+ BAREBOX_SYMS \
+ BAREBOX_MAGICVARS \
+ BAREBOX_CLK_TABLE \
+ BAREBOX_DTB \
+ BAREBOX_PCI_FIXUP
+
#if defined(CONFIG_ARCH_BAREBOX_MAX_BARE_INIT_SIZE) && \
CONFIG_ARCH_BAREBOX_MAX_BARE_INIT_SIZE < CONFIG_BAREBOX_MAX_BARE_INIT_SIZE
#define MAX_BARE_INIT_SIZE CONFIG_ARCH_BAREBOX_MAX_BARE_INIT_SIZE