An error occurred fetching the project authors.
  1. 05 Nov, 2022 2 commits
    • Peter Zijlstra's avatar
      objtool: Fix weak hole vs prefix symbol · 023f2340
      Peter Zijlstra authored
      Boris (and the robot) reported that objtool grew a new complaint about
      unreachable instructions. Upon inspection it was immediately clear
      the __weak zombie instructions struck again.
      
      For the unweary, the linker will simply remove the symbol for
      overriden __weak symbols but leave the instructions in place, creating
      unreachable instructions -- and objtool likes to report these.
      
      Commit 4adb2368 ("objtool: Ignore extra-symbol code") was supposed
      to have dealt with that, but the new commit 9f2899fe ("objtool:
      Add option to generate prefix symbols") subtly broke that logic by
      created unvisited symbols.
      
      Fixes: 9f2899fe ("objtool: Add option to generate prefix symbols")
      Reported-by: default avatarBorislav Petkov <bp@alien8.de>
      Reported-by: default avatarkernel test robot <lkp@intel.com>
      Signed-off-by: default avatarPeter Zijlstra (Intel) <peterz@infradead.org>
      023f2340
    • Peter Zijlstra's avatar
      objtool: Optimize elf_dirty_reloc_sym() · 19526717
      Peter Zijlstra authored
      When moving a symbol in the symtab its index changes and any reloc
      referring that symtol-table-index will need to be rewritten too.
      
      In order to facilitate this, objtool simply marks the whole reloc
      section 'changed' which will cause the whole section to be
      re-generated.
      
      However, finding the relocs that use any given symbol is implemented
      rather crudely -- a fully iteration of all sections and their relocs.
      Given that some builds have over 20k sections (kallsyms etc..)
      iterating all that for *each* symbol moved takes a bit of time.
      
      Instead have each symbol keep a list of relocs that reference it.
      
      This *vastly* improves build times for certain configs.
      Reported-by: default avatarBorislav Petkov <bp@alien8.de>
      Signed-off-by: default avatarPeter Zijlstra (Intel) <peterz@infradead.org>
      Link: https://lkml.kernel.org/r/Y2LlRA7x+8UsE1xf@hirez.programming.kicks-ass.net
      19526717
  2. 01 Nov, 2022 10 commits
  3. 25 Oct, 2022 1 commit
  4. 22 Oct, 2022 1 commit
  5. 21 Oct, 2022 1 commit
  6. 20 Oct, 2022 4 commits
  7. 18 Oct, 2022 2 commits
  8. 17 Oct, 2022 19 commits