mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-03 15:23:53 +08:00
* config/tc-i386.c (md_parse_option): Use CONST_STRNEQ.
(x86_64_section_letter): Likewise.
This commit is contained in:
parent
9128c20543
commit
8620418b9c
@ -1,3 +1,8 @@
|
||||
2006-10-19 Mike Frysinger <vapier@gentoo.org>
|
||||
|
||||
* config/tc-i386.c (md_parse_option): Use CONST_STRNEQ.
|
||||
(x86_64_section_letter): Likewise.
|
||||
|
||||
2006-10-19 Mei Ligang <ligang@sunnorth.com.cn>
|
||||
|
||||
* config/tc-score.c (build_relax_frag): Compute correct
|
||||
|
@ -5882,7 +5882,7 @@ md_parse_option (int c, char *arg)
|
||||
|
||||
list = bfd_target_list ();
|
||||
for (l = list; *l != NULL; l++)
|
||||
if ( strncmp (*l, "elf64-x86-64", 12) == 0
|
||||
if (CONST_STRNEQ (*l, "elf64-x86-64")
|
||||
|| strcmp (*l, "coff-x86-64") == 0
|
||||
|| strcmp (*l, "pe-x86-64") == 0
|
||||
|| strcmp (*l, "pei-x86-64") == 0)
|
||||
@ -7785,7 +7785,7 @@ x86_64_section_letter (int letter, char **ptr_msg)
|
||||
int
|
||||
x86_64_section_word (char *str, size_t len)
|
||||
{
|
||||
if (len == 5 && flag_code == CODE_64BIT && strncmp (str, "large", 5) == 0)
|
||||
if (len == 5 && flag_code == CODE_64BIT && CONST_STRNEQ (str, "large"))
|
||||
return SHF_X86_64_LARGE;
|
||||
|
||||
return -1;
|
||||
|
Loading…
Reference in New Issue
Block a user