s390x/arch_dump: use proper note name and note size
commit5f706fdc164b20b48254eadf7bd413edace34499
authorChristian Borntraeger <borntraeger@de.ibm.com>
Wed, 8 Feb 2017 08:40:00 +0000 (8 09:40 +0100)
committerCornelia Huck <cornelia.huck@de.ibm.com>
Fri, 24 Feb 2017 09:15:18 +0000 (24 10:15 +0100)
tree501d83f273cc8e24501b095d32ff6f2d60422f51
parentb1914b824ade1706847428e64ef5637ffc0ae238
s390x/arch_dump: use proper note name and note size

In binutils/libbfd (bfd/elf.c) it is enforced that all s390
specific ELF notes like e.g. NT_S390_PREFIX or NT_S390_CTRS
have "LINUX" specified as note name and that the namesz is
6. Otherwise the notes are ignored.

QEMU currently uses "CORE" for these notes. Up to now this has
not been a real problem because the dump analysis tool "crash"
does handle that. But it will break all programs that use libbfd
for processing ELF notes.

So fix this and use "LINUX" for all s390 specific notes to comply
with libbfd. Also set the correct namesz.

Reported-by: Philipp Rudo <prudo@linux.vnet.ibm.com>
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
target/s390x/arch_dump.c