Re: [PATCH v2 17/28] PCI: Fix PREL32 relocations for LTO

2020-09-03 Thread Kees Cook
On Thu, Sep 03, 2020 at 01:30:42PM -0700, Sami Tolvanen wrote: > With Clang's Link Time Optimization (LTO), the compiler can rename > static functions to avoid global naming collisions. As PCI fixup > functions are typically static, renaming can break references > to them in inline assembly. This c

[PATCH v2 17/28] PCI: Fix PREL32 relocations for LTO

2020-09-03 Thread Sami Tolvanen
With Clang's Link Time Optimization (LTO), the compiler can rename static functions to avoid global naming collisions. As PCI fixup functions are typically static, renaming can break references to them in inline assembly. This change adds a global stub to DECLARE_PCI_FIXUP_SECTION to fix the issue