Skip to content

Add support for GNU gold

Sami Tolvanen linux-arm-kernel linux-kbuild lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest7 patches 1 replyIn review
  2. v17 patches 11 repliesSuperseded

Changes in v2 from the cover letter

- moved LD_DEAD_CODE_DATA_ELIMINATION fixes to the beginning of the patch set and removed mentions of gold
- renamed ld-if-name-version to __ld-ifversion for consistency
- cleaned up the erratum changes in arch/arm64/Makefile

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7kbuild: fix LD_DEAD_CODE_DATA_ELIMINATIONinclude/asm-generic/vmlinux.lds.h+4 -40 replies
2/7arm64: keep .altinstructions and .altinstr_replacementarch/arm64/kernel/vmlinux.lds.S+2 -20 replies
3/7kbuild: add ld-name macroscripts/Kbuild.include+4 -00 replies
4/7kbuild: add __ld-ifversion and linker-specific macrosscripts/Kbuild.include+12 -00 replies
5/7arm64: fix -m for GNU goldarch/arm64/Makefile+8 -00 replies
6/7arm64: explicitly pass --no-fix-cortex-a53-843419 to GNU goldarch/arm64/Makefile+9 -01 reply
7/7arm64: add a workaround for GNU gold with ARM64_MODULE_PLTSarch/arm64/kernel/module.lds+2 -20 replies

Reviews trailers per patch

5 of 7 patches have a Reviewed-by or Acked-by.

PatchNicholas PigginNick DesaulniersYury NorovArd Biesheuvel
1/7R-b
2/7
3/7R-b
4/7
5/7A-b
6/7R-b
7/7A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 4 reviewers.

Read the v2 thread

Cover letter [PATCH v2 0/7] Add support for GNU gold

These patches add macros for detecting the linker name and version, and apply fixes and workarounds needed to link the arm64 kernel with GNU gold.

Changes since v1:
- moved LD_DEAD_CODE_DATA_ELIMINATION fixes to the beginning of the patch set and removed mentions of gold
- renamed ld-if-name-version to __ld-ifversion for consistency
- cleaned up the erratum changes in arch/arm64/Makefile

Sami Tolvanen (7):
kbuild: fix LD_DEAD_CODE_DATA_ELIMINATION
arm64: keep .altinstructions and .altinstr_replacement
kbuild: add ld-name macro
kbuild: add __ld-ifversion and linker-specific macros
arm64: fix -m for GNU gold
arm64: explicitly pass --no-fix-cortex-a53-843419 to GNU gold
arm64: add a workaround for GNU gold with ARM64_MODULE_PLTS

 arch/arm64/Makefile               | 17 +++++++++++++++++
 arch/arm64/kernel/module.lds      |  4 ++--
 arch/arm64/kernel/vmlinux.lds.S   |  4 ++--
 include/asm-generic/vmlinux.lds.h |  8 ++++----
 scripts/Kbuild.include            | 16 ++++++++++++++++
 5 files changed, 41 insertions(+), 8 deletions(-)
Signature · 1 line
2.15.0.531.g2ccb3012c9-goog