aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/ld
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmd/ld')
-rw-r--r--src/cmd/ld/elf.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/cmd/ld/elf.c b/src/cmd/ld/elf.c
index c771d10ec3..630906653e 100644
--- a/src/cmd/ld/elf.c
+++ b/src/cmd/ld/elf.c
@@ -1398,8 +1398,10 @@ elfobj:
eh->shstrndx = sh->shnum;
// put these sections early in the list
- elfshname(".symtab");
- elfshname(".strtab");
+ if(!debug['s']) {
+ elfshname(".symtab");
+ elfshname(".strtab");
+ }
for(sect=segtext.sect; sect!=nil; sect=sect->next)
elfshbits(sect);