Skip to contentSkip to conversation

uftrace: Fix error on aarch64 when binutils update to 2.35.1

PATCH In review wangmy 2 participants 3 messages Apr 15, 2021

lore
Share & tools
lore

wangmy

author
#0 lore raw

PATCH 1/1 uftrace: Fix error on aarch64 when binutils update to 2.35.1

---
 ...error-on-aarch64-with-binutils2.35.1.patch | 27 +++++++++++++++++++
 .../recipes-devtools/uftrace/uftrace_0.9.4.bb |  1 +
 2 files changed, 28 insertions(+)
 create mode 100644 meta-oe/recipes-devtools/uftrace/uftrace/0001-Fix-error-on-aarch64-with-binutils2.35.1.patch
meta-oe/recipes-devtools/uftrace/uftrace/0001-Fix-error-on-aarch64-with-binutils2.35.1.patch new file +27 -0
new file mode 100644
index 0000000000..ac17cf433f
@@ -0,0 +1,27 @@
+From 0bc502989822506af308a559ac1cd52af82cac03 Mon Sep 17 00:00:00 2001
+From: Lei Maohui <[email protected]>
+Date: Wed, 14 Apr 2021 09:35:35 +0900
+Subject: [PATCH] Fix error on aarch64 with binutils2.35.1.
+
+WARN: child terminated by signal: 11: Segmentation fault
+
+Upstream-status: Pending
+
+Signed-off-by: Lei Maohui <[email protected]>
+---
+ arch/aarch64/mcount-arch.h | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/arch/aarch64/mcount-arch.h b/arch/aarch64/mcount-arch.h
+index 69efe521..60c2c1ba 100644
+--- a/arch/aarch64/mcount-arch.h
++++ b/arch/aarch64/mcount-arch.h
+@@ -31,7 +31,7 @@ struct mcount_arch_context {
+ 	double d[ARCH_MAX_FLOAT_REGS];
+ };
+ 
+-#define ARCH_PLT0_SIZE  32
++#define ARCH_PLT0_SIZE  16
+ #define ARCH_PLTHOOK_ADDR_OFFSET  0
+ 
+ struct mcount_disasm_engine;
meta-oe/recipes-devtools/uftrace/uftrace_0.9.4.bb +1 -0
index a3d0602182..4b4fc831c3 100644
@@ -13,6 +13,7 @@ inherit autotools
 PV .= "+git${SRCPV}"
 SRCREV = "d648bbffedef529220896283fb59e35531c13804"
 SRC_URI = "git://github.com/namhyung/${BPN} \
+           file://0001-Fix-error-on-aarch64-with-binutils2.35.1.patch \
            "
 S = "${WORKDIR}/git"
 
Signature · 1 line
2.25.1
#1 lore raw
Quoted 14 lines · wangmy
---
 ...error-on-aarch64-with-binutils2.35.1.patch | 27 +++++++++++++++++++
 .../recipes-devtools/uftrace/uftrace_0.9.4.bb |  1 +
 2 files changed, 28 insertions(+)
 create mode 100644 meta-oe/recipes-devtools/uftrace/uftrace/0001-Fix-error-on-aarch64-with-binutils2.35.1.patch
meta-oe/recipes-devtools/uftrace/uftrace/0001-Fix-error-on-aarch64-with-binutils2.35.1.patch new file +0 -0
new file mode 100644
index 0000000000..ac17cf433f

meta-oe/recipes-devtools/uftrace/uftrace/0001-Fix-error-on-aarch64-with-binutils2.35.1.patch line 9

Quoted 9 lines
meta-oe/recipes-devtools/uftrace/uftrace/0001-Fix-error-on-aarch64-with-binutils2.35.1.patch new file +9 -0
@@ -0,0 +1,27 @@
+From 0bc502989822506af308a559ac1cd52af82cac03 Mon Sep 17 00:00:00 2001
+From: Lei Maohui <[email protected]>
+Date: Wed, 14 Apr 2021 09:35:35 +0900
+Subject: [PATCH] Fix error on aarch64 with binutils2.35.1.
+
+WARN: child terminated by signal: 11: Segmentation fault
+
+Upstream-status: Pending
+

please submit this upstream if not yet done. this patch can avail some more eyes.

