search for: typenoalloc

Displaying 2 results from an estimated 2 matches for "typenoalloc".

2015 Jun 15
2
[LLVMdev] [lld] How do I prevent .note sections from being eliminated?
...s the best way to do this? Should I make the function virtual and override it in AMDGPUELFFile.cpp? In ELFDefinedAtom::doContentType(), SHT_NOTE sections are only assigned the typeR[OW]Note ContentType if they have the SHF_ALLOC flag. This is because any section without SHF_ALLOC is assigned the typeNoAlloc ContentType before the section type is ever considered. Is this a bug or are SHT_NOTE sections required to have the SHF_ALLOC flag? Thanks, Tom > 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...
2015 Jun 13
2
[LLVMdev] [lld] How do I prevent .note sections from being eliminated?
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