public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
From: Thiemo Seufer <ths@networkno.de>
To: Tzu-Chien Chiu <tzuchien.chiu@gmail.com>
Cc: binutils@sourceware.org
Subject: Re: LD: function-level linking
Date: Mon, 10 Jul 2006 14:44:00 -0000	[thread overview]
Message-ID: <20060710144420.GM4375@networkno.de> (raw)
In-Reply-To: <4d77c5f20607100737y79dd772ch2e0b5e239a27f6ed@mail.gmail.com>

Tzu-Chien Chiu wrote:
> I got a warning from ld: "gc-sections option ignored."
> 
> The compilation command:
> [quote]
> or32-elf-gcc -o a.o -c -ffunction-sections -fdata-sections a.c
> [/quote]
> 
> The link command is:
> [quote]
> or32-elf-gcc -o program a.o b.o c.o -lfoo -Wl,-gc-sections, -Wl,-static
> [/quote]

You missed the second dash in front of --gc-sections.


Thiemo

  reply	other threads:[~2006-07-10 14:44 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-07-10  6:50 Tzu-Chien Chiu
2006-07-10  8:15 ` Thiemo Seufer
2006-07-10 14:37   ` Tzu-Chien Chiu
2006-07-10 14:44     ` Thiemo Seufer [this message]
2006-07-10 14:49       ` Tzu-Chien Chiu
2006-07-10 14:53         ` Tzu-Chien Chiu
2006-07-10 16:49     ` Ian Lance Taylor

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=20060710144420.GM4375@networkno.de \
    --to=ths@networkno.de \
    --cc=binutils@sourceware.org \
    --cc=tzuchien.chiu@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).