Skip to content

Re-organize linker layouts

Stephen Boyd linux-arm-kernel 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest0 of 7 patches 0 repliesNew

Patches in v1 No applies recorded yet

None of the 7 patches the cover letter announces are in this archive.

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 0/7] Re-organize linker layouts
Quoted 23 lines · Russell King - ARM Linux
Quoted 22 lines · Stephen Boyd
Quoted 20 lines · Russell King - ARM Linux

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.

Quoted 8 lines
Quoted 5 lines

I gave this series a test with my poison initmem patch and all looks well

except for patch 2 as I didn't use a zImage.

Oh, what did you use instead? I thought no one used the Image files anymore...

I used an Image. Android bootloaders are perfectly fine booting those. Plus, the zreladdr for every MSM post 7x00a isn't upstream.

Which reminds me, the zreladdr for every MSM besides 7x00a and 8x50 is 0xX0208000 which doesn't play nicely with AUTO_ZRELADDR. I wish we could fix that.

Signature · 2 lines
Sent by an employee of the Qualcomm Innovation Center, Inc.
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum.