[llvm-commits] [llvm] r81322 - /llvm/trunk/lib/Target/TargetLoweringObjectFile.cpp
Anton Korobeynikov
asl at math.spbu.ru
Wed Sep 9 01:48:53 PDT 2009
Author: asl
Date: Wed Sep 9 03:48:53 2009
New Revision: 81322
URL: http://llvm.org/viewvc/llvm-project?rev=81322&view=rev
Log:
Provide proper section flags for various BSS flavours
Modified:
llvm/trunk/lib/Target/TargetLoweringObjectFile.cpp
Modified: llvm/trunk/lib/Target/TargetLoweringObjectFile.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/TargetLoweringObjectFile.cpp?rev=81322&r1=81321&r2=81322&view=diff
==============================================================================
--- llvm/trunk/lib/Target/TargetLoweringObjectFile.cpp (original)
+++ llvm/trunk/lib/Target/TargetLoweringObjectFile.cpp Wed Sep 9 03:48:53 2009
@@ -439,8 +439,12 @@
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();
More information about the llvm-commits
mailing list