Restore readelf's string dump to previous behaviour where newlines were caused line...
authorNick Clifton <nickc@redhat.com>
Mon, 2 Mar 2020 10:02:02 +0000 (10:02 +0000)
committerNick Clifton <nickc@redhat.com>
Mon, 2 Mar 2020 10:02:02 +0000 (10:02 +0000)
commitba3265d04cc794d2af8b7d590a0658f7d732071c
tree130a816b897725b0eae9cfdc8ed5a711a48feed5
parentcb001c0d283dd884efe06770d033a50fb1bc6c7d
Restore readelf's string dump to previous behaviour where newlines were caused line breaks.

PR 25543
* readelf.c (dump_section_as_strings): Display new-line characters
as \n and then insert a line break.
* testsuite/binutils-all/pr25543.s: New test.
* testsuite/binutils-all/pr25543.d: Test driver.
* testsuite/binutils-all/readelf.exp: Run the new test.
binutils/ChangeLog
binutils/readelf.c
binutils/testsuite/binutils-all/pr25543.d [new file with mode: 0644]
binutils/testsuite/binutils-all/pr25543.s [new file with mode: 0644]
binutils/testsuite/binutils-all/readelf.exp