public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
From: Nick Clifton <nickc@redhat.com>
To: Yvan Castilloux <kayoux@hotmail.com>
Cc: binutils@sourceware.org
Subject: Re: relocatable link problem
Date: Thu, 22 Jun 2006 15:39:00 -0000	[thread overview]
Message-ID: <449AB1C8.1070302@redhat.com> (raw)
In-Reply-To: <BAY103-F130C7F314159075130F0FCDE820@phx.gbl>

Hi Yvan,

> The problems, for now, comes with pre-linking our code. There are some 
> functions that are called in our code but defined in the user's code. I 
> then decided to declare these functions as extern, otherwise there's an 
> undefined error. Then I added the -r option in the linkage. The command 
> was as follows:
> 
> msp430-gcc -mmcu=${CPU} -r -olibdevice.a -Tldscript1612.x -L$(LIBDIR) 
> $(DEVICE_OBJS) -ldevice

I suspect that the problem here is that the "-r" switch is not being 
interpreted by the msp430-gcc program as a switch for the linker.  Try 
using "-Wl,-r" instead.

Cheers
   Nick

      reply	other threads:[~2006-06-22 15:06 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-06-15 14:30 Yvan Castilloux
2006-06-22 15:39 ` Nick Clifton [this message]

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=449AB1C8.1070302@redhat.com \
    --to=nickc@redhat.com \
    --cc=binutils@sourceware.org \
    --cc=kayoux@hotmail.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).