Re: LDFLAGS = -Wl,--gc-sections

82 views
Skip to first unread message

Michael Hunley

unread,
Apr 9, 2003, 8:30:00 AM4/9/03
to crypto...@eskimo.com
I've successfully linked it on Redhat 8.0 using GCC 3.2.2. Which version
of GCC do you have (or are you using something other than GCC)?

At 02:12 AM 4/9/2003 -0700, you wrote:
>In the GNUmakefile
>LDFLAGS = -Wl,--gc-sections
>for release version.
>If someone has succesfully linked an exe using this
>flag please tell me which linker did you use.
>My Solaris Sparc linker (ld: Solaris Link Editors:
>5.8-1.272) doesn't support this flag.
>
>Hadar.
>
>__________________________________________________
>Do you Yahoo!?
>Yahoo! Tax Center - File online, calculators, forms, and more
>http://tax.yahoo.com

Hadar Bejerano

unread,
Apr 9, 2003, 8:42:56 AM4/9/03
to crypto...@eskimo.com

I'm using gcc 3.2.2 for sparc which is configured
to use the native Sun Solaris linker

/Solaris_Utils/bin/g++ -v

Reading specs from
/Solaris_Utils/bin/../lib/gcc-lib/sparc-sun-solaris2.8/3.2.2/specs
Configured with: ../configure --disable-nls
--with-ld=/usr/ccs/bin/ld --with-as=/usr/ccs/bin/as
Thread model: posix
gcc version 3.2.2

Do you know what the flag does?

Hadar.

Michael Hunley

unread,
Apr 10, 2003, 8:41:30 AM4/10/03
to crypto...@eskimo.com
Sorry, I don't remember off the top of my head. I looked it up when I saw
it first by doing a "man gcc", but I assume you have tried that. I did not
see a reference to it in the docs up on the GNU site, but I know it is in
the man pages. I am not running linux at the moment. Perhaps someone else
out there can answer?

Hadar Bejerano

unread,
Apr 9, 2003, 5:17:48 AM4/9/03
to crypto...@eskimo.com
Reply all
Reply to author
Forward
0 new messages