Skip to content

Re-organize linker layouts

Russell King - ARM Linux linux-arm-kernel 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7ARM: ensure tag tables are constarch/arm/include/asm/setup.h+1 -10 replies
2/7ARM: decompressor: use better output sectionsarch/arm/boot/compressed/vmlinux.lds.in+8 -40 replies
3/7ARM: vmlinux.lds: move discarded sections to beginningarch/arm/kernel/vmlinux.lds.S+22 -250 replies
4/7ARM: vmlinux.lds: rearrange .init output sectionarch/arm/kernel/vmlinux.lds.S+29 -180 replies
5/7ARM: vmlinux.lds: remove .rodata/.rodata1 from main .text segmentarch/arm/kernel/vmlinux.lds.S+0 -20 replies
6/7ARM: vmlinux.lds: move init sections between text and data sectionsarch/arm/kernel/vmlinux.lds.S arch/arm/mm/init.c+50 -500 replies
7/7ARM: vmlinux.lds: use _text and _stext the same way as x86arch/arm/kernel/vmlinux.lds.S+2 -20 replies

Reviews trailers per patch

None of the 7 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

Patchnicolas PitreStephen Boyd
SeriesA-b T-b
1/7
2/7
3/7
4/7
5/7
6/7
7/7

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/7] Re-organize linker layouts

The following series of patches are targetted at two issues:

1. Fixing large initramfs causing PC24 relocations to become out of range. This fixes both modules and link-time errors.

2. Making the vmlinux easier to pinpoint the various section-built data structures and inspect them later.

For the main kernel, this allows the size of various sections to be determined via objdump -h. This also aids objdump -d and -s usage when asking it to target a particular section.

For the decompressor, it means that it is now trivially possible to copy out the compressed kernel vmlinux image by:

arm-linux-objcopy -O binary -j .piggydata arch/arm/boot/compressed/vmlinux \
piggy.gz

and thereby obtain the binary kernel image (the Image file) which was originally used.