diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2019-10-02 16:29:25 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2019-10-14 12:09:50 +0200 |
commit | c5d38e92010174f58d733274430ee91f340553b5 (patch) | |
tree | 0292e40df43b2e59bd910c11ae68227a79b3d5f8 /arch/mips/lib/barebox.lds.S | |
parent | 1bb55ab2d12ebf9be0f9999c3865a658ba928a9e (diff) | |
download | barebox-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/mips/lib/barebox.lds.S')
-rw-r--r-- | arch/mips/lib/barebox.lds.S | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/arch/mips/lib/barebox.lds.S b/arch/mips/lib/barebox.lds.S index f9a0b44937..e96c3bf6e2 100644 --- a/arch/mips/lib/barebox.lds.S +++ b/arch/mips/lib/barebox.lds.S @@ -30,7 +30,10 @@ SECTIONS PRE_IMAGE . = ALIGN(4); - .rodata : { *(.rodata*) } + .rodata : { + *(.rodata*) + RO_DATA_SECTION + } _etext = .; /* End of text and rodata section */ _sdata = .; @@ -40,17 +43,6 @@ SECTIONS .barebox_imd : { BAREBOX_IMD } - . = .; - .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 } - .pci_fixup : { BAREBOX_PCI_FIXUP } - .oftables : { BAREBOX_CLK_TABLE } - .dtb : { BAREBOX_DTB } - _edata = .; .image_end : { *(.__image_end) } |