diff options
Diffstat (limited to 'gas/config')
-rw-r--r-- | gas/config/tc-i386.c | 6 | ||||
-rw-r--r-- | gas/config/tc-sparc.c | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/gas/config/tc-i386.c b/gas/config/tc-i386.c index 0790122..84a3f29 100644 --- a/gas/config/tc-i386.c +++ b/gas/config/tc-i386.c @@ -13016,7 +13016,7 @@ md_parse_option (int c, const char *arg) list = bfd_target_list (); for (l = list; *l != NULL; l++) - if (CONST_STRNEQ (*l, "elf64-x86-64") + if (startswith (*l, "elf64-x86-64") || strcmp (*l, "coff-x86-64") == 0 || strcmp (*l, "pe-x86-64") == 0 || strcmp (*l, "pei-x86-64") == 0 @@ -13040,7 +13040,7 @@ md_parse_option (int c, const char *arg) list = bfd_target_list (); for (l = list; *l != NULL; l++) - if (CONST_STRNEQ (*l, "elf32-x86-64")) + if (startswith (*l, "elf32-x86-64")) { default_arch = "x86_64:32"; break; @@ -14366,7 +14366,7 @@ x86_64_section_letter (int letter, const char **ptr_msg) bfd_vma x86_64_section_word (char *str, size_t len) { - if (len == 5 && flag_code == CODE_64BIT && CONST_STRNEQ (str, "large")) + if (len == 5 && flag_code == CODE_64BIT && startswith (str, "large")) return SHF_X86_64_LARGE; return -1; diff --git a/gas/config/tc-sparc.c b/gas/config/tc-sparc.c index d526a34..61cd27d 100644 --- a/gas/config/tc-sparc.c +++ b/gas/config/tc-sparc.c @@ -548,12 +548,12 @@ md_parse_option (int c, const char *arg) { if (sparc_arch_size == 32) { - if (CONST_STRNEQ (*l, "elf32-sparc")) + if (startswith (*l, "elf32-sparc")) break; } else { - if (CONST_STRNEQ (*l, "elf64-sparc")) + if (startswith (*l, "elf64-sparc")) break; } } |