From d7d4e9115548d2ddc01c2f1e6f2c1188dc823066 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Wed, 30 Aug 2023 22:42:53 +0930 Subject: DEFAULT_BUFFERSIZE There isn't any reason to think that a particular buffer size is ideal in bfd, so let's just not define it. * libbfd-in.h (DEFAULT_BUFFERSIZE): Don't define. * libbfd.h: Regenerate. * archive.c (AR_WRITE_BUFFERSIZE): Substitute value. * vms-lib.c (_bfd_vms_lib_write_archive_contents): Likewise. * coff-rs6000.c (do_copy): Likewise, and use sizeof. --- bfd/archive.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bfd/archive.c') diff --git a/bfd/archive.c b/bfd/archive.c index 47b37bb..2f18955 100644 --- a/bfd/archive.c +++ b/bfd/archive.c @@ -2223,7 +2223,7 @@ _bfd_write_archive_contents (bfd *arch) } } -#define AR_WRITE_BUFFERSIZE (DEFAULT_BUFFERSIZE * 1024) +#define AR_WRITE_BUFFERSIZE (8 * 1024 * 1024) /* FIXME: Find a way to test link_info.reduce_memory_overheads and change the buffer size. */ -- cgit v1.1