diff mbox

[Xen-devel] xen/arm: Remove build option CONFIG_LOAD_ADDRESS

Message ID 1486149646-20602-1-git-send-email-julien.grall@arm.com
State New
Headers show

Commit Message

Julien Grall Feb. 3, 2017, 7:20 p.m. UTC
The build option CONFIG_LOAD_ADDRESS is defined but never plumbed
through.

Signed-off-by: Julien Grall <julien.gralL@arm.com>
---
 config/arm32.mk        | 2 --
 config/arm64.mk        | 2 --
 xen/arch/arm/Makefile  | 2 +-
 xen/arch/arm/xen.lds.S | 4 ++--
 4 files changed, 3 insertions(+), 7 deletions(-)

Comments

Stefano Stabellini Feb. 16, 2017, 1:30 a.m. UTC | #1
On Fri, 3 Feb 2017, Julien Grall wrote:
> The build option CONFIG_LOAD_ADDRESS is defined but never plumbed
> through.
> 
> Signed-off-by: Julien Grall <julien.gralL@arm.com>

Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>


> ---
>  config/arm32.mk        | 2 --
>  config/arm64.mk        | 2 --
>  xen/arch/arm/Makefile  | 2 +-
>  xen/arch/arm/xen.lds.S | 4 ++--
>  4 files changed, 3 insertions(+), 7 deletions(-)
> 
> diff --git a/config/arm32.mk b/config/arm32.mk
> index 001e214..f95228e 100644
> --- a/config/arm32.mk
> +++ b/config/arm32.mk
> @@ -12,6 +12,4 @@ CFLAGS += -marm
>  # Use only if calling $(LD) directly.
>  LDFLAGS_DIRECT += -EL
>  
> -CONFIG_LOAD_ADDRESS ?= 0x80000000
> -
>  IOEMU_CPU_ARCH ?= arm
> diff --git a/config/arm64.mk b/config/arm64.mk
> index 5a8e534..aa45772 100644
> --- a/config/arm64.mk
> +++ b/config/arm64.mk
> @@ -9,8 +9,6 @@ CFLAGS += #-marm -march= -mcpu= etc
>  # Use only if calling $(LD) directly.
>  LDFLAGS_DIRECT += -EL
>  
> -CONFIG_LOAD_ADDRESS ?= 0x80000000
> -
>  IOEMU_CPU_ARCH ?= aarch64
>  
>  EFI_DIR ?= /usr/lib64/efi
> diff --git a/xen/arch/arm/Makefile b/xen/arch/arm/Makefile
> index 91cb3f3..0ce94a8 100644
> --- a/xen/arch/arm/Makefile
> +++ b/xen/arch/arm/Makefile
> @@ -114,7 +114,7 @@ asm-offsets.s: $(TARGET_SUBARCH)/asm-offsets.c
>  	$(CC) $(filter-out -flto,$(CFLAGS)) -S -o $@ $<
>  
>  xen.lds: xen.lds.S
> -	$(CC) -P -E -Ui386 $(AFLAGS) -DXEN_PHYS_START=$(CONFIG_LOAD_ADDRESS) -o $@ $<
> +	$(CC) -P -E -Ui386 $(AFLAGS) -o $@ $<
>  	sed -e 's/xen\.lds\.o:/xen\.lds:/g' <.xen.lds.d >.xen.lds.d.new
>  	mv -f .xen.lds.d.new .xen.lds.d
>  
> diff --git a/xen/arch/arm/xen.lds.S b/xen/arch/arm/xen.lds.S
> index ddef595..94b7049 100644
> --- a/xen/arch/arm/xen.lds.S
> +++ b/xen/arch/arm/xen.lds.S
> @@ -21,7 +21,7 @@ OUTPUT_ARCH(FORMAT)
>  
>  PHDRS
>  {
> -  text PT_LOAD /* XXX should be AT ( XEN_PHYS_START ) */ ;
> +  text PT_LOAD ;
>  #if defined(BUILD_ID)
>    note PT_NOTE ;
>  #endif
> @@ -30,7 +30,7 @@ SECTIONS
>  {
>    . = XEN_VIRT_START;
>    _start = .;
> -  .text : /* XXX should be AT ( XEN_PHYS_START ) */ {
> +  .text : {
>          _stext = .;            /* Text section */
>         *(.text)
>         *(.text.cold)
> -- 
> 1.9.1
>
diff mbox

Patch

diff --git a/config/arm32.mk b/config/arm32.mk
index 001e214..f95228e 100644
--- a/config/arm32.mk
+++ b/config/arm32.mk
@@ -12,6 +12,4 @@  CFLAGS += -marm
 # Use only if calling $(LD) directly.
 LDFLAGS_DIRECT += -EL
 
-CONFIG_LOAD_ADDRESS ?= 0x80000000
-
 IOEMU_CPU_ARCH ?= arm
diff --git a/config/arm64.mk b/config/arm64.mk
index 5a8e534..aa45772 100644
--- a/config/arm64.mk
+++ b/config/arm64.mk
@@ -9,8 +9,6 @@  CFLAGS += #-marm -march= -mcpu= etc
 # Use only if calling $(LD) directly.
 LDFLAGS_DIRECT += -EL
 
-CONFIG_LOAD_ADDRESS ?= 0x80000000
-
 IOEMU_CPU_ARCH ?= aarch64
 
 EFI_DIR ?= /usr/lib64/efi
diff --git a/xen/arch/arm/Makefile b/xen/arch/arm/Makefile
index 91cb3f3..0ce94a8 100644
--- a/xen/arch/arm/Makefile
+++ b/xen/arch/arm/Makefile
@@ -114,7 +114,7 @@  asm-offsets.s: $(TARGET_SUBARCH)/asm-offsets.c
 	$(CC) $(filter-out -flto,$(CFLAGS)) -S -o $@ $<
 
 xen.lds: xen.lds.S
-	$(CC) -P -E -Ui386 $(AFLAGS) -DXEN_PHYS_START=$(CONFIG_LOAD_ADDRESS) -o $@ $<
+	$(CC) -P -E -Ui386 $(AFLAGS) -o $@ $<
 	sed -e 's/xen\.lds\.o:/xen\.lds:/g' <.xen.lds.d >.xen.lds.d.new
 	mv -f .xen.lds.d.new .xen.lds.d
 
diff --git a/xen/arch/arm/xen.lds.S b/xen/arch/arm/xen.lds.S
index ddef595..94b7049 100644
--- a/xen/arch/arm/xen.lds.S
+++ b/xen/arch/arm/xen.lds.S
@@ -21,7 +21,7 @@  OUTPUT_ARCH(FORMAT)
 
 PHDRS
 {
-  text PT_LOAD /* XXX should be AT ( XEN_PHYS_START ) */ ;
+  text PT_LOAD ;
 #if defined(BUILD_ID)
   note PT_NOTE ;
 #endif
@@ -30,7 +30,7 @@  SECTIONS
 {
   . = XEN_VIRT_START;
   _start = .;
-  .text : /* XXX should be AT ( XEN_PHYS_START ) */ {
+  .text : {
         _stext = .;            /* Text section */
        *(.text)
        *(.text.cold)