binutils: gas decrease input buffer size
This commit is contained in:
parent
0dc672fd93
commit
af4ce6c4ed
@ -3,7 +3,7 @@ TERMUX_PKG_DESCRIPTION="Collection of binary tools, the main ones being ld, the
|
||||
TERMUX_PKG_LICENSE="GPL-2.0"
|
||||
TERMUX_PKG_MAINTAINER="@termux"
|
||||
TERMUX_PKG_VERSION=2.37
|
||||
TERMUX_PKG_REVISION=4
|
||||
TERMUX_PKG_REVISION=5
|
||||
TERMUX_PKG_SRCURL=https://mirrors.kernel.org/gnu/binutils/binutils-${TERMUX_PKG_VERSION}.tar.xz
|
||||
TERMUX_PKG_SHA256=820d9724f020a3e69cb337893a0b63c2db161dadcb0e06fc11dc29eb1e84a32c
|
||||
TERMUX_PKG_DEPENDS="libc++, zlib"
|
||||
|
24
packages/binutils/gas-decrease-input-buffer-size.patch
Normal file
24
packages/binutils/gas-decrease-input-buffer-size.patch
Normal file
@ -0,0 +1,24 @@
|
||||
diff -ru binutils-2.37/gas/app.c binutils-2.37_termux/gas/app.c
|
||||
--- binutils-2.37/gas/app.c 2021-07-08 19:37:19.000000000 +0800
|
||||
+++ binutils-2.37_termux/gas/app.c 2021-11-08 23:49:37.770000000 +0800
|
||||
@@ -217,7 +217,7 @@
|
||||
static int add_newlines;
|
||||
static char *saved_input;
|
||||
static size_t saved_input_len;
|
||||
-static char input_buffer[32 * 1024];
|
||||
+static char input_buffer[4 * 1024];
|
||||
static const char *mri_state;
|
||||
static char mri_last_ch;
|
||||
|
||||
diff -ru binutils-2.37/gas/input-file.c binutils-2.37_termux/gas/input-file.c
|
||||
--- binutils-2.37/gas/input-file.c 2021-07-08 19:37:19.000000000 +0800
|
||||
+++ binutils-2.37_termux/gas/input-file.c 2021-11-08 23:49:23.570000000 +0800
|
||||
@@ -37,7 +37,7 @@
|
||||
The caller only asks once what BUFFER_SIZE is, and asks before
|
||||
the nature of the input files (if any) is known. */
|
||||
|
||||
-#define BUFFER_SIZE (32 * 1024)
|
||||
+#define BUFFER_SIZE (4 * 1024)
|
||||
|
||||
/* We use static data: the data area is not sharable. */
|
||||
|
Loading…
Reference in New Issue
Block a user