From: "Tzu-Chien Chiu" <tzuchien.chiu@gmail.com>
To: "Thiemo Seufer" <ths@networkno.de>
Cc: binutils@sourceware.org
Subject: Re: LD: function-level linking
Date: Mon, 10 Jul 2006 14:53:00 -0000 [thread overview]
Message-ID: <4d77c5f20607100753o502afdb8nf548d69c211f8dcd@mail.gmail.com> (raw)
In-Reply-To: <4d77c5f20607100749v623c591dj4caf7a55492cd8e8@mail.gmail.com>
I didn't port that binutils, and I'm neither a bintuil port expert,
but probably I should check some files in binutils to see if this port
_support_ GC sections?
The obj format is ELF.
FYI:
I'm using OpenRISC tool-chain, an open source RISC CPU.
http://www.opencores.org/pnews.cgi/list/or1k?no_loop=yes
2006/7/10, Tzu-Chien Chiu <tzuchien.chiu@gmail.com>:
> According to the manual at:
>
> http://sourceware.org/binutils/docs-2.16/ld/Options.html#Options
>
> [quote]
> For options whose names are multiple letters, either one dash or two
> can precede the option name; ...
> [/quote]
>
> By the way, I tested both (one and two dashes), ld complained both anway.
>
>
> 2006/7/10, Thiemo Seufer <ths@networkno.de>:
> > 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
> >
>
>
> --
> Tzu-Chien Chiu - SMedia Technology Corp.
> URL: http://www.csie.nctu.edu.tw/~jwchiu/
>
--
Tzu-Chien Chiu - SMedia Technology Corp.
URL: http://www.csie.nctu.edu.tw/~jwchiu/
next prev parent reply other threads:[~2006-07-10 14:53 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
2006-07-10 14:49 ` Tzu-Chien Chiu
2006-07-10 14:53 ` Tzu-Chien Chiu [this message]
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=4d77c5f20607100753o502afdb8nf548d69c211f8dcd@mail.gmail.com \
--to=tzuchien.chiu@gmail.com \
--cc=binutils@sourceware.org \
--cc=ths@networkno.de \
/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).