aboutsummaryrefslogtreecommitdiff
path: root/binutils
diff options
context:
space:
mode:
authorPer Bothner <per@bothner.com>1991-10-07 23:14:25 +0000
committerPer Bothner <per@bothner.com>1991-10-07 23:14:25 +0000
commitef82baf8c582a51890585b1e62643e922d5ae71a (patch)
tree467b672a025947d751ea3a4e587f59dc4d48931b /binutils
parentbee36ac3e762245a42c409a77549dcd9030c3238 (diff)
downloadgdb-ef82baf8c582a51890585b1e62643e922d5ae71a.zip
gdb-ef82baf8c582a51890585b1e62643e922d5ae71a.tar.gz
gdb-ef82baf8c582a51890585b1e62643e922d5ae71a.tar.bz2
Initial revision
Diffstat (limited to 'binutils')
-rw-r--r--binutils/is-ranlib.c3
-rw-r--r--binutils/maybe-ranlib.c4
-rw-r--r--binutils/not-ranlib.c3
-rwxr-xr-xbinutils/ranlib.sh3
4 files changed, 13 insertions, 0 deletions
diff --git a/binutils/is-ranlib.c b/binutils/is-ranlib.c
new file mode 100644
index 0000000..fde72a4
--- /dev/null
+++ b/binutils/is-ranlib.c
@@ -0,0 +1,3 @@
+/* Linked with ar.o to flag that this program is 'ranlib' (not 'ar'). */
+
+int is_ranlib = 1;
diff --git a/binutils/maybe-ranlib.c b/binutils/maybe-ranlib.c
new file mode 100644
index 0000000..882bb73
--- /dev/null
+++ b/binutils/maybe-ranlib.c
@@ -0,0 +1,4 @@
+/* Linked with ar.o to flag that this program decides at runtime
+ (using argv[0] if it is is 'ar' or 'ranlib'. */
+
+int is_ranlib = 0;
diff --git a/binutils/not-ranlib.c b/binutils/not-ranlib.c
new file mode 100644
index 0000000..b4b730e
--- /dev/null
+++ b/binutils/not-ranlib.c
@@ -0,0 +1,3 @@
+/* Linked with ar.o to flag that this program is 'ar' (not 'ranlib'). */
+
+int is_ranlib = -1;
diff --git a/binutils/ranlib.sh b/binutils/ranlib.sh
new file mode 100755
index 0000000..2b6fbc4
--- /dev/null
+++ b/binutils/ranlib.sh
@@ -0,0 +1,3 @@
+#!/bin/sh
+# A simple ranlib script, to use less disk space than a ranlib program.
+ar s $1