[coldfire-gnu-discuss] ld.exe: error: no memory region specified for loadable section `.data._ZN10__cxx
mike young
mikeyz9 at lycos.com
Thu Oct 29 17:57:41 UTC 2009
An HTML attachment was scrubbed...
URL: <http://sourcerytools.com/pipermail/coldfire-gnu-discuss/attachments/20091029/d4a1a167/attachment.html>
-------------- next part --------------
After modifying my linker to the following, now I'm getting
ld.exe: ..\..\out\npp_base_demo.out: warning: sh_link not set for section `.ARM.exidx'
below is my linker file:
MEMORY
{
ram : ORIGIN = 0x20000000, LENGTH = 0x10000000
}
SECTIONS
{
.text :
{
*(target_vectors) ;
*(target_code) ;
*(.text .text*) ;
*(.glue_7t) ;
*(.glue_7) ;
*(.gnu.linkonce.t*)
. = ALIGN(4) ;
PROVIDE (_os_ctor_start = .);
*(.ctors);
KEEP (*(.init_array))
PROVIDE (_os_ctor_end = .);
*(.dtors);
LONG (0);
} > ram
.ARM.extab :
{
*(.ARM.extab* .gnu.linkonce.armextab.*)
} > ram
.ARM.exidx :
{
__exidx_start = .;
*(.ARM.exidx* .gnu.linkonce.armexidx.*)
__exidx_end = .;
} > ram
.rodata :
{
*(.rodata*) ;
} > ram
.data :
{
_os_rom_data_start = . ;
_os_ram_data_start = . ;
*(.data) ;
*(.data*) ;
_os_ram_data_end = . ;
} > ram
.heap (NOLOAD) :
{
end = .;
_HEAP = .;
_HEAP_START = end;
*(.heap)
*(.heap*)
_HEAP_END = _HEAP_START + 0x00001000;
} > ram
.bss _HEAP_END (NOLOAD) :
{
_os_bss_start = _HEAP_END ;
*(.bss) ;
*(.bss*) ;
*(COMMON) ;
_os_bss_end = . ;
} > ram
}
---------[ Received Mail Content ]----------
Subject : Re: [coldfire-gnu-discuss] ld.exe: error: no memory region specified for loadable section `.data._ZN10__cxx
Date : Thu, 29 Oct 2009 10:50:26 -0400
From : Carlos O'Donell <carlos at codesourcery.com>
To : mike young <mikeyz9 at lycos.com>
Cc : coldfire-gnu-discuss at codesourcery.com
mike young wrote:
> I used to be able to link my app using CS GNU v3.X but now I'm having
> issue linking on the Code Sourcery v4.3.3.
> I'm trying to link C++ application and keep getting the
> `.data._ZN10__cxxabiv119__terminate_handlerE'
>
> ld.exe -o ..\..\out\test.out obj\tst0.o obj\tst1.o --start-group
> .\..\..\..\lib\test1.lib .\..\..\..\lib\test2.lib --end-group -Map
> ../../out/test.map -LC:\cs_arm_4.3.3/arm-none-eabi/lib
> -LC:\cs_arm_4.3.3/lib/gcc/arm-none-eabi/4.3.3 @lib.txt -( -lstdc++ -lgcc
> -lc -lm -T ../../../linker/linker.ld -)
> ld.exe: error: no memory region specified for loadable section
> `.data._ZN10__cxxabiv119__terminate_handlerE'
CodeSourcery doesn't proivde a ld.exe, which version of the tools are
you using? When you run the compiler with just -v what does it say?
> Do you have any idea what I did wrong? What does
> _ZN10__cxxabiv119__terminate_handlerE means?
Your linker script is broken. Please look at the default linker
scripts provided by CodeSourcery. See the Getting Started guide for
information on the location of the linker scripts.
Cheers,
Carlos.
--
Carlos O'Donell
CodeSourcery
carlos at codesourcery.com
(650) 331-3385 x716
More information about the coldfire-gnu-discuss
mailing list