]> git.wh0rd.org - patches.git/blob - binutils-i386-CONST_STRNEQ.patch
more random patches. who knows.
[patches.git] / binutils-i386-CONST_STRNEQ.patch
1 --- gas/config/tc-i386.c
2 +++ gas/config/tc-i386.c
3 @@ -5882,7 +5882,7 @@ md_parse_option (int c, char *arg)
4
5 list = bfd_target_list ();
6 for (l = list; *l != NULL; l++)
7 - if ( strncmp (*l, "elf64-x86-64", 12) == 0
8 + if (CONST_STRNEQ (*l, "elf64-x86-64")
9 || strcmp (*l, "coff-x86-64") == 0
10 || strcmp (*l, "pe-x86-64") == 0
11 || strcmp (*l, "pei-x86-64") == 0)
12 @@ -7785,7 +7785,7 @@ x86_64_section_letter (int letter, char
13 int
14 x86_64_section_word (char *str, size_t len)
15 {
16 - if (len == 5 && flag_code == CODE_64BIT && strncmp (str, "large", 5) == 0)
17 + if (len == 5 && flag_code == CODE_64BIT && CONST_STRNEQ (str, "large") == 0)
18 return SHF_X86_64_LARGE;
19
20 return -1;