This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Problem linking


Hi all,

As stated before, I'm attempting to 'port' eCos v2 (from CVS) to the
Falcom F35XXL. The linker script file 'target.ld' is generated
incorrect. In an attempt to fix this quick & dirty I copied the linker
script file from the old eCos distribution supplied by Falcom (v1.3
IIRC). This results in the error below:

/gnutools/lib/gcc-lib/v850-elf/3.2.1/../../../../v850-elf/bin/ld:
section .bss [00205000 -> 00207ffb] overlaps section .text [00205000 ->
0020fb23]
tests/cxxsupp.o(.text.cyg_start+0xc2): In function `cyg_start':
/home/bert/ecos/ecos/packages/infra/current/tests/cxxsupp.cxx:150:
undefined reference to `operator new(unsigned)'
tests/cxxsupp.o(.text.cyg_start+0xc2):/home/bert/ecos/ecos/packages/infra/current/tests/cxxsupp.cxx:150:
relocation truncated to fit: R_V850_22_PCREL operator new(unsigned)
collect2: ld returned 1 exit status

I'm particularly confused by the sections overlapping... why do both
sections start at the same address? If neccessary, I can post this
linker script file, but it works fine for v1.3 projects.

Has anyone any clue why this happens? Are there any major differences in
the memory layout between v1.3 and v2.0 ?

Bert

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]