This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
ld: warning: gc-sections option ignored
- From: William Tambe <tambewilliam at gmail dot com>
- To: binutils at sourceware dot org
- Date: Fri, 2 Aug 2019 22:54:20 -0500
- Subject: ld: warning: gc-sections option ignored
I am currently porting binutils, but the use of -Wl,--gc-sections
display the following warning and the final executable is huge with
unused functions:
ld: warning: gc-sections option ignored
I am using the above options as follow in an attempt to remove unused
functions from the final executable:
-fdata-sections -ffunction-sections -Wl,--gc-sections
Any idea, what needs to be implemented when porting binutils-ld in
order to avoid the warning:
ld: warning: gc-sections option ignored