This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]