powerpc: Fix error message during relocation overflow
commit3a32b7168d9f49eed5615ca17c9a8bd53cfe94ed
authorTulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
Fri, 5 Jan 2018 20:34:09 +0000 (5 18:34 -0200)
committerTulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
Fri, 5 Jan 2018 20:34:09 +0000 (5 18:34 -0200)
treed87446981d932b3796ce000f6f1b2197c3b54be3
parenta6d0afb5075486773c4c70119a9bd9cd78faec9e
powerpc: Fix error message during relocation overflow

The function _itoa_word() writes characters from the higher address to
the lower address, requiring the destination string to reserve that size
before calling it.

* sysdeps/powerpc/powerpc64/dl-machine.c (_dl_reloc_overflow):
Reserve 16 chars to reloc_addr before calling _itoa_word.

Signed-off-by: Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
ChangeLog
sysdeps/powerpc/powerpc64/dl-machine.c