From c5d38e92010174f58d733274430ee91f340553b5 Mon Sep 17 00:00:00 2001 From: Sascha Hauer Date: Wed, 2 Oct 2019 16:29:25 +0200 Subject: 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 --- arch/sandbox/board/barebox.lds.S | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'arch/sandbox/board') diff --git a/arch/sandbox/board/barebox.lds.S b/arch/sandbox/board/barebox.lds.S index 862376dd0e..7a5a8eb1e7 100644 --- a/arch/sandbox/board/barebox.lds.S +++ b/arch/sandbox/board/barebox.lds.S @@ -3,11 +3,9 @@ SECTIONS { . = ALIGN(64); - .barebox_initcalls : { BAREBOX_INITCALLS } - .barebox_exitcalls : { BAREBOX_EXITCALLS } - .barebox_magicvar : { BAREBOX_MAGICVARS } - __barebox_cmd : { BAREBOX_CMDS } - __barebox_ratp_cmd : { BAREBOX_RATP_CMDS } + .barebox_rodata : { + RO_DATA_SECTION + } } INSERT BEFORE .rodata; -- cgit v1.2.3