summaryrefslogtreecommitdiff
path: root/ld/ldmain.c
diff options
context:
space:
mode:
Diffstat (limited to 'ld/ldmain.c')
-rw-r--r--ld/ldmain.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/ld/ldmain.c b/ld/ldmain.c
index f1112cfc51..29f00d621c 100644
--- a/ld/ldmain.c
+++ b/ld/ldmain.c
@@ -292,9 +292,7 @@ main (int argc, char **argv)
if (link_info.relocatable)
{
- if (link_info.gc_sections)
- einfo ("%P%F: --gc-sections and -r may not be used together\n");
- else if (command_line.relax)
+ if (command_line.relax)
einfo (_("%P%F: --relax and -r may not be used together\n"));
if (link_info.shared)
einfo (_("%P%F: -r and -shared may not be used together\n"));