Re: [linux-stable-rc:queue/5.15 17/69] m68k-linux-ld: section .rodata VMA [00001000,0024925f] overlaps section .text VMA [00000400,00439aff]

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

 




On 30/5/23 19:02, Geert Uytterhoeven wrote:
Hi Robot,

Thanks for your report!

On Tue, May 30, 2023 at 8:09 AM kernel test robot <lkp@xxxxxxxxx> wrote:
tree:   https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git queue/5.15
head:   45d082d2c0daa97f3ea394c47e705afdd1c621e0
commit: 43f232d748d57057e2e9dd041907c55177c50cf2 [17/69] m68k: Move signal frame following exception on 68020/030
config: m68k-randconfig-r035-20230530 (https://download.01.org/0day-ci/archive/20230530/202305301407.z33zOjcG-lkp@xxxxxxxxx/config)

FTR, this is a CONFIG_M68000/CONFIG_M68EZ328 config.

compiler: m68k-linux-gcc (GCC) 12.3.0
reproduce (this is a W=1 build):
         mkdir -p ~/bin
         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/stable/linux-stable-rc.git/commit/?id=43f232d748d57057e2e9dd041907c55177c50cf2
         git remote add linux-stable-rc https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git
         git fetch --no-tags linux-stable-rc queue/5.15
         git checkout 43f232d748d57057e2e9dd041907c55177c50cf2
         # save the config file
         mkdir build_dir && cp config build_dir/.config
         COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.3.0 ~/bin/make.cross W=1 O=build_dir ARCH=m68k olddefconfig
         COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.3.0 ~/bin/make.cross W=1 O=build_dir ARCH=m68k SHELL=/bin/bash

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202305301407.z33zOjcG-lkp@xxxxxxxxx/

All errors (new ones prefixed by >>):

m68k-linux-ld: section .rodata VMA [00001000,0024925f] overlaps section .text VMA [00000400,00439aff]

This is not a regression introduced by the aforementioned commit.
The same issue is present in 5.1.113, 5.1, and v6.4-rc4.

Indeed, that is an interesting one. Essentially the default values for
RAM and ROM regions causes this. Would be easy to fix for this specific case,
patch below, but it general would need region overlap checking to be totally
foolproof I think.

These defaults based on some old configs I had lying around. These addresses
seem to to be the values used on most uCsim, uCdimm and Xcopilot configs, so
probably makes sense to use them as the actual Kconfig default.

diff --git a/arch/m68k/Kconfig.machine b/arch/m68k/Kconfig.machine
index 1f3574aef638..d06b1c5d9b0c 100644
--- a/arch/m68k/Kconfig.machine
+++ b/arch/m68k/Kconfig.machine
@@ -441,7 +441,7 @@ config ROM
config ROMVEC
        hex "Address of the base of the ROM vectors"
-       default "0"
+       default "0x10c10000"
        depends on ROM
        help
          This is almost always the same as the base of the ROM. Since on all
@@ -450,7 +450,7 @@ config ROMVEC
config ROMSTART
        hex "Address of the base of system image in ROM"
-       default "0x400"
+       default "0x10c10400"
        depends on ROM
        help
          Define the start address of the system image in ROM. Commonly this


Regards
Greg




[Index of Archives]     [Video for Linux]     [Yosemite News]     [Linux S/390]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux