diff options
author | biao716.wang <biao716.wang@samsung.com> | 2022-01-29 17:13:17 +0900 |
---|---|---|
committer | biao716.wang <biao716.wang@samsung.com> | 2022-02-18 19:22:27 +0900 |
commit | 551a9377e1631b114ff449dcbc702d88024ea4b3 (patch) | |
tree | d5bf75f954c1598c226e2431cfb201433fa451bc /packaging | |
parent | 8030535f3ce80c504ffc278c13f98e6e9e34b98b (diff) | |
download | qemu-tizen_7.0_base_hotfix.tar.gz qemu-tizen_7.0_base_hotfix.tar.bz2 qemu-tizen_7.0_base_hotfix.zip |
fix ldd run crash issue in aarch64tizen_7.0_m2_releasetizen_7.0_base_hotfixtizen_7.0_basesandbox/wangbiao/up5.2
for example: build package gobject-introspection build error in aarch64
Change-Id: Ib9900c63100afbe396d36f0504f1dcb035752dcb
Signed-off-by: biao716.wang <biao716.wang@samsung.com>
Diffstat (limited to 'packaging')
-rw-r--r-- | packaging/baselibs.conf | 21 | ||||
-rw-r--r-- | packaging/qemu-linux-user.spec | 2 |
2 files changed, 22 insertions, 1 deletions
diff --git a/packaging/baselibs.conf b/packaging/baselibs.conf index ab86b7c45..171880810 100644 --- a/packaging/baselibs.conf +++ b/packaging/baselibs.conf @@ -30,6 +30,13 @@ targettype cross package qemu-linux-user post "setbinfmt 'arm' ':arm:M::\x7f\x45\x4c\x46\x01\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x28\x00:\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff\xff:/usr/bin/qemu-arm-binfmt:P' " post "setbinfmt 'armeb' ':armeb:M::\x7f\x45\x4c\x46\x01\x02\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x28:\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff:/usr/bin/qemu-armeb-binfmt:P'" post "setbinfmt 'aarch64' ':aarch64:M::\x7f\x45\x4c\x46\x02\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\xb7:\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff:/usr/bin/qemu-aarch64-binfmt:P'" + post "# workaround for using ldd on non-pie executable causes segfault" + post "# ex) ldd /usr/bin/which" + post "# ldd: exited with unknown exit code (139)" + post "%ifarch aarch64" + post "echo 'export QEMU_GUEST_BASE=0x5500000000' > /etc/profile.d/qemu_base.sh" + post "chmod 755 /etc/profile.d/qemu_base.sh" + post "%endif" targettype x86_64-cross package qemu-linux-user autoreqprov off @@ -50,6 +57,13 @@ targettype x86_64-cross package qemu-linux-user post "setbinfmt 'arm' ':arm:M::\x7f\x45\x4c\x46\x01\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x28\x00:\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff\xff:/usr/bin/qemu-arm-binfmt:P' " post "setbinfmt 'armeb' ':armeb:M::\x7f\x45\x4c\x46\x01\x02\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x28:\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff:/usr/bin/qemu-armeb-binfmt:P'" post "setbinfmt 'aarch64' ':aarch64:M::\x7f\x45\x4c\x46\x02\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\xb7:\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff:/usr/bin/qemu-aarch64-binfmt:P'" + post "# workaround for using ldd on non-pie executable causes segfault" + post "# ex) ldd /usr/bin/which" + post "# ldd: exited with unknown exit code (139)" + post "%ifarch aarch64" + post "echo 'export QEMU_GUEST_BASE=0x5500000000' > /etc/profile.d/qemu_base.sh" + post "chmod 755 /etc/profile.d/qemu_base.sh" + post "%endif" targettype x86-cross package qemu-linux-user autoreqprov off @@ -70,3 +84,10 @@ targettype x86-cross package qemu-linux-user post "setbinfmt 'arm' ':arm:M::\x7f\x45\x4c\x46\x01\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x28\x00:\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff\xff:/usr/bin/qemu-arm-binfmt:P' " post "setbinfmt 'armeb' ':armeb:M::\x7f\x45\x4c\x46\x01\x02\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x28:\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff:/usr/bin/qemu-armeb-binfmt:P'" post "setbinfmt 'aarch64' ':aarch64:M::\x7f\x45\x4c\x46\x02\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\xb7:\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff:/usr/bin/qemu-aarch64-binfmt:P'" + post "# workaround for using ldd on non-pie executable causes segfault" + post "# ex) ldd /usr/bin/which" + post "# ldd: exited with unknown exit code (139)" + post "%ifarch aarch64" + post "echo 'export QEMU_GUEST_BASE=0x5500000000' > /etc/profile.d/qemu_base.sh" + post "chmod 755 /etc/profile.d/qemu_base.sh" + post "%endif" diff --git a/packaging/qemu-linux-user.spec b/packaging/qemu-linux-user.spec index 2cc7103f7..c82cb1bec 100644 --- a/packaging/qemu-linux-user.spec +++ b/packaging/qemu-linux-user.spec @@ -185,7 +185,7 @@ cd %blddir --disable-tools --disable-guest-agent \ --static \ --disable-modules \ - --disable-pie \ + --disable-pie \ --disable-docs \ --audio-drv-list="" \ --disable-blobs \ |