aboutsummaryrefslogtreecommitdiff
path: root/bfd/libbfd.h
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2023-08-30 22:42:53 +0930
committerAlan Modra <amodra@gmail.com>2023-08-31 07:48:16 +0930
commitd7d4e9115548d2ddc01c2f1e6f2c1188dc823066 (patch)
treedf0ac1759018d7b27a57836c0e96e0b3b7528212 /bfd/libbfd.h
parent50e193c1862029e8de71c7bcd0863c17ad37bfa5 (diff)
downloadgdb-d7d4e9115548d2ddc01c2f1e6f2c1188dc823066.zip
gdb-d7d4e9115548d2ddc01c2f1e6f2c1188dc823066.tar.gz
gdb-d7d4e9115548d2ddc01c2f1e6f2c1188dc823066.tar.bz2
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.
Diffstat (limited to 'bfd/libbfd.h')
-rw-r--r--bfd/libbfd.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/bfd/libbfd.h b/bfd/libbfd.h
index e0ba9a7..d5f42f2 100644
--- a/bfd/libbfd.h
+++ b/bfd/libbfd.h
@@ -45,10 +45,6 @@
extern "C" {
#endif
-/* If you want to read and write large blocks, you might want to do it
- in quanta of this amount */
-#define DEFAULT_BUFFERSIZE 8192
-
/* Set a tdata field. Can't use the other macros for this, since they
do casts, and casting to the left of assignment isn't portable. */
#define set_tdata(bfd, v) ((bfd)->tdata.any = (v))