mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-04-09 16:45:03 +00:00
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
This commit is contained in:
parent
22c3f1877d
commit
fa9ca0f788
@ -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())
|
||||
|
Loading…
x
Reference in New Issue
Block a user