All of lore.kernel.org
 help / color / mirror / Atom feed
From: Darius Augulis <augulis.darius@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [RFC] arm926ejs: fix linker file for newer ld support
Date: Sun, 31 Oct 2010 20:35:45 +0200	[thread overview]
Message-ID: <4CCDB701.8090700@gmail.com> (raw)
In-Reply-To: <1288547025-16877-1-git-send-email-albert.aribaud@free.fr>

Hi Albert,

On 10/31/2010 07:43 PM, Albert Aribaud wrote:
> This is an RFC so far. I'd like people who have issues with newer linkers to test this patch.
>
> It is intended for arm926ejs, so you might have to 'port' it to your own ARM architecture.

Thanks! It works on arm1176/mini6410 and solves problem of missing commands.

tested with gcc 4.4.5 + binutils 2.20.1 toolchain from Buildroot.

But it's strange, because I done the same test of declaring variable in 
start.s:

.globl cmd_start
cmd_start:
         .word __u_boot_cmd_start

Then disassembled elf shows it's value:

57e00048 <cmd_start>:
57e00048:       00000000        .word   0x00000000

Commands are there and somehow working, but at least it's very strange.

Darius.

>
> It has been roughly tested with ELDK 4.2 and CodeSourcery arm-2010q1-202; both seem to run rather properly (no NAND issue at startup, 'help' and commands seem to be there).
>
> Amicalement,
> Albert.
>
> Signed-off-by: Albert Aribaud<albert.aribaud@free.fr>
> ---
>   arch/arm/cpu/arm926ejs/u-boot.lds |   18 +++++++++---------
>   1 files changed, 9 insertions(+), 9 deletions(-)
>
> diff --git a/arch/arm/cpu/arm926ejs/u-boot.lds b/arch/arm/cpu/arm926ejs/u-boot.lds
> index 72f45f8..4e42543 100644
> --- a/arch/arm/cpu/arm926ejs/u-boot.lds
> +++ b/arch/arm/cpu/arm926ejs/u-boot.lds
> @@ -45,15 +45,6 @@ SECTIONS
>
>   	. = ALIGN(4);
>
> -	__rel_dyn_start = .;
> -	.rel.dyn : { *(.rel.dyn) }
> -	__rel_dyn_end = .;
> -
> -	__dynsym_start = .;
> -	.dynsym : { *(.dynsym) }
> -
> -	. = ALIGN(4);
> -
>   	. = .;
>   	__u_boot_cmd_start = .;
>   	.u_boot_cmd : { *(.u_boot_cmd) }
> @@ -64,6 +55,15 @@ SECTIONS
>   	.bss (NOLOAD) : { *(.bss) . = ALIGN(4); }
>   	_end = .;
>
> +	__rel_dyn_start = .;
> +	.rel.dyn : { *(.rel*) }
> +	__rel_dyn_end = .;
> +
> +	__dynsym_start = .;
> +	.dynsym : { *(.dynsym) }
> +
> +	. = ALIGN(4);
> +
>   	/DISCARD/ : { *(.dynstr*) }
>   	/DISCARD/ : { *(.dynamic*) }
>   	/DISCARD/ : { *(.plt*) }

  parent reply	other threads:[~2010-10-31 18:35 UTC|newest]

Thread overview: 62+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-10-31 17:43 [U-Boot] [RFC] arm926ejs: fix linker file for newer ld support Albert Aribaud
2010-10-31 18:11 ` Alexander Holler
2010-10-31 18:12 ` Wolfgang Denk
2010-10-31 18:31   ` Albert ARIBAUD
2010-10-31 18:36     ` Wolfgang Denk
2010-10-31 18:38   ` Alexander Holler
2010-10-31 19:01     ` Wolfgang Denk
2010-10-31 19:07       ` Albert ARIBAUD
2010-10-31 19:22         ` Wolfgang Denk
2010-10-31 19:40           ` Albert ARIBAUD
2010-10-31 19:59             ` Wolfgang Denk
2010-10-31 20:23               ` Albert ARIBAUD
2010-10-31 20:32                 ` Wolfgang Denk
2010-10-31 21:20                 ` [U-Boot] [RFC] arm926ejs: fix jump to RAM nand_boot Albert Aribaud
2010-10-31 21:51                   ` Wolfgang Denk
2010-10-31 21:55                     ` Albert ARIBAUD
2010-10-31 22:28                   ` Alexander Holler
2010-10-31 23:04                     ` Albert ARIBAUD
2010-11-01  5:13                       ` sughosh ganu
2010-11-01  8:12                         ` Albert ARIBAUD
2010-11-01  9:13                           ` Wolfgang Denk
2010-11-01  9:15                       ` Wolfgang Denk
2010-11-01 17:03                         ` Albert ARIBAUD
2010-11-01 19:23                           ` Wolfgang Denk
2010-11-01 19:30                             ` Albert ARIBAUD
2010-11-01 19:35                               ` Wolfgang Denk
2010-11-01 20:04                                 ` Albert ARIBAUD
2010-11-01 19:44                               ` Graeme Russ
2010-11-01 19:53                                 ` Albert ARIBAUD
2010-11-01 20:01                                   ` Wolfgang Denk
2010-11-01 20:19                                 ` Scott Wood
2010-11-02  6:29                             ` Heiko Schocher
2010-11-02  6:54                               ` Albert ARIBAUD
2010-11-02  7:10                                 ` Heiko Schocher
2010-11-02  8:33                               ` Wolfgang Denk
2010-11-02  8:55                                 ` Heiko Schocher
2010-11-02  9:17                                   ` Stefan Roese
2010-11-09 19:19                                     ` Scott Wood
2010-11-02  9:21                                   ` Sughosh Ganu
2010-11-02  8:57                               ` Reinhard Meyer
2010-11-02  9:11                                 ` Albert ARIBAUD
2010-11-02  9:34                                   ` Reinhard Meyer
2010-11-02  9:42                                     ` Albert ARIBAUD
2010-11-03  6:37                                     ` V, Aneesh
2010-11-03  8:02                                       ` Wolfgang Denk
2010-11-03 10:39                                         ` V, Aneesh
2010-11-03 11:27                                           ` Wolfgang Denk
2010-11-03 12:03                                             ` V, Aneesh
2010-11-03 12:08                                               ` Albert ARIBAUD
2010-11-03 12:20                                                 ` V, Aneesh
2010-11-03 13:00                                               ` Wolfgang Denk
2010-11-03 14:07                                                 ` V, Aneesh
2010-11-03 18:25                                                   ` Wolfgang Denk
2010-11-02  9:38                                 ` Wolfgang Denk
2010-11-02  9:47                                   ` Albert ARIBAUD
2010-11-02  9:56                                     ` Sughosh Ganu
2010-11-02 11:16                                       ` Albert ARIBAUD
2010-11-02 11:32                                         ` Sughosh Ganu
2010-11-02 13:28                                     ` Wolfgang Denk
2010-10-31 19:01     ` [U-Boot] [RFC] arm926ejs: fix linker file for newer ld support Albert ARIBAUD
2010-10-31 18:35 ` Darius Augulis [this message]
2010-10-31 18:53   ` Albert ARIBAUD

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=4CCDB701.8090700@gmail.com \
    --to=augulis.darius@gmail.com \
    --cc=u-boot@lists.denx.de \
    /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 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.