prelink: Move to latest release
PATCH 1/1 prelink: Move to latest release
[YOCTO #8227]
The latest release has a fix for prelinking on ARM with recent binutils.
For more information on why the change was necessary, see:
https://sourceware.org/ml/binutils/2014-06/msg00228.html
--- meta/recipes-devtools/prelink/prelink_git.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-devtools/prelink/prelink_git.bb +1 -1
@@ -8,7 +8,7 @@ and executables, so that far fewer relocations need to be resolved at \ runtime and thus programs come up faster." LICENSE = "GPLv2" LIC_FILES_CHKSUM = "file://COPYING;md5=c93c0550bd3173f4504b2cbd8991e50b" -SRCREV = "40327fb99654e96db6ef15e2f2d5ef140ac3e998" +SRCREV = "cdee5a4dd226cc5e9f30f370067a9031f398ef3c" PV = "1.0+git${SRCPV}" #
Signature · 1 line
1.9.3
Quoted 7 lines · Mark Hatle
[YOCTO #8227]
The latest release has a fix for prelinking on ARM with recent binutils.
For more information on why the change was necessary, see:
That link isn't particularly illuminating for someone not well versed in the art of prelink. I assume the significant thing is that the default MAXPAGESIZE has changed for arm, but it's not entirely obvious why this matters to prelink, what problem it caused, or what the change in prelink is that fixes the problem. Can you elaborate?
thanks
p.
Quoted 7 lines · Phil Blundell
Quoted 6 lines · Mark Hatle
[YOCTO #8227]
The latest release has a fix for prelinking on ARM with recent binutils.
For more information on why the change was necessary, see:
Quoted 7 lines
Quoted 1 line
That link isn't particularly illuminating for someone not well versed in the art of prelink. I assume the significant thing is that the default MAXPAGESIZE has changed for arm, but it's not entirely obvious why this matters to prelink, what problem it caused, or what the change in prelink is that fixes the problem. Can you elaborate?
Prelink patch in question:
It's both pieces listed that matter:
"Increase the maximum page size to 64kB and align the TEXT_START_ADDR to a 64kB boundary."
The TEXT_START_ADDR has moved in memory outside of the original TEXT_START_ADDR.
Prelink has a verification in it that checks to make sure the program is
requesting a start address and page size within the bounds of the prelinkers knowledge of the ABI.
The so the page size was increased which caused the text_start_addr to move -- together causing the integrity check in the prelinker to fail.
The new prelinker will still be able to prelink older executables as the older page size (and thus start address) are within the bounds of the expected system.
This is my understand, but I'm not an ARM ABI expect. So if I'm wrong, you'll have to query the person who submitted the patch that fixed the issue. (And yes the patch has been verified as working both with the internal prelink tests and also on the target inspecting the ld.so statistics to show that the prelink settings are being honored.)
--Mark
Quoted 5 lines
thanks
p.