[PATCH] D16092: [Coverage] Do not allocate memory for coverage map data (Linux)

Xinliang David Li via llvm-commits llvm-commits at lists.llvm.org
Tue Feb 16 09:41:56 PST 2016


The problem with marking the section SFH_ALLOC only is that the BFD
linker can not handle it properly -- see
https://sourceware.org/bugzilla/show_bug.cgi?id=19446 for details.

As regarding the note section format, AFAIK, there is no formal
specification in ELF. The organization mentioned in the document is
for illustration purpose only.

thanks,

David

On Tue, Feb 16, 2016 at 9:10 AM, Dave Bozier <seifsta at gmail.com> wrote:
> davidb added a subscriber: davidb.
> davidb added a comment.
>
> Hi,
>
> The section type has been changed to SHT_NOTE, however the section contents has not been changed to match the NOTE section format. This has caused issues with some of our tools and may affect others that use note sections. There is a description of the note section format here:
>
> http://docs.oracle.com/cd/E19253-01/817-1984/chapter6-18048/index.html
>
> Can't the section type remain as SHT_PROGBITS, but remove any section flags (SHF_ALLOC) that may cause the section to be allocated to a loadable segment?
>
>
> http://reviews.llvm.org/D16092
>
>
>


More information about the llvm-commits mailing list