public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
From: "ylyuan" <ylyuan.@davform.com>
To: "ecos-discuss" <ecos-discuss@sourceware.cygnus.com>
Subject: [ECOS] the error  of compiling a application
Date: Sun, 14 Jan 2001 19:11:00 -0000	[thread overview]
Message-ID: <003501c073a0$d5174ed0$8664a8c0@yyl2000> (raw)

Hi,my target is powerpc;when I compile hello.c,the result is right.But when I compile smtp.c,a application realizing SMTP,error occurs,
the output is:
powerpc-eabi-gcc -msoft-float -mcpu=860          
-nostartfiles -L/e/ecos_work1/ecos_install/lib -Wl,--gc-sections -o smtp smtp.o 
-Ttarget.ld -nostdlib
/tools/H-i686-pc-cygwin/lib/gcc-lib/powerpc-eabi/2.95.2/../../../../powerpc-eabi/bin/ld: 
warning: no memory region specified for section `.sdata'
/tools/H-i686-pc-cygwin/lib/gcc-lib/powerpc-eabi/2.95.2/../../../../powerpc-eabi/bin/ld:
 section .sdata [00010000 -> 0001000b] overlaps section .text [00010000 -> 00047b67]
collect2: ld returned 1 exit status
make: *** [smtp] Error 1

If I add the line followed in the target.ld:
 .sdata ALIGN (0x8) : { *(.sdata*) } >  ram ,
the result is right.But I find in the target.ld the section of data includes the input of  section of sdata.
What's the meaning of section of sdata and why need it?

Thanks a lot!

                 reply	other threads:[~2001-01-14 19:11 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='003501c073a0$d5174ed0$8664a8c0@yyl2000' \
    --to="ylyuan."@davform.com \
    --cc=ecos-discuss@sourceware.cygnus.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).