diff mbox

[U-Boot,2/3] tx25: fix linker file for newer ld support

Message ID 1288642623-10783-2-git-send-email-albert.aribaud@free.fr
State Superseded
Headers show

Commit Message

Albert ARIBAUD Nov. 1, 2010, 8:17 p.m. UTC
From: Wolfgang Denk <wd@denx.de>

older ld emitted all ELF relocations in input sections named
.rel.dyn, whereas newer ld uses names of the form .rel*. The
linker script only collected .rel.dyn input sections. Fit it
to collect all .rel* input sections.

Signed-off-by: Albert Aribaud <albert.aribaud@free.fr>
---
 nand_spl/board/karo/tx25/u-boot.lds |   13 +++++++++----
 1 files changed, 9 insertions(+), 4 deletions(-)

Comments

Wolfgang Denk Nov. 1, 2010, 10:11 p.m. UTC | #1
Dear Albert Aribaud,

In message <1288642623-10783-2-git-send-email-albert.aribaud@free.fr> you wrote:
> From: Wolfgang Denk <wd@denx.de>
> 
> older ld emitted all ELF relocations in input sections named
> .rel.dyn, whereas newer ld uses names of the form .rel*. The
> linker script only collected .rel.dyn input sections. Fit it
> to collect all .rel* input sections.
> 
> Signed-off-by: Albert Aribaud <albert.aribaud@free.fr>
> ---
>  nand_spl/board/karo/tx25/u-boot.lds |   13 +++++++++----
>  1 files changed, 9 insertions(+), 4 deletions(-)
> 
> diff --git a/nand_spl/board/karo/tx25/u-boot.lds b/nand_spl/board/karo/tx25/u-boot.lds
> index 5f95c87..f3cb8dd 100644
> --- a/nand_spl/board/karo/tx25/u-boot.lds
> +++ b/nand_spl/board/karo/tx25/u-boot.lds
> @@ -54,10 +54,6 @@ SECTIONS
>  	}
>  
>  	. = ALIGN(4);
> -	__rel_dyn_start = .;
> -	__rel_dyn_end = .;
> -	__dynsym_start = .;
> -
>  	__got_start = .;
>  	. = ALIGN(4);
>  	.got : { *(.got) }

Do we still need this GOT entry?

Best regards,

Wolfgang Denk
diff mbox

Patch

diff --git a/nand_spl/board/karo/tx25/u-boot.lds b/nand_spl/board/karo/tx25/u-boot.lds
index 5f95c87..f3cb8dd 100644
--- a/nand_spl/board/karo/tx25/u-boot.lds
+++ b/nand_spl/board/karo/tx25/u-boot.lds
@@ -54,10 +54,6 @@  SECTIONS
 	}
 
 	. = ALIGN(4);
-	__rel_dyn_start = .;
-	__rel_dyn_end = .;
-	__dynsym_start = .;
-
 	__got_start = .;
 	. = ALIGN(4);
 	.got : { *(.got) }
@@ -72,6 +68,15 @@  SECTIONS
 	__bss_start = .;
 	.bss : { *(.bss) }
 	_end = .;
+
+	. = ALIGN(4);
+	__rel_dyn_start = .;
+	.rel.dyn : { *(.rel*) }
+	__rel_dyn_end = .;
+
+	__dynsym_start = .;
+	.dynsym : { *(.dynsym) }
+
 	/DISCARD/ : { *(.bss*) }
 	/DISCARD/ : { *(.dynstr*) }
 	/DISCARD/ : { *(.dynsym*) }