aboutsummaryrefslogtreecommitdiffstats
path: root/package/libs/elfutils
diff options
context:
space:
mode:
authorRui Salvaterra <rsalvaterra@gmail.com>2021-07-19 00:56:46 +0100
committerHauke Mehrtens <hauke@hauke-m.de>2021-07-25 13:52:38 +0200
commit2434a57dd7a057e71272e259eb31967c9e08b2f7 (patch)
tree96fa51c14c325318d1d9dbb32ab98c0a98d901d2 /package/libs/elfutils
parentd63fbfce70a292dcf2c3b33b84c6847d09e1a29a (diff)
downloadupstream-2434a57dd7a057e71272e259eb31967c9e08b2f7.tar.gz
upstream-2434a57dd7a057e71272e259eb31967c9e08b2f7.tar.bz2
upstream-2434a57dd7a057e71272e259eb31967c9e08b2f7.zip
elfutils: fix building with GCC 11
Add a patch to fix building with GCC 11, which triggers new warnings by enabling -Warray-parameter by default. Signed-off-by: Rui Salvaterra <rsalvaterra@gmail.com>
Diffstat (limited to 'package/libs/elfutils')
-rw-r--r--package/libs/elfutils/patches/111-fix-gcc11-build.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/package/libs/elfutils/patches/111-fix-gcc11-build.patch b/package/libs/elfutils/patches/111-fix-gcc11-build.patch
new file mode 100644
index 0000000000..1ec880e34e
--- /dev/null
+++ b/package/libs/elfutils/patches/111-fix-gcc11-build.patch
@@ -0,0 +1,22 @@
+--- a/libebl/libebl.h
++++ b/libebl/libebl.h
+@@ -245,7 +245,7 @@ extern ssize_t ebl_register_info (Ebl *e
+ Each of these is filled with the DWARF register number corresponding,
+ or -1 if there is none. Returns zero when the information is available. */
+ extern int ebl_syscall_abi (Ebl *ebl, int *sp, int *pc,
+- int *callno, int args[6]);
++ int *callno, int args[]);
+
+ /* Supply the ABI-specified state of DWARF CFI before CIE initial programs.
+
+--- a/libdw/libdw.h
++++ b/libdw/libdw.h
+@@ -1065,7 +1065,7 @@ extern int dwarf_frame_cfa (Dwarf_Frame
+ expressions in the CFI, *OPS is an internal pointer that can be used as
+ long as the Dwarf_CFI used to create FRAME remains alive. */
+ extern int dwarf_frame_register (Dwarf_Frame *frame, int regno,
+- Dwarf_Op ops_mem[3],
++ Dwarf_Op ops_mem[],
+ Dwarf_Op **ops, size_t *nops)
+ __nonnull_attribute__ (3, 4, 5);
+