public inbox for crossgcc@sourceware.org
 help / color / mirror / Atom feed
* [Fwd: [Fwd: Where are _modsi3.c and/or _modsi3.o?]]
@ 2000-06-26 12:57 Christopher Bahns
  0 siblings, 0 replies; only message in thread
From: Christopher Bahns @ 2000-06-26 12:57 UTC (permalink / raw)
  To: crossgcc

Ok, sorry. I thought I tried using "-m68000", but I think I tried "-Wl,-m68000" and it
complained that it was not recognized by the linker. If I put "-m68000" as an argument
directly to gcc, then all is well and I don't have to shuffle any files around!

Thanks! much helpful sir
Chris

BTW, to Francisco Rodriguez, ignore what I said about having to move files around. If the
68360 does in fact have a cpu32 core, then you probably want to invoke the linker with
something like:

/gcc-m68k/bin/m68k-coff-gcc -mcpu32 -Wl,-T<program>.ld -Wl,-Map=<program>.map -o
<program>.hex <object files>

Much easier I think.

Doug Evans wrote:

> Christopher Bahns writes:
>  > My question now is:
>  > How can I link to the libgcc.a in the m68000 subdirectory without deleting the one
>  > in the parent directory?
>
> You're not specifying the command you're using to do the link
> [at least I don't recall seeing it].
>
> Assuming you're using gcc to do the link (which you should be doing :-),
> specify -m68000.
>
> The -m68000 tells gcc what cpu to generate code for, but it ALSO
> tells gcc what libgcc to use with that generated code.
>
> [It may be that you're not developing for the m68000 exactly.
> I'm not up on all the m68k variants and the current state
> of gcc support for them, but in principal the above is correct.]
>
> ------
> Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
> Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2000-06-26 12:57 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-06-26 12:57 [Fwd: [Fwd: Where are _modsi3.c and/or _modsi3.o?]] Christopher Bahns

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).