summaryrefslogtreecommitdiffstats
path: root/src/strip.c
diff options
context:
space:
mode:
authorRoland McGrath <[email protected]>2006-12-17 23:56:51 +0000
committerRoland McGrath <[email protected]>2006-12-17 23:56:51 +0000
commit8190db6a86a37aec86c81626ab1b083c96aff891 (patch)
tree2b065733f6ee44885a447e9506fae59518076048 /src/strip.c
parent7c0e79ffc201e4828a050b35f2c9d96e3001cb48 (diff)
propagate from branch 'com.redhat.elfutils' (head b4944cf70801d9dac056f4f80ef1334e5acb8bdc)
to branch 'com.redhat.elfutils.roland.pending' (head e7e402c668fb0670fc5f6b6a522853ae88f32f11)
Diffstat (limited to 'src/strip.c')
-rw-r--r--src/strip.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/strip.c b/src/strip.c
index fc6ddf50..4c6b7bfb 100644
--- a/src/strip.c
+++ b/src/strip.c
@@ -344,9 +344,9 @@ process_file (const char *fname)
case ELF_K_AR:
/* It is not possible to strip the content of an archive direct
the output to a specific file. */
- if (unlikely (output_fname != NULL))
+ if (unlikely (output_fname != NULL || debug_fname != NULL))
{
- error (0, 0, gettext ("%s: cannot use -o when stripping archive"),
+ error (0, 0, gettext ("%s: cannot use -o or -f when stripping archive"),
fname);
result = 1;
}