mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-25 21:41:47 +08:00
* config/tc-mips.c (md_begin): Use strncmp to compare TARGET_OS, in
case that some characters append at the end of the name. (mips_ip): Likewise. (s_change_sec): Likewise. (md_section_align): Likewise.
This commit is contained in:
@ -1,3 +1,11 @@
|
|||||||
|
2008-05-09 Chao-ying Fu <fu@mips.com>
|
||||||
|
|
||||||
|
* config/tc-mips.c (md_begin): Use strncmp to compare TARGET_OS, in
|
||||||
|
case that some characters append at the end of the name.
|
||||||
|
(mips_ip): Likewise.
|
||||||
|
(s_change_sec): Likewise.
|
||||||
|
(md_section_align): Likewise.
|
||||||
|
|
||||||
2008-05-07 Bob Wilson <bob.wilson@acm.org>
|
2008-05-07 Bob Wilson <bob.wilson@acm.org>
|
||||||
|
|
||||||
* config/tc-xtensa.c (xtensa_create_property_segments): Use
|
* config/tc-xtensa.c (xtensa_create_property_segments): Use
|
||||||
|
@ -1957,8 +1957,8 @@ md_begin (void)
|
|||||||
/* On a native system other than VxWorks, sections must be aligned
|
/* On a native system other than VxWorks, sections must be aligned
|
||||||
to 16 byte boundaries. When configured for an embedded ELF
|
to 16 byte boundaries. When configured for an embedded ELF
|
||||||
target, we don't bother. */
|
target, we don't bother. */
|
||||||
if (strcmp (TARGET_OS, "elf") != 0
|
if (strncmp (TARGET_OS, "elf", 3) != 0
|
||||||
&& strcmp (TARGET_OS, "vxworks") != 0)
|
&& strncmp (TARGET_OS, "vxworks", 7) != 0)
|
||||||
{
|
{
|
||||||
(void) bfd_set_section_alignment (stdoutput, text_section, 4);
|
(void) bfd_set_section_alignment (stdoutput, text_section, 4);
|
||||||
(void) bfd_set_section_alignment (stdoutput, data_section, 4);
|
(void) bfd_set_section_alignment (stdoutput, data_section, 4);
|
||||||
@ -1980,7 +1980,7 @@ md_begin (void)
|
|||||||
running program can access it. However, we don't load it
|
running program can access it. However, we don't load it
|
||||||
if we are configured for an embedded target */
|
if we are configured for an embedded target */
|
||||||
flags = SEC_READONLY | SEC_DATA;
|
flags = SEC_READONLY | SEC_DATA;
|
||||||
if (strcmp (TARGET_OS, "elf") != 0)
|
if (strncmp (TARGET_OS, "elf", 3) != 0)
|
||||||
flags |= SEC_ALLOC | SEC_LOAD;
|
flags |= SEC_ALLOC | SEC_LOAD;
|
||||||
|
|
||||||
if (mips_abi != N64_ABI)
|
if (mips_abi != N64_ABI)
|
||||||
@ -9552,7 +9552,7 @@ do_msbd:
|
|||||||
| SEC_READONLY
|
| SEC_READONLY
|
||||||
| SEC_DATA));
|
| SEC_DATA));
|
||||||
frag_align (*args == 'l' ? 2 : 3, 0, 0);
|
frag_align (*args == 'l' ? 2 : 3, 0, 0);
|
||||||
if (IS_ELF && strcmp (TARGET_OS, "elf") != 0)
|
if (IS_ELF && strncmp (TARGET_OS, "elf", 3) != 0)
|
||||||
record_alignment (new_seg, 4);
|
record_alignment (new_seg, 4);
|
||||||
else
|
else
|
||||||
record_alignment (new_seg, *args == 'l' ? 2 : 3);
|
record_alignment (new_seg, *args == 'l' ? 2 : 3);
|
||||||
@ -12175,7 +12175,7 @@ s_change_sec (int sec)
|
|||||||
bfd_set_section_flags (stdoutput, seg, (SEC_ALLOC | SEC_LOAD
|
bfd_set_section_flags (stdoutput, seg, (SEC_ALLOC | SEC_LOAD
|
||||||
| SEC_READONLY | SEC_RELOC
|
| SEC_READONLY | SEC_RELOC
|
||||||
| SEC_DATA));
|
| SEC_DATA));
|
||||||
if (strcmp (TARGET_OS, "elf") != 0)
|
if (strncmp (TARGET_OS, "elf", 3) != 0)
|
||||||
record_alignment (seg, 4);
|
record_alignment (seg, 4);
|
||||||
}
|
}
|
||||||
demand_empty_rest_of_line ();
|
demand_empty_rest_of_line ();
|
||||||
@ -12187,7 +12187,7 @@ s_change_sec (int sec)
|
|||||||
{
|
{
|
||||||
bfd_set_section_flags (stdoutput, seg,
|
bfd_set_section_flags (stdoutput, seg,
|
||||||
SEC_ALLOC | SEC_LOAD | SEC_RELOC | SEC_DATA);
|
SEC_ALLOC | SEC_LOAD | SEC_RELOC | SEC_DATA);
|
||||||
if (strcmp (TARGET_OS, "elf") != 0)
|
if (strncmp (TARGET_OS, "elf", 3) != 0)
|
||||||
record_alignment (seg, 4);
|
record_alignment (seg, 4);
|
||||||
}
|
}
|
||||||
demand_empty_rest_of_line ();
|
demand_empty_rest_of_line ();
|
||||||
@ -13276,7 +13276,7 @@ md_section_align (asection *seg, valueT addr)
|
|||||||
However, Irix 5 may prefer that we align them at least to a 16
|
However, Irix 5 may prefer that we align them at least to a 16
|
||||||
byte boundary. We don't bother to align the sections if we
|
byte boundary. We don't bother to align the sections if we
|
||||||
are targeted for an embedded system. */
|
are targeted for an embedded system. */
|
||||||
if (strcmp (TARGET_OS, "elf") == 0)
|
if (strncmp (TARGET_OS, "elf", 3) == 0)
|
||||||
return addr;
|
return addr;
|
||||||
if (align > 4)
|
if (align > 4)
|
||||||
align = 4;
|
align = 4;
|
||||||
|
Reference in New Issue
Block a user