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

Simon Atanasyan simon at atanasyan.com
Sat Jun 13 03:08:50 PDT 2015


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



More information about the llvm-dev mailing list