diff options
-rw-r--r-- | bfd/compress.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bfd/compress.c b/bfd/compress.c index 6d98aec..4a2ada3 100644 --- a/bfd/compress.c +++ b/bfd/compress.c @@ -264,7 +264,7 @@ bfd_get_full_section_contents (bfd *abfd, sec_ptr sec, bfd_byte **ptr) { /* PR 24708: Avoid attempts to allocate a ridiculous amount of memory. */ - bfd_set_error (bfd_error_no_memory); + bfd_set_error (bfd_error_file_truncated); _bfd_error_handler /* xgettext:c-format */ (_("error: %pB(%pA) section size (%#" PRIx64 " bytes) is larger than file size (%#" PRIx64 " bytes)"), |