* [PATCH v2 0/1] Fix nativesdk-qemu relocation issue
@ 2012-09-11 13:55 Laurentiu Palcu
2012-09-11 13:55 ` [PATCH v2 1/1] nativesdk-qemu: fix SDK " Laurentiu Palcu
2012-09-12 16:50 ` [PATCH v2 0/1] Fix nativesdk-qemu " Saul Wold
0 siblings, 2 replies; 3+ messages in thread
From: Laurentiu Palcu @ 2012-09-11 13:55 UTC (permalink / raw)
To: openembedded-core
Changes in V2:
- bump PR
Thanks,
Laurentiu
The following changes since commit 7250638ec895bc89508711831083d43b9e1e9826:
upstream_tracking: Fix format issues (2012-09-10 23:21:12 +0100)
are available in the git repository at:
git://git.yoctoproject.org/poky-contrib lpalcu/qemu_issue
http://git.yoctoproject.org/cgit.cgi/poky-contrib/log/?h=lpalcu/qemu_issue
Laurentiu Palcu (1):
nativesdk-qemu: fix SDK relocation issue
.../qemu/qemu-1.2.0/relocatable_sdk.patch | 34 ++++++++++++++++++++
meta/recipes-devtools/qemu/qemu_1.2.0.bb | 6 ++++
2 files changed, 40 insertions(+)
create mode 100644 meta/recipes-devtools/qemu/qemu-1.2.0/relocatable_sdk.patch
--
1.7.9.5
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH v2 1/1] nativesdk-qemu: fix SDK relocation issue
2012-09-11 13:55 [PATCH v2 0/1] Fix nativesdk-qemu relocation issue Laurentiu Palcu
@ 2012-09-11 13:55 ` Laurentiu Palcu
2012-09-12 16:50 ` [PATCH v2 0/1] Fix nativesdk-qemu " Saul Wold
1 sibling, 0 replies; 3+ messages in thread
From: Laurentiu Palcu @ 2012-09-11 13:55 UTC (permalink / raw)
To: openembedded-core
User mode emulation binaries are linked using a local linker script. The
nativesdk ones were not used and the resulting binaries did not have the
interp section resized. Hence, those binaries could not be relocated.
[YOCTO #3083]
Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com>
---
.../qemu/qemu-1.2.0/relocatable_sdk.patch | 34 ++++++++++++++++++++
meta/recipes-devtools/qemu/qemu_1.2.0.bb | 6 ++++
2 files changed, 40 insertions(+)
create mode 100644 meta/recipes-devtools/qemu/qemu-1.2.0/relocatable_sdk.patch
diff --git a/meta/recipes-devtools/qemu/qemu-1.2.0/relocatable_sdk.patch b/meta/recipes-devtools/qemu/qemu-1.2.0/relocatable_sdk.patch
new file mode 100644
index 0000000..0a01a8a
--- /dev/null
+++ b/meta/recipes-devtools/qemu/qemu-1.2.0/relocatable_sdk.patch
@@ -0,0 +1,34 @@
+Upstream-Status: Inappropriate [SDK specific]
+
+In order to be able to change the dynamic loader path when relocating
+binaries, the interp section has to be made big enough to accomodate
+the new path (4096 is the maximum path length in Linux).
+
+Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com>
+
+Index: qemu-1.2.0/i386.ld
+===================================================================
+--- qemu-1.2.0.orig/i386.ld
++++ qemu-1.2.0/i386.ld
+@@ -8,7 +8,7 @@ SECTIONS
+ {
+ /* Read-only sections, merged into text segment: */
+ . = 0x60000000 + SIZEOF_HEADERS;
+- .interp : { *(.interp) }
++ .interp : { *(.interp); . = 0x1000; }
+ .hash : { *(.hash) }
+ .dynsym : { *(.dynsym) }
+ .dynstr : { *(.dynstr) }
+Index: qemu-1.2.0/x86_64.ld
+===================================================================
+--- qemu-1.2.0.orig/x86_64.ld
++++ qemu-1.2.0/x86_64.ld
+@@ -6,7 +6,7 @@ SECTIONS
+ {
+ /* Read-only sections, merged into text segment: */
+ . = 0x60000000 + SIZEOF_HEADERS;
+- .interp : { *(.interp) }
++ .interp : { *(.interp); . = 0x1000; }
+ .hash : { *(.hash) }
+ .dynsym : { *(.dynsym) }
+ .dynstr : { *(.dynstr) }
diff --git a/meta/recipes-devtools/qemu/qemu_1.2.0.bb b/meta/recipes-devtools/qemu/qemu_1.2.0.bb
index 55ac532..7091f6d 100644
--- a/meta/recipes-devtools/qemu/qemu_1.2.0.bb
+++ b/meta/recipes-devtools/qemu/qemu_1.2.0.bb
@@ -17,6 +17,12 @@ SRC_URI = "\
SRC_URI[md5sum] = "78eb1e984f4532aa9f2bdd3c127b5b61"
SRC_URI[sha256sum] = "c8b84420d9f4869397f84cad2dabd9a475b7723d619a924a873740353e9df936"
+PR = "r1"
+
+SRC_URI_append_virtclass-nativesdk = "\
+ file://relocatable_sdk.patch \
+ "
+
do_configure_prepend_virtclass-nativesdk() {
if [ "${@base_contains('DISTRO_FEATURES', 'x11', 'x11', '', d)}" = "" ] ; then
# Undo the -lX11 added by linker-flags.patch
--
1.7.9.5
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH v2 0/1] Fix nativesdk-qemu relocation issue
2012-09-11 13:55 [PATCH v2 0/1] Fix nativesdk-qemu relocation issue Laurentiu Palcu
2012-09-11 13:55 ` [PATCH v2 1/1] nativesdk-qemu: fix SDK " Laurentiu Palcu
@ 2012-09-12 16:50 ` Saul Wold
1 sibling, 0 replies; 3+ messages in thread
From: Saul Wold @ 2012-09-12 16:50 UTC (permalink / raw)
To: Laurentiu Palcu; +Cc: openembedded-core
On 09/11/2012 06:55 AM, Laurentiu Palcu wrote:
> Changes in V2:
> - bump PR
>
> Thanks,
> Laurentiu
>
> The following changes since commit 7250638ec895bc89508711831083d43b9e1e9826:
>
> upstream_tracking: Fix format issues (2012-09-10 23:21:12 +0100)
>
> are available in the git repository at:
>
> git://git.yoctoproject.org/poky-contrib lpalcu/qemu_issue
> http://git.yoctoproject.org/cgit.cgi/poky-contrib/log/?h=lpalcu/qemu_issue
>
> Laurentiu Palcu (1):
> nativesdk-qemu: fix SDK relocation issue
>
> .../qemu/qemu-1.2.0/relocatable_sdk.patch | 34 ++++++++++++++++++++
> meta/recipes-devtools/qemu/qemu_1.2.0.bb | 6 ++++
> 2 files changed, 40 insertions(+)
> create mode 100644 meta/recipes-devtools/qemu/qemu-1.2.0/relocatable_sdk.patch
>
Merged into OE-Core
Thanks
Sau!
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-09-12 17:03 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-09-11 13:55 [PATCH v2 0/1] Fix nativesdk-qemu relocation issue Laurentiu Palcu
2012-09-11 13:55 ` [PATCH v2 1/1] nativesdk-qemu: fix SDK " Laurentiu Palcu
2012-09-12 16:50 ` [PATCH v2 0/1] Fix nativesdk-qemu " Saul Wold
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox