mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-21 18:39:34 +08:00
Remove the extra `\n' in warning/error messages
* elf-properties.c (_bfd_elf_parse_gnu_properties): Remove the extra `\n' in warning/error messages. * elf32-i386.c (elf_i386_parse_gnu_properties): Likewise. * elf64-x86-64.c (elf_x86_64_parse_gnu_properties): Likewise.
This commit is contained in:
@ -1,3 +1,10 @@
|
|||||||
|
2017-04-11 H.J. Lu <hongjiu.lu@intel.com>
|
||||||
|
|
||||||
|
* elf-properties.c (_bfd_elf_parse_gnu_properties): Remove the
|
||||||
|
extra `\n' in warning/error messages.
|
||||||
|
* elf32-i386.c (elf_i386_parse_gnu_properties): Likewise.
|
||||||
|
* elf64-x86-64.c (elf_x86_64_parse_gnu_properties): Likewise.
|
||||||
|
|
||||||
2017-04-11 H.J. Lu <hongjiu.lu@intel.com>
|
2017-04-11 H.J. Lu <hongjiu.lu@intel.com>
|
||||||
|
|
||||||
* elf-properties.c (_bfd_elf_parse_gnu_properties): Ignore
|
* elf-properties.c (_bfd_elf_parse_gnu_properties): Ignore
|
||||||
|
@ -88,7 +88,7 @@ _bfd_elf_parse_gnu_properties (bfd *abfd, Elf_Internal_Note *note)
|
|||||||
{
|
{
|
||||||
bad_size:
|
bad_size:
|
||||||
_bfd_error_handler
|
_bfd_error_handler
|
||||||
(_("warning: %B: corrupt GNU_PROPERTY_TYPE (%ld) size: %#lx\n"),
|
(_("warning: %B: corrupt GNU_PROPERTY_TYPE (%ld) size: %#lx"),
|
||||||
abfd, note->type, note->descsz);
|
abfd, note->type, note->descsz);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
@ -104,7 +104,7 @@ bad_size:
|
|||||||
if ((ptr + datasz) > ptr_end)
|
if ((ptr + datasz) > ptr_end)
|
||||||
{
|
{
|
||||||
_bfd_error_handler
|
_bfd_error_handler
|
||||||
(_("warning: %B: corrupt GNU_PROPERTY_TYPE (%ld) type (0x%x) datasz: 0x%x\n"),
|
(_("warning: %B: corrupt GNU_PROPERTY_TYPE (%ld) type (0x%x) datasz: 0x%x"),
|
||||||
abfd, note->type, type, datasz);
|
abfd, note->type, type, datasz);
|
||||||
/* Clear all properties. */
|
/* Clear all properties. */
|
||||||
elf_properties (abfd) = NULL;
|
elf_properties (abfd) = NULL;
|
||||||
@ -143,7 +143,7 @@ bad_size:
|
|||||||
if (datasz != align_size)
|
if (datasz != align_size)
|
||||||
{
|
{
|
||||||
_bfd_error_handler
|
_bfd_error_handler
|
||||||
(_("warning: %B: corrupt stack size: 0x%x\n"),
|
(_("warning: %B: corrupt stack size: 0x%x"),
|
||||||
abfd, datasz);
|
abfd, datasz);
|
||||||
/* Clear all properties. */
|
/* Clear all properties. */
|
||||||
elf_properties (abfd) = NULL;
|
elf_properties (abfd) = NULL;
|
||||||
@ -161,7 +161,7 @@ bad_size:
|
|||||||
if (datasz != 0)
|
if (datasz != 0)
|
||||||
{
|
{
|
||||||
_bfd_error_handler
|
_bfd_error_handler
|
||||||
(_("warning: %B: corrupt no copy on protected size: 0x%x\n"),
|
(_("warning: %B: corrupt no copy on protected size: 0x%x"),
|
||||||
abfd, datasz);
|
abfd, datasz);
|
||||||
/* Clear all properties. */
|
/* Clear all properties. */
|
||||||
elf_properties (abfd) = NULL;
|
elf_properties (abfd) = NULL;
|
||||||
@ -177,7 +177,7 @@ bad_size:
|
|||||||
}
|
}
|
||||||
|
|
||||||
_bfd_error_handler
|
_bfd_error_handler
|
||||||
(_("warning: %B: unsupported GNU_PROPERTY_TYPE (%ld) type: 0x%x\n"),
|
(_("warning: %B: unsupported GNU_PROPERTY_TYPE (%ld) type: 0x%x"),
|
||||||
abfd, note->type, type);
|
abfd, note->type, type);
|
||||||
|
|
||||||
next:
|
next:
|
||||||
|
@ -6147,8 +6147,8 @@ elf_i386_parse_gnu_properties (bfd *abfd, unsigned int type,
|
|||||||
{
|
{
|
||||||
_bfd_error_handler
|
_bfd_error_handler
|
||||||
((type == GNU_PROPERTY_X86_ISA_1_USED
|
((type == GNU_PROPERTY_X86_ISA_1_USED
|
||||||
? _("error: %B: <corrupt x86 ISA used size: 0x%x>\n")
|
? _("error: %B: <corrupt x86 ISA used size: 0x%x>")
|
||||||
: _("error: %B: <corrupt x86 ISA needed size: 0x%x>\n")),
|
: _("error: %B: <corrupt x86 ISA needed size: 0x%x>")),
|
||||||
abfd, datasz);
|
abfd, datasz);
|
||||||
return property_corrupt;
|
return property_corrupt;
|
||||||
}
|
}
|
||||||
|
@ -6913,8 +6913,8 @@ elf_x86_64_parse_gnu_properties (bfd *abfd, unsigned int type,
|
|||||||
{
|
{
|
||||||
_bfd_error_handler
|
_bfd_error_handler
|
||||||
((type == GNU_PROPERTY_X86_ISA_1_USED
|
((type == GNU_PROPERTY_X86_ISA_1_USED
|
||||||
? _("error: %B: <corrupt x86 ISA used size: 0x%x>\n")
|
? _("error: %B: <corrupt x86 ISA used size: 0x%x>")
|
||||||
: _("error: %B: <corrupt x86 ISA needed size: 0x%x>\n")),
|
: _("error: %B: <corrupt x86 ISA needed size: 0x%x>")),
|
||||||
abfd, datasz);
|
abfd, datasz);
|
||||||
return property_corrupt;
|
return property_corrupt;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user