This is the mail archive of the ecos-devel@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]

Re: RE problem with gcc3.2 compiler


Ottawa Guy wrote:

Now I think my problem lies in linking. When I compile
the program without "-Wl,--gc-sections" I get the
following warning and my program fails


sparc-elf-gcc hello.c -o hello1.out -L./install/lib
-I./install/include -Ttarget.ld -nostdlib -I./ /opt/gnutools/bin/../lib/gcc-lib/sparc-elf/3.2.2/../../../../sparc-elf/bin/ld:
warning: no memory region specified for section
`.ram_vectors'

That warning sholdn't be there, but that's unlikely to be your problem. This is from the sparc hal's vectors.S:
! Define a section that reserves space at the start of RAM for the
! vectors to be copied into, for ROM start only.


.section ".ram_vectors","awx",@nobits

i.e. it's not relevant for RAM startup.

Jifl
--
eCosCentric    http://www.eCosCentric.com/    The eCos and RedBoot experts
--["No sense being pessimistic, it wouldn't work anyway"]-- Opinions==mine


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