diff --git a/patches/gcc-11.4.0/0010-libiberty-fix.diff b/patches/gcc-11.4.0/0010-libiberty-fix.diff new file mode 100644 index 0000000..57ed9c0 --- /dev/null +++ b/patches/gcc-11.4.0/0010-libiberty-fix.diff @@ -0,0 +1,13 @@ +diff --git a/libiberty/simple-object-mach-o.c b/libiberty/simple-object-mach-o.c +index 72b69d19c216..a8869e7c6395 100644 +--- a/libiberty/simple-object-mach-o.c ++++ b/libiberty/simple-object-mach-o.c +@@ -1228,7 +1228,7 @@ simple_object_mach_o_write_segment (simple_object_write *sobj, int descriptor, + /* Swap the indices, if required. */ + + for (i = 0; i < (nsects_in * 4); ++i) +- set_32 (&index[i], index[i]); ++ set_32 ((unsigned char *) &index[i], index[i]); + + sechdr_offset += sechdrsize; +