* [PATCH 0/1] Update to latest prelinker -- fix arm and x86 issues @ 2011-09-14 0:52 Mark Hatle 2011-09-14 0:52 ` [PATCH 1/1] Uprev to latest version of prelink_git, fixing TLS issues Mark Hatle 2011-09-14 17:03 ` [PATCH 0/1] Update to latest prelinker -- fix arm and x86 issues Saul Wold 0 siblings, 2 replies; 5+ messages in thread From: Mark Hatle @ 2011-09-14 0:52 UTC (permalink / raw) To: openembedded-core This fixes yocto bugzilla bug 1473. It addresses an issue where a typecast wasn't being specified and the compiler was doing the wrong thing in a printf. The symbols of the previous failure were, on a 32-bit IA32 host, targeting either a 32-bit IA32 target or ARM target the results of a prelinked image may not work properly. The following changes since commit 3be290aac4da885fe5bc31797c4a689196c63b7a: libzypp: move package-manger to it own package (2011-09-13 16:19:30 -0700) are available in the git repository at: git://git.pokylinux.org/poky-contrib mhatle/prelink http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=mhatle/prelink Mark Hatle (1): Uprev to latest version of prelink_git, fixing TLS issues meta/recipes-devtools/prelink/prelink_git.bb | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) -- 1.7.3.4 ^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH 1/1] Uprev to latest version of prelink_git, fixing TLS issues 2011-09-14 0:52 [PATCH 0/1] Update to latest prelinker -- fix arm and x86 issues Mark Hatle @ 2011-09-14 0:52 ` Mark Hatle 2011-09-14 0:53 ` Mark Hatle 2011-09-14 17:03 ` [PATCH 0/1] Update to latest prelinker -- fix arm and x86 issues Saul Wold 1 sibling, 1 reply; 5+ messages in thread From: Mark Hatle @ 2011-09-14 0:52 UTC (permalink / raw) To: openembedded-core [YOCTO #1473] From the upstream cross prelink respository: Fix printf typecast problem Without this fix the printed TLS(...) information is incorrect, which causes the core prelinker code to incorrectly prelink. This bug triggers primarily on x86 (32-bit) hosts, targeting x86 (32-bit) targets and arm targets. Signed-off-by: Mark Hatle <mark.hatle@windriver.com> --- meta/recipes-devtools/prelink/prelink_git.bb | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/meta/recipes-devtools/prelink/prelink_git.bb b/meta/recipes-devtools/prelink/prelink_git.bb index 1565ca6..af6de8e 100644 --- a/meta/recipes-devtools/prelink/prelink_git.bb +++ b/meta/recipes-devtools/prelink/prelink_git.bb @@ -8,9 +8,9 @@ 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 = "964f6eba613bf1c791a2a0b858cd044f05e2f151" +SRCREV = "3e3f9b0876aa5ac83a783a95b8bab52cb38ed785" PV = "1.0+git${SRCPV}" -PR = "r6" +PR = "r7" # # The cron script attempts to re-prelink the system daily -- on -- 1.7.3.4 ^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH 1/1] Uprev to latest version of prelink_git, fixing TLS issues 2011-09-14 0:52 ` [PATCH 1/1] Uprev to latest version of prelink_git, fixing TLS issues Mark Hatle @ 2011-09-14 0:53 ` Mark Hatle 0 siblings, 0 replies; 5+ messages in thread From: Mark Hatle @ 2011-09-14 0:53 UTC (permalink / raw) To: openembedded-core Just an FYI if anyone is curious, the actual fix is: --- a/trunk/src/rtld/rtld.c +++ b/trunk/src/rtld/rtld.c @@ -1120,7 +1120,7 @@ process_one_dso (DSO *dso, int host_paths) (size_t) (l->l_map_start - cur_dso_ent->dso->base)); if (l->l_tls_modid) - printf (" TLS(0x%Zx, 0x%0*Zx)\n", l->l_tls_modid, + printf (" TLS(0x%Zx, 0x%0*Zx)\n", (size_t) l->l_tls_modid, (int) size_pointer, (size_t) l->l_tls_offset); else l->l_tls_modid is a uint64_t.... --Mark On 9/13/11 7:52 PM, Mark Hatle wrote: > [YOCTO #1473] > > From the upstream cross prelink respository: > > Fix printf typecast problem > > Without this fix the printed TLS(...) information is incorrect, which > causes the core prelinker code to incorrectly prelink. This bug triggers > primarily on x86 (32-bit) hosts, targeting x86 (32-bit) targets and arm > targets. > > Signed-off-by: Mark Hatle <mark.hatle@windriver.com> > --- > meta/recipes-devtools/prelink/prelink_git.bb | 4 ++-- > 1 files changed, 2 insertions(+), 2 deletions(-) > > diff --git a/meta/recipes-devtools/prelink/prelink_git.bb b/meta/recipes-devtools/prelink/prelink_git.bb > index 1565ca6..af6de8e 100644 > --- a/meta/recipes-devtools/prelink/prelink_git.bb > +++ b/meta/recipes-devtools/prelink/prelink_git.bb > @@ -8,9 +8,9 @@ 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 = "964f6eba613bf1c791a2a0b858cd044f05e2f151" > +SRCREV = "3e3f9b0876aa5ac83a783a95b8bab52cb38ed785" > PV = "1.0+git${SRCPV}" > -PR = "r6" > +PR = "r7" > > # > # The cron script attempts to re-prelink the system daily -- on ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH 0/1] Update to latest prelinker -- fix arm and x86 issues 2011-09-14 0:52 [PATCH 0/1] Update to latest prelinker -- fix arm and x86 issues Mark Hatle 2011-09-14 0:52 ` [PATCH 1/1] Uprev to latest version of prelink_git, fixing TLS issues Mark Hatle @ 2011-09-14 17:03 ` Saul Wold 2011-09-14 17:11 ` Zhang, Jessica 1 sibling, 1 reply; 5+ messages in thread From: Saul Wold @ 2011-09-14 17:03 UTC (permalink / raw) To: openembedded-core On Tue, 2011-09-13 at 19:52 -0500, Mark Hatle wrote: > This fixes yocto bugzilla bug 1473. It addresses an issue where a typecast > wasn't being specified and the compiler was doing the wrong thing in a > printf. > > The symbols of the previous failure were, on a 32-bit IA32 host, targeting > either a 32-bit IA32 target or ARM target the results of a prelinked image > may not work properly. > Mark, There is still a problem with the prelinker, it seems to clobber text in X11 on qemux86, we get a build that has square blocks for text. Sau! > The following changes since commit 3be290aac4da885fe5bc31797c4a689196c63b7a: > > libzypp: move package-manger to it own package (2011-09-13 16:19:30 -0700) > > are available in the git repository at: > git://git.pokylinux.org/poky-contrib mhatle/prelink > http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=mhatle/prelink > > Mark Hatle (1): > Uprev to latest version of prelink_git, fixing TLS issues > > meta/recipes-devtools/prelink/prelink_git.bb | 4 ++-- > 1 files changed, 2 insertions(+), 2 deletions(-) > ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH 0/1] Update to latest prelinker -- fix arm and x86 issues 2011-09-14 17:03 ` [PATCH 0/1] Update to latest prelinker -- fix arm and x86 issues Saul Wold @ 2011-09-14 17:11 ` Zhang, Jessica 0 siblings, 0 replies; 5+ messages in thread From: Zhang, Jessica @ 2011-09-14 17:11 UTC (permalink / raw) To: sgw@linux.intel.com, Patches and discussions about the oe-core layer Bug 1482 filed for it. - Jessica -----Original Message----- From: openembedded-core-bounces@lists.openembedded.org [mailto:openembedded-core-bounces@lists.openembedded.org] On Behalf Of Saul Wold Sent: Wednesday, September 14, 2011 10:04 AM To: openembedded-core@lists.openembedded.org Subject: Re: [OE-core] [PATCH 0/1] Update to latest prelinker -- fix arm and x86 issues On Tue, 2011-09-13 at 19:52 -0500, Mark Hatle wrote: > This fixes yocto bugzilla bug 1473. It addresses an issue where a typecast > wasn't being specified and the compiler was doing the wrong thing in a > printf. > > The symbols of the previous failure were, on a 32-bit IA32 host, targeting > either a 32-bit IA32 target or ARM target the results of a prelinked image > may not work properly. > Mark, There is still a problem with the prelinker, it seems to clobber text in X11 on qemux86, we get a build that has square blocks for text. Sau! > The following changes since commit 3be290aac4da885fe5bc31797c4a689196c63b7a: > > libzypp: move package-manger to it own package (2011-09-13 16:19:30 -0700) > > are available in the git repository at: > git://git.pokylinux.org/poky-contrib mhatle/prelink > http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=mhatle/prelink > > Mark Hatle (1): > Uprev to latest version of prelink_git, fixing TLS issues > > meta/recipes-devtools/prelink/prelink_git.bb | 4 ++-- > 1 files changed, 2 insertions(+), 2 deletions(-) > _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2011-09-14 17:16 UTC | newest] Thread overview: 5+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2011-09-14 0:52 [PATCH 0/1] Update to latest prelinker -- fix arm and x86 issues Mark Hatle 2011-09-14 0:52 ` [PATCH 1/1] Uprev to latest version of prelink_git, fixing TLS issues Mark Hatle 2011-09-14 0:53 ` Mark Hatle 2011-09-14 17:03 ` [PATCH 0/1] Update to latest prelinker -- fix arm and x86 issues Saul Wold 2011-09-14 17:11 ` Zhang, Jessica
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox