NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: port-arm/52934: The binary whitch has 4K p_aligin in the Elf Phdr cause to system hangup in the NetBSD/earm RPI (Kernel PageSize is 8k).



On 01/20/18 05:50, oshima-ya%yagoto-urayama.jp@localhost wrote:
Number:         52934
Category:       port-arm
Synopsis:       The binary whitch has 4K p_aligin in the Elf Phdr cause to system hangup in the NetBSD/earm RPI (Kernel PageSize is 8k).
I think the correct fix is to mark as 8K p_align. This patch should do it

Nick
Index: external/gpl3/binutils/dist/ld/emulparams/armelf_nbsd.sh
===================================================================
RCS file: /cvsroot/src/external/gpl3/binutils/dist/ld/emulparams/armelf_nbsd.sh,v
retrieving revision 1.9
diff -u -p -r1.9 armelf_nbsd.sh
--- external/gpl3/binutils/dist/ld/emulparams/armelf_nbsd.sh	11 Oct 2016 07:05:29 -0000	1.9
+++ external/gpl3/binutils/dist/ld/emulparams/armelf_nbsd.sh	20 Jan 2018 12:54:55 -0000
@@ -1,5 +1,5 @@
 . ${srcdir}/emulparams/armelf.sh
-MAXPAGESIZE="CONSTANT (MAXPAGESIZE)"
+COMMONPAGESIZE=0x2000
 TEXT_START_ADDR=0x00010000
 TARGET2_TYPE=got-rel
 GENERATE_PIE_SCRIPT=yes


Home | Main Index | Thread Index | Old Index