summaryrefslogtreecommitdiffstats
path: root/arch/ppc/boards
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 /arch/ppc/boards
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 'arch/ppc/boards')
-rw-r--r--arch/ppc/boards/pcm030/barebox.lds.S9
1 files changed, 1 insertions, 8 deletions
diff --git a/arch/ppc/boards/pcm030/barebox.lds.S b/arch/ppc/boards/pcm030/barebox.lds.S
index 73e4bde434..6c91ed6256 100644
--- a/arch/ppc/boards/pcm030/barebox.lds.S
+++ b/arch/ppc/boards/pcm030/barebox.lds.S
@@ -38,6 +38,7 @@ SECTIONS
*(.rodata*)
*(.rodata1*)
*(.rodata.str1.4)
+ RO_DATA_SECTION
}
/* Read-only sections, merged into text segment: */
@@ -99,14 +100,6 @@ SECTIONS
_edata = .;
PROVIDE (edata = .);
- . = .;
- .barebox_cmd : { BAREBOX_CMDS }
- .barebox_ratp_cmd : { BAREBOX_RATP_CMDS }
- .barebox_magicvar : { BAREBOX_MAGICVARS }
- .barebox_initcalls : { BAREBOX_INITCALLS }
- .barebox_exitcalls : { BAREBOX_EXITCALLS }
- __usymtab : { BAREBOX_SYMS }
-
__start___ex_table = .;
__ex_table : { *(__ex_table) }
__stop___ex_table = .;