elfutils: fix building with GCC 11
[openwrt/staging/ansuel.git] / package / libs / elfutils / patches / 111-fix-gcc11-build.patch
1 --- a/libebl/libebl.h
2 +++ b/libebl/libebl.h
3 @@ -245,7 +245,7 @@ extern ssize_t ebl_register_info (Ebl *e
4 Each of these is filled with the DWARF register number corresponding,
5 or -1 if there is none. Returns zero when the information is available. */
6 extern int ebl_syscall_abi (Ebl *ebl, int *sp, int *pc,
7 - int *callno, int args[6]);
8 + int *callno, int args[]);
9
10 /* Supply the ABI-specified state of DWARF CFI before CIE initial programs.
11
12 --- a/libdw/libdw.h
13 +++ b/libdw/libdw.h
14 @@ -1065,7 +1065,7 @@ extern int dwarf_frame_cfa (Dwarf_Frame
15 expressions in the CFI, *OPS is an internal pointer that can be used as
16 long as the Dwarf_CFI used to create FRAME remains alive. */
17 extern int dwarf_frame_register (Dwarf_Frame *frame, int regno,
18 - Dwarf_Op ops_mem[3],
19 + Dwarf_Op ops_mem[],
20 Dwarf_Op **ops, size_t *nops)
21 __nonnull_attribute__ (3, 4, 5);
22