Quoted 36 lines
meta-oe/recipes-devtools/uftrace/uftrace/0001-Fix-error-on-aarch64-with-binutils2.35.1.patch new file +18 -0
+Signed-off-by: Lei Maohui <[email protected]>
+---
+ arch/aarch64/mcount-arch.h | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/arch/aarch64/mcount-arch.h b/arch/aarch64/mcount-arch.h
+index 69efe521..60c2c1ba 100644
+--- a/arch/aarch64/mcount-arch.h
++++ b/arch/aarch64/mcount-arch.h
+@@ -31,7 +31,7 @@ struct mcount_arch_context {
+       double d[ARCH_MAX_FLOAT_REGS];
+ };
+
+-#define ARCH_PLT0_SIZE  32
++#define ARCH_PLT0_SIZE  16
+ #define ARCH_PLTHOOK_ADDR_OFFSET  0
+
+ struct mcount_disasm_engine;
meta-oe/recipes-devtools/uftrace/uftrace_0.9.4.bb +1 -1
index a3d0602182..4b4fc831c3 100644
@@ -13,6 +13,7 @@ inherit autotools
 PV .= "+git${SRCPV}"
 SRCREV = "d648bbffedef529220896283fb59e35531c13804"
 SRC_URI = "git://github.com/namhyung/${BPN} \
+           file://0001-Fix-error-on-aarch64-with-binutils2.35.1.patch \
            "
 S = "${WORKDIR}/git"
 
--

2.25.1

author
#2 lore raw

It has been submitted to upstream.

  --
Best Regards
---------------------------------------------------
Wang Mingyu
Development Dept.I
Nanjing Fujitsu Nanda Software Tech. Co., Ltd.(FNST) No. 6 Wenzhu Road, Nanjing, 210012, China
TEL: +86+25-86630566-8568
COINS: 79988548
FAX: +86+25-83317685
MAIL: [email protected]
http://www.fujitsu.com/cn/fnst/

Quoted 82 lines

-----Original Message-----
From: Khem Raj <[email protected]>
Sent: Thursday, April 15, 2021 2:33 PM
To: Wang, Mingyu/王 鸣瑜 <[email protected]>
Cc: openembeded-devel <[email protected]>
Subject: Re: [oe] [meta-oe] [PATCH] uftrace: Fix error on aarch64 when binutils update to 2.35.1

Quoted 22 lines · wangmy
---
 ...error-on-aarch64-with-binutils2.35.1.patch | 27
+++++++++++++++++++  .../recipes-devtools/uftrace/uftrace_0.9.4.bb |
1 +
 2 files changed, 28 insertions(+)
 create mode 100644

meta-oe/recipes-devtools/uftrace/uftrace/0001-Fix-error-on-aarch64-wit h-binutils2.35.1.patch

diff --git a/meta-oe/recipes-devtools/uftrace/uftrace/0001-Fix-error-on-aarch64-w ith-binutils2.35.1.patch b/meta-oe/recipes-devtools/uftrace/uftrace/0001-Fix-error-on-aarch64-w ith-binutils2.35.1.patch
new file mode 100644
index 0000000000..ac17cf433f

meta-oe/recipes-devtools/uftrace/uftrace/0001-Fix-error-on-aarch new file +1 -0
+++ 64-with-binutils2.35.1.patch

meta-oe/recipes-devtools/uftrace/uftrace/0001-Fix-error-on-aarch line 10

Quoted 10 lines
meta-oe/recipes-devtools/uftrace/uftrace/0001-Fix-error-on-aarch new file +10 -0
@@ -0,0 +1,27 @@
+From 0bc502989822506af308a559ac1cd52af82cac03 Mon Sep 17 00:00:00
+2001
+From: Lei Maohui <[email protected]>
+Date: Wed, 14 Apr 2021 09:35:35 +0900
+Subject: [PATCH] Fix error on aarch64 with binutils2.35.1.
+
+WARN: child terminated by signal: 11: Segmentation fault
+
+Upstream-status: Pending
+

please submit this upstream if not yet done. this patch can avail some more eyes.

Quoted 37 lines
meta-oe/recipes-devtools/uftrace/uftrace/0001-Fix-error-on-aarch new file +17 -0
+Signed-off-by: Lei Maohui <[email protected]>
+---
+ arch/aarch64/mcount-arch.h | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/arch/aarch64/mcount-arch.h b/arch/aarch64/mcount-arch.h
+index 69efe521..60c2c1ba 100644
+--- a/arch/aarch64/mcount-arch.h
++++ b/arch/aarch64/mcount-arch.h
+@@ -31,7 +31,7 @@ struct mcount_arch_context {
+       double d[ARCH_MAX_FLOAT_REGS];  };
+
+-#define ARCH_PLT0_SIZE  32
++#define ARCH_PLT0_SIZE  16
+ #define ARCH_PLTHOOK_ADDR_OFFSET  0
+
+ struct mcount_disasm_engine;
meta-oe/recipes-devtools/uftrace/uftrace_0.9.4.bb +2 -1
index a3d0602182..4b4fc831c3 100644
@@ -13,6 +13,7 @@ inherit autotools
 PV .= "+git${SRCPV}"
 SRCREV = "d648bbffedef529220896283fb59e35531c13804"
 SRC_URI = "git://github.com/namhyung/${BPN} \
+           file://0001-Fix-error-on-aarch64-with-binutils2.35.1.patch
+ \
            "
 S = "${WORKDIR}/git"
 
--

2.25.1