[PATCH] D29324: [ELF] - Allow to combine sections of type SHT_NOTE with different attributes.

George Rimar via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 1 07:46:22 PST 2017

>>So, this really looks like a bug in the kernel. Even some of its flags
>>are marked alloc.
>>Can you try changing include/linux/elfnote.h to have
>>#define ELFNOTE(name, type, desc)               \
>>        ELFNOTE_START(name, type, "a")          \
>>                desc                    ;       \
>>        ELFNOTE_END
>>and see if that fixes the problem?
>Sure, I'll check that tomorrow and return with info.
>By the way, may be we want to implement some simple option like -z permissive-flags, which
>will ignore flags checks ? It looks it can be not a unique case for software that have such issues.

It helped, LLD happy with this change.

So what is plan, are we going to fix that place in kernel, make LLD more permissive or go with D29324 or something else ?


More information about the llvm-commits mailing list