* [PATCH] prelink: Move to latest release
@ 2015-09-14 15:47 Mark Hatle
2015-09-14 19:59 ` Phil Blundell
0 siblings, 1 reply; 3+ messages in thread
From: Mark Hatle @ 2015-09-14 15:47 UTC (permalink / raw)
To: openembedded-core
[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
Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
---
meta/recipes-devtools/prelink/prelink_git.bb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/meta/recipes-devtools/prelink/prelink_git.bb b/meta/recipes-devtools/prelink/prelink_git.bb
index 6ff6917..79a5f50 100644
--- a/meta/recipes-devtools/prelink/prelink_git.bb
+++ b/meta/recipes-devtools/prelink/prelink_git.bb
@@ -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}"
#
--
1.9.3
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] prelink: Move to latest release
2015-09-14 15:47 [PATCH] prelink: Move to latest release Mark Hatle
@ 2015-09-14 19:59 ` Phil Blundell
2015-09-14 20:21 ` Mark Hatle
0 siblings, 1 reply; 3+ messages in thread
From: Phil Blundell @ 2015-09-14 19:59 UTC (permalink / raw)
To: Mark Hatle; +Cc: openembedded-core
On Mon, 2015-09-14 at 10:47 -0500, Mark Hatle wrote:
> [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
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.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] prelink: Move to latest release
2015-09-14 19:59 ` Phil Blundell
@ 2015-09-14 20:21 ` Mark Hatle
0 siblings, 0 replies; 3+ messages in thread
From: Mark Hatle @ 2015-09-14 20:21 UTC (permalink / raw)
To: Phil Blundell; +Cc: openembedded-core
On 9/14/15 2:59 PM, Phil Blundell wrote:
> On Mon, 2015-09-14 at 10:47 -0500, Mark Hatle wrote:
>> [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
>
> 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:
http://git.yoctoproject.org/cgit/cgit.cgi/prelink-cross/commit/?h=cross_prelink&id=3a559ca14412f6e87874e5cf88f974e373cdfd27
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
> thanks
>
> p.
>
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2015-09-14 20:21 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-09-14 15:47 [PATCH] prelink: Move to latest release Mark Hatle
2015-09-14 19:59 ` Phil Blundell
2015-09-14 20:21 ` Mark Hatle
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox