When displaying ARM private file flag bits, use a 0x prefix.
* elf32-arm.c (elf32_arm_print_private_bfd_data): Prefix hex value of private flags with 0x. * elfnn-aarch64.c (elfNN_aarch64_print_private_bfd_data): Likewise.
This commit is contained in:
parent
5b4293ba3c
commit
dbb078f66e
@ -1,3 +1,9 @@
|
|||||||
|
2021-01-04 Alexander Fedotov <alfedotov@gmail.com>
|
||||||
|
|
||||||
|
* elf32-arm.c (elf32_arm_print_private_bfd_data): Prefix hex value
|
||||||
|
of private flags with 0x.
|
||||||
|
* elfnn-aarch64.c (elfNN_aarch64_print_private_bfd_data): Likewise.
|
||||||
|
|
||||||
2021-01-04 Alan Modra <amodra@gmail.com>
|
2021-01-04 Alan Modra <amodra@gmail.com>
|
||||||
|
|
||||||
PR 26822
|
PR 26822
|
||||||
|
@ -15062,7 +15062,7 @@ elf32_arm_print_private_bfd_data (bfd *abfd, void * ptr)
|
|||||||
/* Ignore init flag - it may not be set, despite the flags field
|
/* Ignore init flag - it may not be set, despite the flags field
|
||||||
containing valid data. */
|
containing valid data. */
|
||||||
|
|
||||||
fprintf (file, _("private flags = %lx:"), elf_elfheader (abfd)->e_flags);
|
fprintf (file, _("private flags = 0x%lx:"), elf_elfheader (abfd)->e_flags);
|
||||||
|
|
||||||
switch (EF_ARM_EABI_VERSION (flags))
|
switch (EF_ARM_EABI_VERSION (flags))
|
||||||
{
|
{
|
||||||
@ -15183,7 +15183,7 @@ elf32_arm_print_private_bfd_data (bfd *abfd, void * ptr)
|
|||||||
flags &= ~ (EF_ARM_RELEXEC | EF_ARM_PIC);
|
flags &= ~ (EF_ARM_RELEXEC | EF_ARM_PIC);
|
||||||
|
|
||||||
if (flags)
|
if (flags)
|
||||||
fprintf (file, _("<Unrecognised flag bits set>"));
|
fprintf (file, _(" <Unrecognised flag bits set>"));
|
||||||
|
|
||||||
fputc ('\n', file);
|
fputc ('\n', file);
|
||||||
|
|
||||||
|
@ -7331,10 +7331,10 @@ elfNN_aarch64_print_private_bfd_data (bfd *abfd, void *ptr)
|
|||||||
containing valid data. */
|
containing valid data. */
|
||||||
|
|
||||||
/* xgettext:c-format */
|
/* xgettext:c-format */
|
||||||
fprintf (file, _("private flags = %lx:"), elf_elfheader (abfd)->e_flags);
|
fprintf (file, _("private flags = 0x%lx:"), elf_elfheader (abfd)->e_flags);
|
||||||
|
|
||||||
if (flags)
|
if (flags)
|
||||||
fprintf (file, _("<Unrecognised flag bits set>"));
|
fprintf (file, _(" <Unrecognised flag bits set>"));
|
||||||
|
|
||||||
fputc ('\n', file);
|
fputc ('\n', file);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user