Skip to content

Commit 686b7a3

Browse files

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

package/devel/binutils/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@
88
include $(TOPDIR)/rules.mk
99

1010
PKG_NAME:=binutils
11-
PKG_VERSION:=2.42
11+
PKG_VERSION:=2.45.1
1212
PKG_RELEASE:=1
1313

1414
PKG_SOURCE_URL:=@GNU/binutils
1515
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
1616
PKG_VERSION:=$(PKG_VERSION)
17-
PKG_HASH:=f6e4d41fd5fc778b06b7891457b3620da5ecea1006c6a4a41ae998109f85a800
17+
PKG_HASH:=5fe101e6fe9d18fdec95962d81ed670fdee5f37e3f48f0bef87bddf862513aa5
1818

1919
PKG_FIXUP:=patch-libtool
2020
PKG_LIBTOOL_PATHS:=. gas bfd opcodes gprof gprofng binutils ld libiberty gold intl libctf libsframe

package/devel/binutils/patches/001-replace-attribute_const.patch

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ unwind.c:490:3: note: in expansion of macro 'FILL_CONTEXT'
1717
----------------------
1818
--- a/gprofng/common/cpuid.c
1919
+++ b/gprofng/common/cpuid.c
20-
@@ -23,7 +23,7 @@
21-
#elif defined(__aarch64__)
20+
@@ -25,7 +25,7 @@
2221
#define ATTRIBUTE_UNUSED __attribute__((unused))
22+
#endif
2323

2424
-static inline uint_t __attribute_const__
2525
+static inline uint_t __attribute__((__const__))
@@ -28,16 +28,16 @@ unwind.c:490:3: note: in expansion of macro 'FILL_CONTEXT'
2828
unsigned int *ecx ATTRIBUTE_UNUSED, unsigned int *edx ATTRIBUTE_UNUSED)
2929
--- a/gprofng/libcollector/unwind.c
3030
+++ b/gprofng/libcollector/unwind.c
31-
@@ -237,7 +237,7 @@ typedef uint64_t __u64;
31+
@@ -236,7 +236,7 @@ typedef uint64_t __u64;
3232

3333
#define FILL_CONTEXT(context) \
3434
{ CALL_UTIL (getcontext) (context); \
3535
- context->uc_mcontext.sp = (__u64) __builtin_frame_address(0); \
3636
+ context->uc_mcontext.sp = (uint64_t) __builtin_frame_address(0); \
3737
}
3838

39-
#endif /* ARCH() */
40-
@@ -4583,11 +4583,11 @@ stack_unwind (char *buf, int size, void
39+
#elif ARCH(RISCV)
40+
@@ -4588,11 +4588,11 @@ stack_unwind (char *buf, int size, void
4141
if (buf && bptr && eptr && context && size + mode > 0)
4242
getByteInstruction ((unsigned char *) eptr);
4343
int ind = 0;
@@ -54,7 +54,7 @@ unwind.c:490:3: note: in expansion of macro 'FILL_CONTEXT'
5454
unsigned long tbgn = 0;
5555
unsigned long tend = 0;
5656

57-
@@ -4598,7 +4598,7 @@ stack_unwind (char *buf, int size, void
57+
@@ -4603,7 +4603,7 @@ stack_unwind (char *buf, int size, void
5858
{
5959
stack_base = sp + 0x100000;
6060
if (stack_base < sp) // overflow
@@ -63,7 +63,7 @@ unwind.c:490:3: note: in expansion of macro 'FILL_CONTEXT'
6363
}
6464
DprintfT (SP_DUMP_UNWIND,
6565
"unwind.c:%d stack_unwind %2d pc=0x%llx sp=0x%llx stack_base=0x%llx\n",
66-
@@ -4629,17 +4629,17 @@ stack_unwind (char *buf, int size, void
66+
@@ -4634,17 +4634,17 @@ stack_unwind (char *buf, int size, void
6767
__LINE__, (unsigned long) sp);
6868
break;
6969
}

0 commit comments

Comments
 (0)