Skip to content

Linker script cleanups for various architectures

Tim Abbott linux-alpha linux-parisc linux-um linuxppc-dev lkml 3 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest posting 2/211 patches 0 repliesNew
  2. v2 posting 1/22 patches 3 repliesSuperseded
  3. v113 patches 3 repliesSuperseded

Patches in v2 posting 2/2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/11Optimize the ordering of sections in RW_DATA_SECTION.include/asm-generic/vmlinux.lds.h+2 -20 replies
2/11parisc: Clean up linker script using new linker script macros.arch/parisc/kernel/vmlinux.lds.S+4 -750 replies
3/11parisc: Remove useless altinstructions code copied from x86.arch/parisc/kernel/vmlinux.lds.S+0 -250 replies
4/11xtensa: Cleanup linker script using new linker script macros.arch/xtensa/kernel/vmlinux.lds.S+14 -610 replies
5/11um: Clean up linker script using standard macros.arch/um/include/asm/common.lds.S arch/um/kernel/dyn.lds.S arch/um/kernel/uml.lds.S+14 -500 replies
6/11h8300: Cleanup linker script using new linker script macros.arch/h8300/kernel/vmlinux.lds.S+7 -180 replies
7/11mn10300: Clean up linker script using higher-level macros.arch/mn10300/kernel/vmlinux.lds.S+4 -360 replies
8/11blackfin: Cleanup linker script using new linker script macros.arch/blackfin/kernel/vmlinux.lds.S+6 -500 replies
9/11powerpc: Cleanup linker script using new linker script macros.arch/powerpc/kernel/vmlinux.lds.S+15 -540 replies
10/11alpha: use .data.init_task instead of .data.init_thread.arch/alpha/kernel/init_task.c arch/alpha/kernel/vmlinux.lds.S+4 -80 replies
11/11alpha: Clean up linker script using new linker script macros.arch/alpha/kernel/vmlinux.lds.S+9 -810 replies

Reviews trailers per patch

9 of 11 patches have a Reviewed-by or Acked-by.

PatchSam Ravnborg
1/11R-b
2/11A-b
3/11A-b
4/11A-b
5/11A-b
6/11A-b
7/11A-b
8/11A-b
9/11A-b
10/11
11/11

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

Read the v2 thread

Cover letter [PATCH v2 00/11] Linker script cleanups for various architectures

Hi Linus,

This patch series contains patches cleaning up the linker scripts on several architectures (as well as one improvement to the architecture-independent macros). Please merge.

PATCH v2 differs from v1 in the following ways:
* I removed the m32r patches as you have a pull request from the m32r maintainer containing them.
* I added the lone blackfin patch that I sent you to merge on Tuesday.
* I added the patches for alpha.
* I improved the commit message for the first patch.

This cross-architecture linker script cleanup project is in preparation for adding support for building the kernel with -ffunction-sections -fdata-sections, which is a prerequisite for Ksplice.

-Tim Abbott

Geoffrey Thomas (1):
alpha: Clean up linker script using new linker script macros.

Tim Abbott (10):
Optimize the ordering of sections in RW_DATA_SECTION.
parisc: Clean up linker script using new linker script macros.
parisc: Remove useless altinstructions code copied from x86.
xtensa: Cleanup linker script using new linker script macros.
um: Clean up linker script using standard macros.
h8300: Cleanup linker script using new linker script macros.
mn10300: Clean up linker script using higher-level macros.
blackfin: Cleanup linker script using new linker script macros.
powerpc: Cleanup linker script using new linker script macros.
alpha: use .data.init_task instead of .data.init_thread.

 arch/alpha/kernel/init_task.c      |    5 +-
 arch/alpha/kernel/vmlinux.lds.S    |   95 ++++-----------------------------
 arch/blackfin/kernel/vmlinux.lds.S |   56 ++-----------------
 arch/h8300/kernel/vmlinux.lds.S    |   25 +++------
 arch/mn10300/kernel/vmlinux.lds.S  |   40 ++------------
 arch/parisc/kernel/vmlinux.lds.S   |  104 ++----------------------------------
 arch/powerpc/kernel/vmlinux.lds.S  |   69 +++++-------------------
 arch/um/include/asm/common.lds.S   |   29 ++--------
 arch/um/kernel/dyn.lds.S           |    9 +---
 arch/um/kernel/uml.lds.S           |   26 ++-------
 arch/xtensa/kernel/vmlinux.lds.S   |   75 +++++---------------------
 include/asm-generic/vmlinux.lds.h  |    4 +-
 12 files changed, 78 insertions(+), 459 deletions(-)