From: Kees Cook Date: Tue, 18 Nov 2014 00:16:04 +0000 (-0800) Subject: x86, kaslr: Handle Gold linker for finding bss/brk X-Git-Tag: omap-for-v3.19/fixes-for-merge-window~93^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=70b61e362187b5fccac206506d402f3424e3e749;p=pandora-kernel.git x86, kaslr: Handle Gold linker for finding bss/brk When building with the Gold linker, the .bss and .brk areas of vmlinux are shown as consecutive instead of having the same file offset. Allow for either state, as long as things add up correctly. Fixes: e6023367d779 ("x86, kaslr: Prevent .bss from overlaping initrd") Reported-by: Markus Trippelsdorf Signed-off-by: Kees Cook Cc: Junjie Mao Link: http://lkml.kernel.org/r/20141118001604.GA25045@www.outflux.net Cc: stable@vger.kernel.org Signed-off-by: Thomas Gleixner --- Reading git-diff-tree failed