[U-Boot] [PATCH] armv7: fix linker file for newer ld support

Steve Sakoman sakoman at gmail.com
Tue Nov 2 05:05:48 CET 2010


On Mon, Nov 1, 2010 at 8:23 PM, Alexander Holler <holler at ahsoftware.de> wrote:
> Signed-off-by: Alexander Holler <holler at ahsoftware.de>
> ---
>  arch/arm/cpu/armv7/u-boot.lds |   15 ++++++++-------
>  1 files changed, 8 insertions(+), 7 deletions(-)
>
> diff --git a/arch/arm/cpu/armv7/u-boot.lds b/arch/arm/cpu/armv7/u-boot.lds
> index 88a0fec..34e0a79 100644
> --- a/arch/arm/cpu/armv7/u-boot.lds
> +++ b/arch/arm/cpu/armv7/u-boot.lds
> @@ -54,13 +54,6 @@ SECTIONS
>                *(.data.rel.ro)
>        }
>        . = ALIGN(4);
> -       __rel_dyn_start = .;
> -       .rel.dyn : { *(.rel.dyn) }
> -       __rel_dyn_end = .;
> -
> -       __dynsym_start = .;
> -       .dynsym : { *(.dynsym) }
> -
>        __got_start = .;
>        . = ALIGN(4);
>        .got : { *(.got) }
> @@ -74,4 +67,12 @@ SECTIONS
>        __bss_start = .;
>        .bss : { *(.bss) }
>        _end = .;
> +
> +       . = ALIGN(4);
> +       __rel_dyn_start = .;
> +       .rel.dyn : { *(.rel*) }
> +       __rel_dyn_end = .;
> +
> +       __dynsym_start = .;
> +       .dynsym : { *(.dynsym) }
>  }
> --

I've been using gcc 4.3.3, so I haven't run into the issue that this
patch is attempting to fix.

I tested this patch using gcc 4.3.3, and while it produces a usable
image, it causes the size of the image to grow from 227K to 433K!

So perhaps we need a patch that uses a more restrictive wildcard.

Steve


More information about the U-Boot mailing list