All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Kconfig.boot: Make 0x0 the default SYS_TEXT_BASE for POSITION_INDEPENDENT
@ 2021-07-09 14:39 Tom Rini
  2021-07-09 15:02 ` Mark Kettenis
  2021-07-23 12:34 ` Tom Rini
  0 siblings, 2 replies; 4+ messages in thread
From: Tom Rini @ 2021-07-09 14:39 UTC (permalink / raw)
  To: u-boot

When we build U-Boot with POSITION_INDEPENDENT we must have
SYS_TEXT_BASE be set to zero.  Make this the default in that case.

Signed-off-by: Tom Rini <trini@konsulko.com>
---
 common/Kconfig.boot | 1 +
 1 file changed, 1 insertion(+)

diff --git a/common/Kconfig.boot b/common/Kconfig.boot
index 89a3161f1faa..f078743f06ed 100644
--- a/common/Kconfig.boot
+++ b/common/Kconfig.boot
@@ -358,6 +358,7 @@ config HAVE_SYS_TEXT_BASE
 
 config SYS_TEXT_BASE
 	depends on HAVE_SYS_TEXT_BASE
+	default 0x0 if POSITION_INDEPENDENT
 	default 0x80800000 if ARCH_OMAP2PLUS || ARCH_K3
 	default 0x4a000000 if ARCH_SUNXI && !MACH_SUN9I && !MACH_SUN8I_V3S
 	default 0x2a000000 if ARCH_SUNXI && MACH_SUN9I
-- 
2.17.1


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

* Re: [PATCH] Kconfig.boot: Make 0x0 the default SYS_TEXT_BASE for POSITION_INDEPENDENT
  2021-07-09 14:39 [PATCH] Kconfig.boot: Make 0x0 the default SYS_TEXT_BASE for POSITION_INDEPENDENT Tom Rini
@ 2021-07-09 15:02 ` Mark Kettenis
  2021-07-09 15:29   ` Tom Rini
  2021-07-23 12:34 ` Tom Rini
  1 sibling, 1 reply; 4+ messages in thread
From: Mark Kettenis @ 2021-07-09 15:02 UTC (permalink / raw)
  To: Tom Rini; +Cc: u-boot

> From: Tom Rini <trini@konsulko.com>
> Date: Fri,  9 Jul 2021 10:39:21 -0400
> 
> When we build U-Boot with POSITION_INDEPENDENT we must have
> SYS_TEXT_BASE be set to zero.  Make this the default in that case.

Makes sense.  I had to set this for the (still in progress) Apple M1
support.  So:

Reviewed-by: Mark Kettenis <kettenis@openbsd.org>


P.S. Any chance of picking up the first diff I sent a while ago that
     was acked by Marc Zyngier?

     https://patchwork.ozlabs.org/project/uboot/patch/20210210191456.25644-1-kettenis@openbsd.org/


> Signed-off-by: Tom Rini <trini@konsulko.com>
> ---
>  common/Kconfig.boot | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/common/Kconfig.boot b/common/Kconfig.boot
> index 89a3161f1faa..f078743f06ed 100644
> --- a/common/Kconfig.boot
> +++ b/common/Kconfig.boot
> @@ -358,6 +358,7 @@ config HAVE_SYS_TEXT_BASE
>  
>  config SYS_TEXT_BASE
>  	depends on HAVE_SYS_TEXT_BASE
> +	default 0x0 if POSITION_INDEPENDENT
>  	default 0x80800000 if ARCH_OMAP2PLUS || ARCH_K3
>  	default 0x4a000000 if ARCH_SUNXI && !MACH_SUN9I && !MACH_SUN8I_V3S
>  	default 0x2a000000 if ARCH_SUNXI && MACH_SUN9I
> -- 
> 2.17.1
> 
> 

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

* Re: [PATCH] Kconfig.boot: Make 0x0 the default SYS_TEXT_BASE for POSITION_INDEPENDENT
  2021-07-09 15:02 ` Mark Kettenis
@ 2021-07-09 15:29   ` Tom Rini
  0 siblings, 0 replies; 4+ messages in thread
From: Tom Rini @ 2021-07-09 15:29 UTC (permalink / raw)
  To: Mark Kettenis; +Cc: u-boot

[-- Attachment #1: Type: text/plain, Size: 774 bytes --]

On Fri, Jul 09, 2021 at 05:02:19PM +0200, Mark Kettenis wrote:
> > From: Tom Rini <trini@konsulko.com>
> > Date: Fri,  9 Jul 2021 10:39:21 -0400
> > 
> > When we build U-Boot with POSITION_INDEPENDENT we must have
> > SYS_TEXT_BASE be set to zero.  Make this the default in that case.
> 
> Makes sense.  I had to set this for the (still in progress) Apple M1
> support.  So:
> 
> Reviewed-by: Mark Kettenis <kettenis@openbsd.org>
> 
> 
> P.S. Any chance of picking up the first diff I sent a while ago that
>      was acked by Marc Zyngier?
> 
>      https://patchwork.ozlabs.org/project/uboot/patch/20210210191456.25644-1-kettenis@openbsd.org/

Ah that, yeah, I need to get a PR going of general ARM changes, I should
do that today, thanks.

-- 
Tom

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 659 bytes --]

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

* Re: [PATCH] Kconfig.boot: Make 0x0 the default SYS_TEXT_BASE for POSITION_INDEPENDENT
  2021-07-09 14:39 [PATCH] Kconfig.boot: Make 0x0 the default SYS_TEXT_BASE for POSITION_INDEPENDENT Tom Rini
  2021-07-09 15:02 ` Mark Kettenis
@ 2021-07-23 12:34 ` Tom Rini
  1 sibling, 0 replies; 4+ messages in thread
From: Tom Rini @ 2021-07-23 12:34 UTC (permalink / raw)
  To: u-boot

[-- Attachment #1: Type: text/plain, Size: 348 bytes --]

On Fri, Jul 09, 2021 at 10:39:21AM -0400, Tom Rini wrote:

> When we build U-Boot with POSITION_INDEPENDENT we must have
> SYS_TEXT_BASE be set to zero.  Make this the default in that case.
> 
> Signed-off-by: Tom Rini <trini@konsulko.com>
> Reviewed-by: Mark Kettenis <kettenis@openbsd.org>

Applied to u-boot/master, thanks!

-- 
Tom

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 659 bytes --]

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

end of thread, other threads:[~2021-07-23 12:35 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-09 14:39 [PATCH] Kconfig.boot: Make 0x0 the default SYS_TEXT_BASE for POSITION_INDEPENDENT Tom Rini
2021-07-09 15:02 ` Mark Kettenis
2021-07-09 15:29   ` Tom Rini
2021-07-23 12:34 ` Tom Rini

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.