aboutsummaryrefslogtreecommitdiff
path: root/lib/Target/TargetLoweringObjectFile.cpp
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2009-08-14 00:10:19 +0000
committerDan Gohman <gohman@apple.com>2009-08-14 00:10:19 +0000
commitfa9ca0f788e96fe1eab506817b23d47eed1a3d36 (patch)
treea929a22bee9a480668b8ac03eeb14809c499c6cd /lib/Target/TargetLoweringObjectFile.cpp
parent22c3f1877d22972adb787c553192edb426874594 (diff)
Make these matching rules more strict so that they don't
accidentally match unrelated things. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78966 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/TargetLoweringObjectFile.cpp')
-rw-r--r--lib/Target/TargetLoweringObjectFile.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Target/TargetLoweringObjectFile.cpp b/lib/Target/TargetLoweringObjectFile.cpp
index 7cb87efd40..4be0b9e4e0 100644
--- a/lib/Target/TargetLoweringObjectFile.cpp
+++ b/lib/Target/TargetLoweringObjectFile.cpp
@@ -461,13 +461,13 @@ getELFKindForNamedSection(const char *Name, SectionKind K) {
static unsigned
getELFSectionType(const char *Name, SectionKind K) {
- if (strncmp(Name, ".init_array", 11) == 0)
+ if (strcmp(Name, ".init_array") == 0)
return MCSectionELF::SHT_INIT_ARRAY;
- if (strncmp(Name, ".fini_array", 11) == 0)
+ if (strcmp(Name, ".fini_array") == 0)
return MCSectionELF::SHT_FINI_ARRAY;
- if (strncmp(Name, ".preinit_array", 14) == 0)
+ if (strcmp(Name, ".preinit_array") == 0)
return MCSectionELF::SHT_PREINIT_ARRAY;
if (K.isBSS() || K.isThreadBSS())