public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* init/main.c:753:(.init.text+0x7a): relocation truncated to fit: R_ARC_S25W_PCREL against symbol `__st_r13_to_r16' defined in .text section in ../lib/gcc/arc-linux/8.5.0/libgcc.a(_millicodethunk_st.o)
@ 2025-06-08  0:01 kernel test robot
  2025-06-09 12:10 ` Petr Mladek
  0 siblings, 1 reply; 3+ messages in thread
From: kernel test robot @ 2025-06-08  0:01 UTC (permalink / raw)
  To: Raul E Rangel; +Cc: oe-kbuild-all, linux-kernel, Petr Mladek

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   8630c59e99363c4b655788fd01134aef9bcd9264
commit: 17b655759e83fd5e28931a0ece96fa9c2ab718e7 init: Don't proxy `console=` to earlycon
date:   8 months ago
config: arc-randconfig-r113-20250607 (https://download.01.org/0day-ci/archive/20250608/202506080718.Q9VUfXsm-lkp@intel.com/config)
compiler: arc-linux-gcc (GCC) 8.5.0
reproduce: (https://download.01.org/0day-ci/archive/20250608/202506080718.Q9VUfXsm-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202506080718.Q9VUfXsm-lkp@intel.com/

All errors (new ones prefixed by >>):

   init/main.o: in function `do_early_param':
>> init/main.c:753:(.init.text+0x7a): relocation truncated to fit: R_ARC_S25W_PCREL against symbol `__st_r13_to_r16' defined in .text section in ../lib/gcc/arc-linux/8.5.0/libgcc.a(_millicodethunk_st.o)


vim +753 init/main.c

^1da177e4c3f41 Linus Torvalds    2005-04-16  749  
^1da177e4c3f41 Linus Torvalds    2005-04-16  750  /* Check for early params. */
ecc8617053e0a9 Luis R. Rodriguez 2015-03-30  751  static int __init do_early_param(char *param, char *val,
ecc8617053e0a9 Luis R. Rodriguez 2015-03-30  752  				 const char *unused, void *arg)
^1da177e4c3f41 Linus Torvalds    2005-04-16 @753  {
914dcaa84c53f2 Rusty Russell     2010-08-11  754  	const struct obs_kernel_param *p;
^1da177e4c3f41 Linus Torvalds    2005-04-16  755  
^1da177e4c3f41 Linus Torvalds    2005-04-16  756  	for (p = __setup_start; p < __setup_end; p++) {
17b655759e83fd Raul E Rangel     2024-09-11  757  		if (p->early && parameq(param, p->str)) {
^1da177e4c3f41 Linus Torvalds    2005-04-16  758  			if (p->setup_func(val) != 0)
ea676e846a8171 Andrew Morton     2013-04-29  759  				pr_warn("Malformed early option '%s'\n", param);
^1da177e4c3f41 Linus Torvalds    2005-04-16  760  		}
^1da177e4c3f41 Linus Torvalds    2005-04-16  761  	}
^1da177e4c3f41 Linus Torvalds    2005-04-16  762  	/* We accept everything at this stage. */
^1da177e4c3f41 Linus Torvalds    2005-04-16  763  	return 0;
^1da177e4c3f41 Linus Torvalds    2005-04-16  764  }
^1da177e4c3f41 Linus Torvalds    2005-04-16  765  

:::::: The code at line 753 was first introduced by commit
:::::: 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 Linux-2.6.12-rc2

:::::: TO: Linus Torvalds <torvalds@ppc970.osdl.org>
:::::: CC: Linus Torvalds <torvalds@ppc970.osdl.org>

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: init/main.c:753:(.init.text+0x7a): relocation truncated to fit: R_ARC_S25W_PCREL against symbol `__st_r13_to_r16' defined in .text section in ../lib/gcc/arc-linux/8.5.0/libgcc.a(_millicodethunk_st.o)
  2025-06-08  0:01 kernel test robot
@ 2025-06-09 12:10 ` Petr Mladek
  0 siblings, 0 replies; 3+ messages in thread
From: Petr Mladek @ 2025-06-09 12:10 UTC (permalink / raw)
  To: kernel test robot; +Cc: Raul E Rangel, oe-kbuild-all, linux-kernel

On Sun 2025-06-08 08:01:08, kernel test robot wrote:
> tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
> head:   8630c59e99363c4b655788fd01134aef9bcd9264
> commit: 17b655759e83fd5e28931a0ece96fa9c2ab718e7 init: Don't proxy `console=` to earlycon
> date:   8 months ago
> config: arc-randconfig-r113-20250607 (https://download.01.org/0day-ci/archive/20250608/202506080718.Q9VUfXsm-lkp@intel.com/config)
> compiler: arc-linux-gcc (GCC) 8.5.0
> reproduce: (https://download.01.org/0day-ci/archive/20250608/202506080718.Q9VUfXsm-lkp@intel.com/reproduce)
> 
> If you fix the issue in a separate patch/commit (i.e. not just a new version of
> the same patch/commit), kindly add following tags
> | Reported-by: kernel test robot <lkp@intel.com>
> | Closes: https://lore.kernel.org/oe-kbuild-all/202506080718.Q9VUfXsm-lkp@intel.com/
> 
> All errors (new ones prefixed by >>):
> 
>    init/main.o: in function `do_early_param':
> >> init/main.c:753:(.init.text+0x7a): relocation truncated to fit: R_ARC_S25W_PCREL against symbol `__st_r13_to_r16' defined in .text section in ../lib/gcc/arc-linux/8.5.0/libgcc.a(_millicodethunk_st.o)

It might help to add -mmodel=medium or -mmodel=large into CFLAGS.
Something like:

diff --git a/init/Makefile b/init/Makefile
index d6f75d8907e0..83966686dcd3 100644
--- a/init/Makefile
+++ b/init/Makefile
@@ -6,6 +6,10 @@
 ccflags-y := -fno-function-sections -fno-data-sections
 
 obj-y                          := main.o version.o mounts.o
+ifeq ($(CONFIG_ARC),y)
+CFLAGS_main.o                  := -mmodel=large
+endif
+
 ifneq ($(CONFIG_BLK_DEV_INITRD),y)
 obj-y                          += noinitramfs.o
 else


Unfortunately, I can't test the compilation for ARC architecture easily...

Best Regards,
Petr


> vim +753 init/main.c
> 
> ^1da177e4c3f41 Linus Torvalds    2005-04-16  749  
> ^1da177e4c3f41 Linus Torvalds    2005-04-16  750  /* Check for early params. */
> ecc8617053e0a9 Luis R. Rodriguez 2015-03-30  751  static int __init do_early_param(char *param, char *val,
> ecc8617053e0a9 Luis R. Rodriguez 2015-03-30  752  				 const char *unused, void *arg)
> ^1da177e4c3f41 Linus Torvalds    2005-04-16 @753  {
> 914dcaa84c53f2 Rusty Russell     2010-08-11  754  	const struct obs_kernel_param *p;
> ^1da177e4c3f41 Linus Torvalds    2005-04-16  755  
> ^1da177e4c3f41 Linus Torvalds    2005-04-16  756  	for (p = __setup_start; p < __setup_end; p++) {
> 17b655759e83fd Raul E Rangel     2024-09-11  757  		if (p->early && parameq(param, p->str)) {
> ^1da177e4c3f41 Linus Torvalds    2005-04-16  758  			if (p->setup_func(val) != 0)
> ea676e846a8171 Andrew Morton     2013-04-29  759  				pr_warn("Malformed early option '%s'\n", param);
> ^1da177e4c3f41 Linus Torvalds    2005-04-16  760  		}
> ^1da177e4c3f41 Linus Torvalds    2005-04-16  761  	}
> ^1da177e4c3f41 Linus Torvalds    2005-04-16  762  	/* We accept everything at this stage. */
> ^1da177e4c3f41 Linus Torvalds    2005-04-16  763  	return 0;
> ^1da177e4c3f41 Linus Torvalds    2005-04-16  764  }
> ^1da177e4c3f41 Linus Torvalds    2005-04-16  765  
> 
> :::::: The code at line 753 was first introduced by commit
> :::::: 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 Linux-2.6.12-rc2
> 
> :::::: TO: Linus Torvalds <torvalds@ppc970.osdl.org>
> :::::: CC: Linus Torvalds <torvalds@ppc970.osdl.org>
> 
> -- 
> 0-DAY CI Kernel Test Service
> https://github.com/intel/lkp-tests/wiki

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* init/main.c:753:(.init.text+0x7a): relocation truncated to fit: R_ARC_S25W_PCREL against symbol `__st_r13_to_r16' defined in .text section in ../lib/gcc/arc-linux/8.5.0/libgcc.a(_millicodethunk_st.o)
@ 2025-10-23 16:38 kernel test robot
  0 siblings, 0 replies; 3+ messages in thread
From: kernel test robot @ 2025-10-23 16:38 UTC (permalink / raw)
  To: Raul E Rangel; +Cc: oe-kbuild-all, linux-kernel, Petr Mladek

Hi Raul,

FYI, the error/warning still remains.

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   43e9ad0c55a369ecc84a4788d06a8a6bfa634f1c
commit: 17b655759e83fd5e28931a0ece96fa9c2ab718e7 init: Don't proxy `console=` to earlycon
date:   1 year, 1 month ago
config: arc-randconfig-r061-20251023 (https://download.01.org/0day-ci/archive/20251024/202510240036.dstaemZG-lkp@intel.com/config)
compiler: arc-linux-gcc (GCC) 8.5.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251024/202510240036.dstaemZG-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202510240036.dstaemZG-lkp@intel.com/

All errors (new ones prefixed by >>):

   init/main.o: in function `do_early_param':
>> init/main.c:753:(.init.text+0x7a): relocation truncated to fit: R_ARC_S25W_PCREL against symbol `__st_r13_to_r16' defined in .text section in ../lib/gcc/arc-linux/8.5.0/libgcc.a(_millicodethunk_st.o)


vim +753 init/main.c

^1da177e4c3f415 Linus Torvalds    2005-04-16  749  
^1da177e4c3f415 Linus Torvalds    2005-04-16  750  /* Check for early params. */
ecc8617053e0a97 Luis R. Rodriguez 2015-03-30  751  static int __init do_early_param(char *param, char *val,
ecc8617053e0a97 Luis R. Rodriguez 2015-03-30  752  				 const char *unused, void *arg)
^1da177e4c3f415 Linus Torvalds    2005-04-16 @753  {
914dcaa84c53f2c Rusty Russell     2010-08-11  754  	const struct obs_kernel_param *p;
^1da177e4c3f415 Linus Torvalds    2005-04-16  755  
^1da177e4c3f415 Linus Torvalds    2005-04-16  756  	for (p = __setup_start; p < __setup_end; p++) {
17b655759e83fd5 Raul E Rangel     2024-09-11  757  		if (p->early && parameq(param, p->str)) {
^1da177e4c3f415 Linus Torvalds    2005-04-16  758  			if (p->setup_func(val) != 0)
ea676e846a8171b Andrew Morton     2013-04-29  759  				pr_warn("Malformed early option '%s'\n", param);
^1da177e4c3f415 Linus Torvalds    2005-04-16  760  		}
^1da177e4c3f415 Linus Torvalds    2005-04-16  761  	}
^1da177e4c3f415 Linus Torvalds    2005-04-16  762  	/* We accept everything at this stage. */
^1da177e4c3f415 Linus Torvalds    2005-04-16  763  	return 0;
^1da177e4c3f415 Linus Torvalds    2005-04-16  764  }
^1da177e4c3f415 Linus Torvalds    2005-04-16  765  

:::::: The code at line 753 was first introduced by commit
:::::: 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 Linux-2.6.12-rc2

:::::: TO: Linus Torvalds <torvalds@ppc970.osdl.org>
:::::: CC: Linus Torvalds <torvalds@ppc970.osdl.org>

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2025-10-23 16:39 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-10-23 16:38 init/main.c:753:(.init.text+0x7a): relocation truncated to fit: R_ARC_S25W_PCREL against symbol `__st_r13_to_r16' defined in .text section in ../lib/gcc/arc-linux/8.5.0/libgcc.a(_millicodethunk_st.o) kernel test robot
  -- strict thread matches above, loose matches on Subject: below --
2025-06-08  0:01 kernel test robot
2025-06-09 12:10 ` Petr Mladek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox