mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Sascha Hauer <s.hauer@pengutronix.de>
To: Barebox List <barebox@lists.infradead.org>
Subject: [PATCH] treewide: drop PRE_IMAGE linker script hook
Date: Thu,  1 Oct 2026 08:40:20 +0200	[thread overview]
Message-ID: <20261001064020.56348-1-s.hauer@pengutronix.de> (raw)

PRE_IMAGE let a SoC put data in front of the image, e.g. a BootROM
header at a fixed offset. Its last user went away with commit
0900665e01 ("ARM: remove ep93xx"), and since then it always expands
to nothing. Remove the empty default and its users in the ARM PBL
and MIPS linker scripts.

With PRE_IMAGE gone, __image_start and _text are both at the start
of the ARM PBL image.

Assisted-by: Claude:claude-opus-5-5
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
---
 arch/arm/lib/pbl.lds.S            | 2 --
 arch/mips/lib/barebox.lds.S       | 2 --
 arch/mips/lib/pbl.lds.S           | 2 --
 include/asm-generic/barebox.lds.h | 4 ----
 4 files changed, 10 deletions(-)

diff --git a/arch/arm/lib/pbl.lds.S b/arch/arm/lib/pbl.lds.S
index 72aca83495..c4abfc5989 100644
--- a/arch/arm/lib/pbl.lds.S
+++ b/arch/arm/lib/pbl.lds.S
@@ -40,8 +40,6 @@ SECTIONS
 
 	.image_start : { *(.__image_start) }
 
-	PRE_IMAGE
-
 	. = ALIGN(4);
 	._text : { *(._text) }
 	.text      :
diff --git a/arch/mips/lib/barebox.lds.S b/arch/mips/lib/barebox.lds.S
index bbb9b11499..7dda8b80f1 100644
--- a/arch/mips/lib/barebox.lds.S
+++ b/arch/mips/lib/barebox.lds.S
@@ -26,8 +26,6 @@ SECTIONS
 	}
 	BAREBOX_BARE_INIT_SIZE
 
-	PRE_IMAGE
-
 	. = ALIGN(4);
 	__start_rodata = .;
 	.rodata : {
diff --git a/arch/mips/lib/pbl.lds.S b/arch/mips/lib/pbl.lds.S
index cca980c35f..b5c73999dd 100644
--- a/arch/mips/lib/pbl.lds.S
+++ b/arch/mips/lib/pbl.lds.S
@@ -15,8 +15,6 @@ SECTIONS
 {
 	. = BASE;
 
-	PRE_IMAGE
-
 	. = ALIGN(4);
 	.text      :
 	{
diff --git a/include/asm-generic/barebox.lds.h b/include/asm-generic/barebox.lds.h
index c672894ad5..7dafe10a8e 100644
--- a/include/asm-generic/barebox.lds.h
+++ b/include/asm-generic/barebox.lds.h
@@ -8,10 +8,6 @@
 #define STRUCT_ALIGNMENT 32
 #define STRUCT_ALIGN() . = ALIGN(STRUCT_ALIGNMENT)
 
-#ifndef PRE_IMAGE
-#define PRE_IMAGE
-#endif
-
 #define BAREBOX_INITCALLS			\
 	STRUCT_ALIGN();				\
 	__barebox_initcalls_start = .;		\
-- 
2.47.3




             reply	other threads:[~2026-10-01  6:42 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-01  6:40 Sascha Hauer [this message]
2026-10-01 20:21 ` Sascha Hauer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261001064020.56348-1-s.hauer@pengutronix.de \
    --to=s.hauer@pengutronix.de \
    --cc=barebox@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox