diff options
| author | Michael Forney <mforney@mforney.org> | 2021-07-19 15:28:56 -0700 |
|---|---|---|
| committer | Michael Forney <mforney@mforney.org> | 2021-07-19 16:09:47 -0700 |
| commit | 0d69afde2ad6ca4ba28af2f2920aabda174cf04a (patch) | |
| tree | 86223d010c10a5bd7eaaa63f1229f459bb7694e3 /pkg/binutils/patch/0003-Avoid-void-pointer-arithmetic.patch | |
| parent | 8fb3cb14048523545f0b6073c0f797d7442812b9 (diff) | |
binutils: Update to 2.37
Diffstat (limited to 'pkg/binutils/patch/0003-Avoid-void-pointer-arithmetic.patch')
| -rw-r--r-- | pkg/binutils/patch/0003-Avoid-void-pointer-arithmetic.patch | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/pkg/binutils/patch/0003-Avoid-void-pointer-arithmetic.patch b/pkg/binutils/patch/0003-Avoid-void-pointer-arithmetic.patch new file mode 100644 index 00000000..5b3dd3a1 --- /dev/null +++ b/pkg/binutils/patch/0003-Avoid-void-pointer-arithmetic.patch @@ -0,0 +1,27 @@ +From 412191da499f4f96dd9138a2868b16947b8d8f70 Mon Sep 17 00:00:00 2001 +From: Michael Forney <mforney@mforney.org> +Date: Mon, 19 Jul 2021 10:31:05 -0700 +Subject: [PATCH] Avoid void pointer arithmetic + +This is not strictly allowed in ISO C, which requires the pointed-to +type to be a complete object type. +--- + bfd/peicode.h | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/bfd/peicode.h b/bfd/peicode.h +index c84b135e1eb..41955975cdc 100644 +--- a/bfd/peicode.h ++++ b/bfd/peicode.h +@@ -1474,7 +1474,7 @@ pe_bfd_object_p (bfd * abfd) + if (opt_hdr_size != 0) + { + bfd_size_type amt = opt_hdr_size; +- void * opthdr; ++ bfd_byte * opthdr; + + /* PR 17521 file: 230-131433-0.004. */ + if (amt < sizeof (PEAOUTHDR)) +-- +2.32.0 + |
