]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Reject compressed sections exceding 4 GiB on LLP64 machines
authorRui Ueyama <ruiu@cs.stanford.edu>
Tue, 3 Jun 2025 02:16:02 +0000 (11:16 +0900)
committerH.J. Lu <hjl.tools@gmail.com>
Wed, 4 Jun 2025 06:24:39 +0000 (14:24 +0800)
commit9037efb5472bc139d3be675ea4274105faeae5b3
treed06a5a5136e95ce1652d401ce1faeafe437e0dde
parentd984b08bb707a732358341b44b444c1c9860b287
Reject compressed sections exceding 4 GiB on LLP64 machines

According to the zlib FAQ (*1), zlib does not support compressed data
larger than 4 GiB when the compiler's long type is 32 bits. Therefore,
we need to report an error if a zlib-compressed debug section exceeds
4 GiB on LLP64 machines.

(*1) https://zlib.net/zlib_faq.html#faq32

Signed-off-by: Rui Ueyama <rui314@gmail.com>
bfd/compress.c