Skip to content

powerpc: build / linker improvements

Nicholas Piggin linuxppc-dev llvm oe-kbuild-all 2 versions – Applied

Status from this message: Applied to powerpc/next.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest7 patches 5 repliesApplied
  2. v17 patches 7 repliesSuperseded

Changes in v2 from the cover letter

- Move sys_call_table data.rel.ro patch to the end.
- And fix the changelog in that patch, the relocations were a red herring.
- Update the changelog in the __end_rodata patch.
- Align __end_rodata to strict align size.

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/7powerpc: move __end_rodata to cover arch read-only sectionsarch/powerpc/kernel/vmlinux.lds.S arch/powerpc/mm/book3s32/mmu.c arch/powerpc/mm/book3s64/hash_pgtable.c +2 more+12 -80 replies
2/7powerpc/32/build: move got1/got2 sections out of textarch/powerpc/kernel/vmlinux.lds.S+11 -100 replies
3/7powerpc/build: move got, toc, plt, branch_lt sections to read-onlyarch/powerpc/kernel/vmlinux.lds.S+27 -152 replies
4/7powerpc/build: move .data.rel.ro, .sdata2 to read-onlyarch/powerpc/kernel/vmlinux.lds.S+12 -80 replies
5/7powerpc/64/build: only include .opd with ELFv1arch/powerpc/kernel/vmlinux.lds.S+2 -00 replies
6/7powerpc/64/build: merge .got and .toc input sectionsarch/powerpc/kernel/vmlinux.lds.S+1 -22 replies
7/7powerpc/build: put sys_call_table in .data.rel.ro if RELOCATABLEarch/powerpc/kernel/systbl.S+4 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/7] powerpc: build / linker improvements

This series is mainly about moving more things out of writable and executable memory, and slightly moving the linker script in the direction of the binutils ld internal linker script as we do.

Thanks,
Nick

Since v1:
- Move sys_call_table data.rel.ro patch to the end.
- And fix the changelog in that patch, the relocations were a red herring.
- Update the changelog in the __end_rodata patch.
- Align __end_rodata to strict align size.

Nicholas Piggin (7):
powerpc: move __end_rodata to cover arch read-only sections powerpc/32/build: move got1/got2 sections out of text powerpc/build: move got, toc, plt, branch_lt sections to read-only powerpc/build: move .data.rel.ro, .sdata2 to read-only powerpc/64/build: only include .opd with ELFv1 powerpc/64/build: merge .got and .toc input sections powerpc/build: put sys_call_table in .data.rel.ro if RELOCATABLE

 arch/powerpc/kernel/systbl.S             |  4 ++
 arch/powerpc/kernel/vmlinux.lds.S        | 85 +++++++++++++++---------
 arch/powerpc/mm/book3s32/mmu.c           |  2 +-
 arch/powerpc/mm/book3s64/hash_pgtable.c  |  2 +-
 arch/powerpc/mm/book3s64/radix_pgtable.c |  6 +-
 arch/powerpc/mm/pgtable_32.c             |  7 +-
 6 files changed, 66 insertions(+), 40 deletions(-)
Signature · 1 line
2.37.2