Stop objdump from displaying control codes embedded in symbol names.
authorNick Clifton <nickc@redhat.com>
Thu, 10 Jan 2019 15:19:33 +0000 (15:19 +0000)
committerNick Clifton <nickc@redhat.com>
Thu, 10 Jan 2019 15:23:44 +0000 (15:23 +0000)
commit12add40ee4d01fa0cb4bdb67a7d5d13d6a3b4e23
tree5d9f711ac4b3fc6f6d7e091e5b0e9fd7c613fa45
parent8d7bcccb82d9a7efccd75d9552d007c62031e855
Stop objdump from displaying control codes embedded in symbol names.

PR 23963
binutils* objdump.c (sanitize_string): New function.  Removes control
characters from symbol names.
(dump_section_header): Use new function.
(objdump_print_symname): Likewise.
(objdump_print_addr_with_sym): Likewise.
(show_line): Likewise.
(disassemble_bytes): Likewise.
(disassemble_section): Likewise.
(load_specific_debug_section): Likewise.
(read_section_stabs): Likewise.
(print_section_stabs): Likewise.
(dump_section): Likewise.
(dump_reloc_set): Likewise.
(dump_relocs_in_section): Likewise.
(dump_bfd): Likewise.
(display_any_bfd): Likewise.

gas * testsuite/gas/mips/mips16-branch-absolute-1.d: Adjust for the fact that
control characters are now displayed as escape sequences.
* testsuite/gas/mips/mips16-e.d: Likewise.
* testsuite/gas/mips/mips16-pcrel-0.d: Likewise.
* testsuite/gas/mips/mips16-pcrel-1.d: Likewise.
* testsuite/gas/mips/mips16-pcrel-delay-0.d: Likewise.
* testsuite/gas/mips/mips16-pcrel-delay-1.d: Likewise.
* testsuite/gas/mips/mips16-pcrel-n32-0.d: Likewise.
* testsuite/gas/mips/mips16-pcrel-n32-1.d: Likewise.
* testsuite/gas/mips/mips16-pcrel-n64-sym32-0.d: Likewise.
* testsuite/gas/mips/mips16-pcrel-n64-sym32-1.d: Likewise.
* testsuite/gas/mips/mips16e2@mips16-pcrel-0.d: Likewise.
* testsuite/gas/mips/mips16e2@mips16-pcrel-1.d: Likewise.
* testsuite/gas/mips/mips16e2@mips16-pcrel-delay-0.d: Likewise.
* testsuite/gas/mips/mips16e2@mips16-pcrel-delay-1.d: Likewise.
* testsuite/gas/mips/mips16e2@mips16-pcrel-n32-0.d: Likewise.
* testsuite/gas/mips/mips16e2@mips16-pcrel-n32-1.d: Likewise.
* testsuite/gas/mips/mips16e2@mips16-pcrel-n64-sym32-0.d:
Likewise.
* testsuite/gas/mips/mips16e2@mips16-pcrel-n64-sym32-1.d:
Likewise.
* testsuite/gas/mips/mipsel16-e.d: Likewise.
* testsuite/gas/mips/mipsr6@msa.d: Likewise.
* testsuite/gas/mips/mipsr6@relax-swap3.d: Likewise.
* testsuite/gas/mips/r6-64-n32.d: Likewise.
* testsuite/gas/mips/r6-64-n64.d: Likewise.
* testsuite/gas/mips/r6-n32.d: Likewise.
* testsuite/gas/mips/r6-n64.d: Likewise.
* testsuite/gas/mips/r6.d: Likewise.
* testsuite/gas/mips/tmips16-e.d: Likewise.
* testsuite/gas/mips/tmipsel16-e.d: Likewise.
* testsuite/gas/mn10300/relax.d: Likewise.
33 files changed:
binutils/ChangeLog
binutils/objdump.c
gas/ChangeLog
gas/testsuite/gas/all/eqv-dot.d
gas/testsuite/gas/mips/mips16-branch-absolute-1.d
gas/testsuite/gas/mips/mips16-e.d
gas/testsuite/gas/mips/mips16-pcrel-0.d
gas/testsuite/gas/mips/mips16-pcrel-1.d
gas/testsuite/gas/mips/mips16-pcrel-delay-0.d
gas/testsuite/gas/mips/mips16-pcrel-delay-1.d
gas/testsuite/gas/mips/mips16-pcrel-n32-0.d
gas/testsuite/gas/mips/mips16-pcrel-n32-1.d
gas/testsuite/gas/mips/mips16-pcrel-n64-sym32-0.d
gas/testsuite/gas/mips/mips16-pcrel-n64-sym32-1.d
gas/testsuite/gas/mips/mips16e2@mips16-pcrel-0.d
gas/testsuite/gas/mips/mips16e2@mips16-pcrel-1.d
gas/testsuite/gas/mips/mips16e2@mips16-pcrel-delay-0.d
gas/testsuite/gas/mips/mips16e2@mips16-pcrel-delay-1.d
gas/testsuite/gas/mips/mips16e2@mips16-pcrel-n32-0.d
gas/testsuite/gas/mips/mips16e2@mips16-pcrel-n32-1.d
gas/testsuite/gas/mips/mips16e2@mips16-pcrel-n64-sym32-0.d
gas/testsuite/gas/mips/mips16e2@mips16-pcrel-n64-sym32-1.d
gas/testsuite/gas/mips/mipsel16-e.d
gas/testsuite/gas/mips/mipsr6@msa.d
gas/testsuite/gas/mips/mipsr6@relax-swap3.d
gas/testsuite/gas/mips/r6-64-n32.d
gas/testsuite/gas/mips/r6-64-n64.d
gas/testsuite/gas/mips/r6-n32.d
gas/testsuite/gas/mips/r6-n64.d
gas/testsuite/gas/mips/r6.d
gas/testsuite/gas/mips/tmips16-e.d
gas/testsuite/gas/mips/tmipsel16-e.d
gas/testsuite/gas/mn10300/relax.d