mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-04 21:30:49 +00:00
Provide proper section flags for various BSS flavours
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81322 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
8ddb569d8a
commit
4c0b349253
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user