diff options
author | Tanya Lattner <tonic@nondot.org> | 2009-09-10 00:18:43 +0000 |
---|---|---|
committer | Tanya Lattner <tonic@nondot.org> | 2009-09-10 00:18:43 +0000 |
commit | 6967f31cc2f433d05018ff3b21d3bfcd1c5eee9a (patch) | |
tree | 0b254f2e484828854832e2b4c26834d0e710adba | |
parent | 280f2245935c235a27a6833292feee5519b18678 (diff) |
Merge 81322 from mainline.
Provide proper section flags for various BSS flavours
git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_26@81410 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Target/TargetLoweringObjectFile.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/Target/TargetLoweringObjectFile.cpp b/lib/Target/TargetLoweringObjectFile.cpp index 84b1b93ab0..ed6cbd5e66 100644 --- a/lib/Target/TargetLoweringObjectFile.cpp +++ b/lib/Target/TargetLoweringObjectFile.cpp @@ -439,8 +439,12 @@ getELFKindForNamedSection(const char *Name, SectionKind K) { if (Name[0] != '.') return K; // Some lame default implementation based on some magic section names. - if (strncmp(Name, ".gnu.linkonce.b.", 16) == 0 || + if (strcmp(Name, ".bss") == 0 || + strncmp(Name, ".bss.", 5) == 0 || + strncmp(Name, ".gnu.linkonce.b.", 16) == 0 || strncmp(Name, ".llvm.linkonce.b.", 17) == 0 || + strcmp(Name, ".sbss") == 0 || + strncmp(Name, ".sbss.", 6) == 0 || strncmp(Name, ".gnu.linkonce.sb.", 17) == 0 || strncmp(Name, ".llvm.linkonce.sb.", 18) == 0) return SectionKind::getBSS(); |