All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH v4 1/3] cm_t335: fix linker file to produce full ELF
@ 2014-01-08  8:57 Albert ARIBAUD
  2014-01-08  8:57 ` [U-Boot] [PATCH v4 2/3] arm: make _end compiler-generated Albert ARIBAUD
  0 siblings, 1 reply; 12+ messages in thread
From: Albert ARIBAUD @ 2014-01-08  8:57 UTC (permalink / raw)
  To: u-boot

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.boot@aribaud.net>
---

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

^ permalink raw reply related	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2014-02-14  8:22 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-01-08  8:57 [U-Boot] [PATCH v4 1/3] cm_t335: fix linker file to produce full ELF Albert ARIBAUD
2014-01-08  8:57 ` [U-Boot] [PATCH v4 2/3] arm: make _end compiler-generated Albert ARIBAUD
2014-01-08  8:57   ` [U-Boot] [PATCH v4 3/3] arm: remove unneeded symbol offsets and _TEXT_BASE Albert ARIBAUD
2014-01-30 10:02     ` [U-Boot] [PATCH v5 1/3] cm_t335: fix linker file to produce full ELF Albert ARIBAUD
2014-01-30 10:02       ` [U-Boot] [PATCH v5 2/3] arm: make _end compiler-generated Albert ARIBAUD
2014-01-30 10:02         ` [U-Boot] [PATCH v5 3/3] arm: remove unneeded symbol offsets and _TEXT_BASE Albert ARIBAUD
2014-02-14  4:30           ` Minkyu Kang
2014-02-14  7:28             ` Rajeshwari Birje
2014-02-14  8:08               ` Albert ARIBAUD
2014-02-14  8:22                 ` Rajeshwari Birje
2014-01-30 12:09         ` [U-Boot] [PATCH v5 2/3] arm: make _end compiler-generated Benoît Thébaudeau
2014-02-13 10:44           ` Albert ARIBAUD

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.