llvm.org GIT mirror llvm / 6967f31
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 Tanya Lattner 10 years ago
1 changed file(s) with 5 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
438438 if (Name[0] != '.') return K;
439439
440440 // Some lame default implementation based on some magic section names.
441 if (strncmp(Name, ".gnu.linkonce.b.", 16) == 0 ||
441 if (strcmp(Name, ".bss") == 0 ||
442 strncmp(Name, ".bss.", 5) == 0 ||
443 strncmp(Name, ".gnu.linkonce.b.", 16) == 0 ||
442444 strncmp(Name, ".llvm.linkonce.b.", 17) == 0 ||
445 strcmp(Name, ".sbss") == 0 ||
446 strncmp(Name, ".sbss.", 6) == 0 ||
443447 strncmp(Name, ".gnu.linkonce.sb.", 17) == 0 ||
444448 strncmp(Name, ".llvm.linkonce.sb.", 18) == 0)
445449 return SectionKind::getBSS();