mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH 0/7] Cleanup linker scripts
@ 2019-10-02 14:44 Sascha Hauer
  2019-10-02 14:44 ` [PATCH 1/7] barebox.lds: Remove unnecessary braces Sascha Hauer
                   ` (6 more replies)
  0 siblings, 7 replies; 13+ messages in thread
From: Sascha Hauer @ 2019-10-02 14:44 UTC (permalink / raw)
  To: Barebox List

We use many arrays created by the linker. Each time a new one is added
we have to add it to the linker script of all architectures. This series
adds a common RO_DATA_SECTION to collect the arrays which is then used
in all linker scripts.

I don't like fiddling with linker scripts. It's dangerous and asking for
regressions. Some testing feedback especially for the !ARM architectures
is greatly appreciated.

Sascha

Sascha Hauer (7):
  barebox.lds: Remove unnecessary braces
  ppc: remove unused variables from linker scripts
  lds: Move start/end address variables into defines
  lds: create and use BAREBOX_PCI_FIXUP macro
  X86: lds: remove unnecessary alignments
  lds: remove more unnecessary alignments
  lds: Add and use RO_DATA_SECTION macro

 arch/arm/lib32/barebox.lds.S           | 44 ++--------------
 arch/arm/lib64/barebox.lds.S           | 46 ++---------------
 arch/mips/lib/barebox.lds.S            | 45 ++---------------
 arch/nios2/cpu/barebox.lds.S           | 29 ++---------
 arch/openrisc/cpu/barebox.lds.S        | 29 +----------
 arch/ppc/boards/pcm030/barebox.lds.S   | 28 +----------
 arch/ppc/mach-mpc85xx/barebox.lds.S    | 24 +--------
 arch/riscv/lib/barebox.lds.S           | 30 +++--------
 arch/sandbox/board/barebox.lds.S       | 26 ++--------
 arch/x86/lib/barebox.lds.S             | 43 +---------------
 arch/x86/mach-efi/elf_ia32_efi.lds.S   | 26 +---------
 arch/x86/mach-efi/elf_x86_64_efi.lds.S | 26 +---------
 include/asm-generic/barebox.lds.h      | 70 +++++++++++++++++++++-----
 13 files changed, 89 insertions(+), 377 deletions(-)

-- 
2.23.0


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2019-10-14 10:08 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-02 14:44 [PATCH 0/7] Cleanup linker scripts Sascha Hauer
2019-10-02 14:44 ` [PATCH 1/7] barebox.lds: Remove unnecessary braces Sascha Hauer
2019-10-02 14:44 ` [PATCH 2/7] ppc: remove unused variables from linker scripts Sascha Hauer
2019-10-02 14:44 ` [PATCH 3/7] lds: Move start/end address variables into defines Sascha Hauer
2019-10-02 18:46   ` Sam Ravnborg
2019-10-02 14:44 ` [PATCH 4/7] lds: create and use BAREBOX_PCI_FIXUP macro Sascha Hauer
2019-10-02 14:44 ` [PATCH 5/7] X86: lds: remove unnecessary alignments Sascha Hauer
2019-10-02 18:53   ` Sam Ravnborg
2019-10-14 10:05     ` [PATCH] command: Use array of pointers to commands Sascha Hauer
2019-10-14 10:08     ` [PATCH 5/7] X86: lds: remove unnecessary alignments Sascha Hauer
2019-10-02 14:44 ` [PATCH 6/7] lds: remove more " Sascha Hauer
2019-10-02 18:55   ` Sam Ravnborg
2019-10-02 14:44 ` [PATCH 7/7] lds: Add and use RO_DATA_SECTION macro Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox