[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.
> 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 ?
> llvm-commits mailing list
> llvm-commits at lists.llvm.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the llvm-commits