Skip to content

section name cleanup for mn10300

Tim Abbott lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 6 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6mn10300: Use macros for .bss.page_aligned section.arch/mn10300/kernel/vmlinux.lds.S+1 -10 replies
2/6mn10300: Drop unused .data.idt section.arch/mn10300/kernel/vmlinux.lds.S+0 -30 replies
3/6mn10300: use NOSAVE_DATA macro for .data.nosave section.arch/mn10300/kernel/vmlinux.lds.S+1 -60 replies
4/6mn10300: use new macro for .data.cacheline_aligned section.arch/mn10300/kernel/vmlinux.lds.S+1 -30 replies
5/6mn10300: use new macros for .data.init_task.arch/mn10300/kernel/init_task.c arch/mn10300/kernel/vmlinux.lds.S+2 -53 replies
6/6mn10300: use new macro for .data.read_mostly section.arch/mn10300/kernel/vmlinux.lds.S+2 -70 replies

Reviews trailers per patch

2 of 6 patches have a Reviewed-by or Acked-by.

PatchDavid HowellsCyrill Gorcunov
1/6A-b
2/6A-b A-b
3/6
4/6
5/6
6/6

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/6] section name cleanup for mn10300

This patch series cleans up the section names on the mn10300 architecture. It requires the architecture-independent macro definitions from this patch series:

<http://www.spinics.net/lists/mips/msg33499.html>

The long-term goal here is to add support for building the kernel with -ffunction-sections -fdata-sections. This requires renaming all the magic section names in the kernel of the form .text.foo, .data.foo, .bss.foo, and .rodata.foo to not have collisions with sections generated for code like:

static int nosave = 0; /* -fdata-sections places in .data.nosave */ static void head(); /* -ffunction-sections places in .text.head */

Note that these patches have not been boot-tested (aside from testing the analogous changes on x86), since I don't have access to the appropriate hardware.

-Tim Abbott

Tim Abbott (6):
mn10300: Use macros for .bss.page_aligned section.
mn10300: Drop unused .data.idt section.
mn10300: use NOSAVE_DATA macro for .data.nosave section.
mn10300: use new macro for .data.cacheline_aligned section.
mn10300: use new macros for .data.init_task.
mn10300: use new macro for .data.read_mostly section.

 arch/mn10300/kernel/init_task.c   |    3 +--
 arch/mn10300/kernel/vmlinux.lds.S |   29 ++++++-----------------------
 2 files changed, 7 insertions(+), 25 deletions(-)