public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
From: Eric Christopher <echristo@apple.com>
To: Pan ruochen <panruochen@gmail.com>
Cc: binutils@sourceware.org
Subject: Re: How to inform `as` not to do linking after compiling?
Date: Wed, 22 Oct 2008 05:24:00 -0000	[thread overview]
Message-ID: <5248D716-A24E-4C4E-981D-91F6CCA655EE@apple.com> (raw)
In-Reply-To: <af0faace0810212148w5ca7f1e8vcde403b67d6cfcf3@mail.gmail.com>


On Oct 21, 2008, at 9:48 PM, Pan ruochen wrote:

> Hi All,
>
> $cp -f 001.s 002.s
> $mips-elf-as -O0 -G 0 -mips32r2 -EL 001.s 002.s
> 002.s: Assembler messages:
> 002.s:1: Error: symbol `_Init' is already defined
>
> It seems that `as` invoke `ld` to link the object files after  
> comipling?
> So how can I inform `as` not to do linking after compiling?

It is not invoking ld after assembling.

Please read this:

http://sourceware.org/binutils/docs-2.18/as/Input-Files.html#Input-Files

-eric

  reply	other threads:[~2008-10-22  5:24 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-10-22  4:48 Pan ruochen
2008-10-22  5:24 ` Eric Christopher [this message]
2008-10-22  7:01   ` Pan ruochen
2008-10-22  7:37     ` Eric Christopher
2008-10-22  7:55       ` Pan ruochen
2008-10-22  7:59         ` Eric Christopher
2008-10-23  3:32           ` Pan ruochen

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=5248D716-A24E-4C4E-981D-91F6CCA655EE@apple.com \
    --to=echristo@apple.com \
    --cc=binutils@sourceware.org \
    --cc=panruochen@gmail.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).