[PATCH] D118840: [ELF] Support (TYPE=<value>) to customize the output section type

Nathan Chancellor via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 17 17:22:15 PST 2022


nathanchance added subscribers: nickdesaulniers, nathanchance.
nathanchance added a comment.

I have not done a bisect but it seems likely that this change breaks linking modules for the arm64 Linux kernel, is this expected?

  $ make -skj"$(nproc)" ARCH=arm64 LLVM=1 mrproper defconfig all
  ...
  ld.lld: error: section type mismatch for .plt
  >>> <internal>:(.plt): SHT_PROGBITS
  >>> output section .plt: SHT_NOBITS
  ...

I believe the `.plt` handling in the linker script comes from https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/arch/arm64/include/asm/module.lds.h?h=v5.17-rc4.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D118840/new/

https://reviews.llvm.org/D118840



More information about the llvm-commits mailing list