Re: [U-Boot] [PATCH v7 1/3] cm_t335: fix linker file to produce full ELF

2014-02-26 Thread Albert ARIBAUD
On Sat, 22 Feb 2014 17:53:41 +0100, Albert ARIBAUD
albert.u.b...@aribaud.net wrote:

 Newly added cm_t335 was missed in commit 47ed5dd0 which
 made ARM targets produce full ELF files. Fix its linker
 script.
 
 This change is binary-invariant when only .dynsym, .dynstr,
 .dynamic, .plt, .interp and .gun sections are declared.
 
 Sections .hash, .got.plt, .dynbss and .ARM.exidx are also
 declared so that their (unused) content is moved out of the
 u-boot binary.
 
 Signed-off-by: Albert ARIBAUD albert.u.b...@aribaud.net
 ---

Series applied to u-boot-arm/master.

Amicalement,
-- 
Albert.
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] [PATCH v7 1/3] cm_t335: fix linker file to produce full ELF

2014-02-22 Thread Albert ARIBAUD
Newly added cm_t335 was missed in commit 47ed5dd0 which
made ARM targets produce full ELF files. Fix its linker
script.

This change is binary-invariant when only .dynsym, .dynstr,
.dynamic, .plt, .interp and .gun sections are declared.

Sections .hash, .got.plt, .dynbss and .ARM.exidx are also
declared so that their (unused) content is moved out of the
u-boot binary.

Signed-off-by: Albert ARIBAUD albert.u.b...@aribaud.net
---

Changes in v7: None
Changes in v6: None
Changes in v5: None
Changes in v4: None
Changes in v3:
- fixed cm_t335 linker script

Changes in v2: None

 board/compulab/cm_t335/u-boot.lds | 16 ++--
 1 file changed, 10 insertions(+), 6 deletions(-)

diff --git a/board/compulab/cm_t335/u-boot.lds 
b/board/compulab/cm_t335/u-boot.lds
index 1b609a2..d25c19a 100644
--- a/board/compulab/cm_t335/u-boot.lds
+++ b/board/compulab/cm_t335/u-boot.lds
@@ -92,10 +92,14 @@ SECTIONS
KEEP(*(.__bss_end));
}
 
-   /DISCARD/ : { *(.dynsym) }
-   /DISCARD/ : { *(.dynstr*) }
-   /DISCARD/ : { *(.dynamic*) }
-   /DISCARD/ : { *(.plt*) }
-   /DISCARD/ : { *(.interp*) }
-   /DISCARD/ : { *(.gnu*) }
+   .dynsym _end : { *(.dynsym) }
+   .hash : { *(.hash) }
+   .got.plt : { *(.got.plt) }
+   .dynbss : { *(.dynbss) }
+   .dynstr : { *(.dynstr*) }
+   .dynamic : { *(.dynamic*) }
+   .plt : { *(.plt*) }
+   .interp : { *(.interp*) }
+   .gnu : { *(.gnu*) }
+   .ARM.exidx : { *(.ARM.exidx*) }
 }
-- 
1.8.3.2

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] [PATCH v7 1/3] cm_t335: fix linker file to produce full ELF

2014-02-22 Thread Tom Rini
On Sat, Feb 22, 2014 at 05:53:41PM +0100, Albert ARIBAUD wrote:

 Newly added cm_t335 was missed in commit 47ed5dd0 which
 made ARM targets produce full ELF files. Fix its linker
 script.
 
 This change is binary-invariant when only .dynsym, .dynstr,
 .dynamic, .plt, .interp and .gun sections are declared.
 
 Sections .hash, .got.plt, .dynbss and .ARM.exidx are also
 declared so that their (unused) content is moved out of the
 u-boot binary.
 
 Signed-off-by: Albert ARIBAUD albert.u.b...@aribaud.net

Can we do a follow-up series where we look at making some sort of head
and tail perhaps linker snippets we can #include for ARM?  The top of
my head recollection is that we've usually just got a situation of
needing to shove a few non-standard objects up front in the binary, and
everything else is the same.  Thanks!

-- 
Tom


signature.asc
Description: Digital signature
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] [PATCH v7 1/3] cm_t335: fix linker file to produce full ELF

2014-02-22 Thread Albert ARIBAUD
Hi Tom,

On Sat, 22 Feb 2014 12:34:40 -0500, Tom Rini tr...@ti.com wrote:

 On Sat, Feb 22, 2014 at 05:53:41PM +0100, Albert ARIBAUD wrote:
 
  Newly added cm_t335 was missed in commit 47ed5dd0 which
  made ARM targets produce full ELF files. Fix its linker
  script.
  
  This change is binary-invariant when only .dynsym, .dynstr,
  .dynamic, .plt, .interp and .gun sections are declared.
  
  Sections .hash, .got.plt, .dynbss and .ARM.exidx are also
  declared so that their (unused) content is moved out of the
  u-boot binary.
  
  Signed-off-by: Albert ARIBAUD albert.u.b...@aribaud.net
 
 Can we do a follow-up series where we look at making some sort of head
 and tail perhaps linker snippets we can #include for ARM?  The top of
 my head recollection is that we've usually just got a situation of
 needing to shove a few non-standard objects up front in the binary, and
 everything else is the same.  Thanks!

The follow-up is actually in my todo list and I already have a patch
series going that way, along with another one factorizing the start.S
files in a similar vein.

Amicalement,
-- 
Albert.
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot