[uClinux-dev] [PATCH] Add gnu.linkonce section for sbss in elf2flt.ld

Atle Nissestad atle at nissestad.no
Tue Nov 27 16:15:35 EST 2007


This patch is required to successfully link against libstdc++ on the Nios2 platform.

- Atle

Signed-off-by: Atle Nissestad <atle at nissestad.no>
---
 elf2flt.ld |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/elf2flt.ld b/elf2flt.ld
index cd4e652..b5d5a76 100644
--- a/elf2flt.ld
+++ b/elf2flt.ld
@@ -69,6 +69,7 @@ R_RODAT		*(.gnu.linkonce.r*)
 		*(.sdata) 
 		*(.sdata.*)
 		*(.sbss)			/* Don't move this! */
+		*(.gnu.linkonce.sb*)
 		_essrw = . ;
 
 		_ssrw_size = _essrw - _ssrw;
-- 
1.5.3.2



More information about the uClinux-dev mailing list