https://sourceware.org/bugzilla/show_bug.cgi?id=25543
Nick Clifton <nickc at redhat dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |nickc at redhat dot com --- Comment #1 from Nick Clifton <nickc at redhat dot com> --- Created attachment 12326 --> https://sourceware.org/bugzilla/attachment.cgi?id=12326&action=edit Proposed patch Hi Holger, What do you think of the uploaded patch ? With it applied, readelf's output for your test case looks like this: String dump of section '.mysection': [ 0] line1 : 1235\n [ d] line2 : 5678\n [ 1a] line3 : abcdefg\n [ 2a] line4 : hijklmnop\n [ 3c] line5 : qrstu\n [ 4a] line6 : vwxyz\n Note - the \n characters are there deliberately. I think that it is important to show that there is a newline character present in the string. Cheers Nick -- You are receiving this mail because: You are on the CC list for the bug.