[LLVMdev] [lld] How do I prevent .note sections from being eliminated?

Tom Stellard
2015-06-13T03:28:03Z

Hi,

I'm working on an AMDGPU target for lld, and I'm trying to link a single
.o file with a .note section, but the .note section is missing from the
resulting a.out file.  How can I control which sections get copied over
to the executable?  Is there a target hook to implement?

Thanks,
Tom