Thread (73 messages) 73 messages, 8 authors, 2020-12-03

Re: [PATCH v6 16/25] init: lto: fix PREL32 relocations

From: Jann Horn <jannh@google.com>
Date: 2020-10-15 01:29:58
Also in: linux-arch, linux-kbuild, linux-pci, lkml

On Tue, Oct 13, 2020 at 2:34 AM Sami Tolvanen [off-list ref] wrote:
With LTO, the compiler can rename static functions to avoid global
naming collisions. As initcall functions are typically static,
renaming can break references to them in inline assembly. This
change adds a global stub with a stable name for each initcall to
fix the issue when PREL32 relocations are used.
While I understand that this may be necessary for now, are there any
plans to fix this in the compiler in the future? There was a thread
about this issue at
<http://lists.llvm.org/pipermail/llvm-dev/2016-April/thread.html#98047>,
and possible solutions were discussed there, but it looks like that
fizzled out...

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help