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

Dave Bozier via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 1 08:02:09 PST 2017


My vote is to have a warning rather than error. Even if we fix the kernel,
preventing links due to flag/type mismatches will act as a barrier for
other projects trying to migrate to LLD.

On Wed, Feb 1, 2017 at 3:46 PM, George Rimar via llvm-commits <
llvm-commits at lists.llvm.org> wrote:

> >>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.
> >
> >George.
>
> 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 ?
>
> George.
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170201/3f8cf5ba/attachment.html>


More information about the llvm-commits mailing list