Patchwork [U-Boot,02/19] x86: Remove unused portion of link script

login
register
mail settings
Submitter Simon Glass
Date April 18, 2013, 2:13 a.m.
Message ID <1366251228-19884-3-git-send-email-sjg@chromium.org>
Download mbox | patch
Permalink /patch/237393/
State Accepted, archived
Delegated to: Simon Glass
Headers show

Comments

Simon Glass - April 18, 2013, 2:13 a.m.
Since we don't have real-mode code now, we can remove this chunk of the link
script.

Signed-off-by: Simon Glass <sjg@chromium.org>
---
 arch/x86/cpu/u-boot.lds | 12 ------------
 1 file changed, 12 deletions(-)
Graeme Russ - April 18, 2013, 2:50 a.m.
Hi Simon,


On Thu, Apr 18, 2013 at 12:13 PM, Simon Glass <sjg@chromium.org> wrote:
>
> Since we don't have real-mode code now, we can remove this chunk of the
link
> script.
>
> Signed-off-by: Simon Glass <sjg@chromium.org>
> ---
>  arch/x86/cpu/u-boot.lds | 12 ------------
>  1 file changed, 12 deletions(-)
>
> diff --git a/arch/x86/cpu/u-boot.lds b/arch/x86/cpu/u-boot.lds
> index 2d6911a..b4ecd4b 100644
> --- a/arch/x86/cpu/u-boot.lds
> +++ b/arch/x86/cpu/u-boot.lds
> @@ -79,18 +79,6 @@ SECTIONS
>         /DISCARD/ : { *(.interp*) }
>         /DISCARD/ : { *(.gnu*) }
>
> -       /* 16bit realmode trampoline code */
> -       .realmode REALMODE_BASE : AT ( LOADADDR(.rel.dyn) +
SIZEOF(.rel.dyn) ) { KEEP(*(.realmode)) }
> -
> -       __realmode_start = LOADADDR(.realmode);
> -       __realmode_size = SIZEOF(.realmode);
> -
> -       /* 16bit BIOS emulation code (just enough to boot Linux) */
> -       .bios 0 : AT ( LOADADDR(.realmode) + SIZEOF(.realmode) ) {
KEEP(*(.bios)) }
> -
> -       __bios_start = LOADADDR(.bios);
> -       __bios_size = SIZEOF(.bios);
> -
>  #ifdef CONFIG_X86_RESET_VECTOR
>
>         /*
> --
> 1.8.2.1
>

Acked-by: Graeme Russ <graeme.russ@gmail.com>

Patch

diff --git a/arch/x86/cpu/u-boot.lds b/arch/x86/cpu/u-boot.lds
index 2d6911a..b4ecd4b 100644
--- a/arch/x86/cpu/u-boot.lds
+++ b/arch/x86/cpu/u-boot.lds
@@ -79,18 +79,6 @@  SECTIONS
 	/DISCARD/ : { *(.interp*) }
 	/DISCARD/ : { *(.gnu*) }
 
-	/* 16bit realmode trampoline code */
-	.realmode REALMODE_BASE : AT ( LOADADDR(.rel.dyn) + SIZEOF(.rel.dyn) ) { KEEP(*(.realmode)) }
-
-	__realmode_start = LOADADDR(.realmode);
-	__realmode_size = SIZEOF(.realmode);
-
-	/* 16bit BIOS emulation code (just enough to boot Linux) */
-	.bios 0 : AT ( LOADADDR(.realmode) + SIZEOF(.realmode) ) { KEEP(*(.bios)) }
-
-	__bios_start = LOADADDR(.bios);
-	__bios_size = SIZEOF(.bios);
-
 #ifdef CONFIG_X86_RESET_VECTOR
 
 	/*