aboutsummaryrefslogtreecommitdiff
path: root/lib/MC/MCSectionELF.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/MC/MCSectionELF.cpp')
-rw-r--r--lib/MC/MCSectionELF.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/MC/MCSectionELF.cpp b/lib/MC/MCSectionELF.cpp
index 6e6f9990fe..246bf4adac 100644
--- a/lib/MC/MCSectionELF.cpp
+++ b/lib/MC/MCSectionELF.cpp
@@ -27,9 +27,9 @@ bool MCSectionELF::ShouldOmitSectionDirective(const char *Name,
const TargetAsmInfo &TAI) const {
// FIXME: Does .section .bss/.data/.text work everywhere??
- if (strncmp(Name, ".text", 5) == 0 ||
- strncmp(Name, ".data", 5) == 0 ||
- (strncmp(Name, ".bss", 4) == 0 &&
+ if (strcmp(Name, ".text") == 0 ||
+ strcmp(Name, ".data") == 0 ||
+ (strcmp(Name, ".bss") == 0 &&
!TAI.usesELFSectionDirectiveForBSS()))
return true;