Re: ERROR: start_text address is c000000000000500, should be c000000000000100

From: Randy Dunlap
Date: Thu Nov 25 2021 - 21:21:19 EST


On 11/24/21 6:31 AM, kernel test robot wrote:
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 5d9f4cf36721aba199975a9be7863a3ff5cd4b59
commit: 47c258d71ebfc832a760a1dc6540cf3c33968023 powerpc/head_check: use stdout for error messages
date: 3 months ago
config: powerpc64-randconfig-r033-20211123 (https://download.01.org/0day-ci/archive/20211124/202111242215.KCExqByj-lkp@xxxxxxxxx/config)
compiler: powerpc64-linux-gcc (GCC) 11.2.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=47c258d71ebfc832a760a1dc6540cf3c33968023
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 47c258d71ebfc832a760a1dc6540cf3c33968023
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=powerpc SHELL=/bin/bash

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@xxxxxxxxx>

All errors (new ones prefixed by >>):

ERROR: start_text address is c000000000000500, should be c000000000000100
ERROR: try to enable LD_HEAD_STUB_CATCH config option
ERROR: see comments in arch/powerpc/tools/head_check.sh

---


Hm, interesting. After following the directions above and setting
CONFIG_LD_HEAD_STUB_CATCH=y and then rebuilding, the "should be" address
has changed:

ERROR: start_text address is c000000000000500, should be c000000000000200
ERROR: try to enable LD_HEAD_STUB_CATCH config option
ERROR: see comments in arch/powerpc/tools/head_check.sh


Michael, any ideas?

--
~Randy