Christian Weisgerber <na...@mips.inka.de> wrote: > Alexander Bluhm: > > > After enabling -fcf-protection=branch for the kernel, we have a new > > .plt section in the kernel. It was not there before. > > Same issue in userland: At least /usr/lib/crt0.o and /usr/lib/crtbegin.o > have grown .plt and .note.gnu.property sections and some tools > (ld.bfd?) don't like it, as shown by corresponding ports build > failures.
I think it is more important to teach ld.bfd that it should accept the new sections, than removing them. Obviously including them is the going to be the new way or we'll always be fighting the issue every clang update.