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]

Re: ld: warning: gc-sections option ignored


On Fri, Aug 02, 2019 at 10:54:20PM -0500, William Tambe wrote:
> Any idea, what needs to be implemented when porting binutils-ld in
> order to avoid the warning:
> ld: warning: gc-sections option ignored

Assuming your target is ELF, at a minimum
#define elf_backend_can_gc_sections 1

Depending on your target relocations, you may also need to override
various *_gc_* functions in elfxx-target.h.

-- 
Alan Modra
Australia Development Lab, IBM


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