aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--binutils/is-strip.c3
-rw-r--r--binutils/maybe-strip.c4
-rw-r--r--binutils/not-strip.c3
3 files changed, 10 insertions, 0 deletions
diff --git a/binutils/is-strip.c b/binutils/is-strip.c
new file mode 100644
index 0000000..f5e1cac
--- /dev/null
+++ b/binutils/is-strip.c
@@ -0,0 +1,3 @@
+/* Linked with copy.o to flag that this program is 'strip' (not 'copy'). */
+
+int is_strip = 1;
diff --git a/binutils/maybe-strip.c b/binutils/maybe-strip.c
new file mode 100644
index 0000000..7da8763
--- /dev/null
+++ b/binutils/maybe-strip.c
@@ -0,0 +1,4 @@
+/* Linked with copy.o to flag that this program decides at runtime
+ (using argv[0] if it is is 'strip' or 'copy'. */
+
+int is_strip = -1;
diff --git a/binutils/not-strip.c b/binutils/not-strip.c
new file mode 100644
index 0000000..0e491fb
--- /dev/null
+++ b/binutils/not-strip.c
@@ -0,0 +1,3 @@
+/* Linked with copy.o to flag that this program is 'copy' (not 'strip'). */
+
+int is_strip = 0;