Skip to content

objtool: Fix code reloc vs weak symbols

Peter Zijlstra lkml 1 version Applied

Status from this message: The following commit has been merged into the objtool/urgent branch of tip:

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 3 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/2objtool: Fix type of reloc::addendtools/objtool/check.c tools/objtool/elf.c tools/objtool/include/objtool/elf.h+7 -70 replies
2/2objtool: Fix code relocs vs weak symbolstools/objtool/elf.c+166 -222 replies

Reviews trailers per patch

None of the 2 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchJosh Poimboeuf
SeriesA-b
1/2
2/2

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/2] objtool: Fix code reloc vs weak symbols

Two fun bugs that make can cause other fun fail if you have a fresh enough toolchain that strips unused section symbols.

The symptoms can vary between a faulty unwind to a kernel splat for trying to patch the wrong text.

I found it while playing with text patching and Josh confirmed it very much affects ORC data too.