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

Simon Atanasyan
2015-06-13T10:08:50Z

Hi,

If you need to control content of output .note section, take a look at
ARMExidxSection, MipsReginfoSection, MipsOptionsSection classes. If
you need to copy sections from input to output, use SDataSection (from
Hexagon) as a reference point.

On Sat, Jun 13, 2015 at 6:28 AM, Tom Stellard <tom at stellard.net>
wrote:
> 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?

Simon