lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <aEbPKan7PwHZfZvk@pathway.suse.cz>
Date: Mon, 9 Jun 2025 14:10:17 +0200
From: Petr Mladek <pmladek@...e.com>
To: kernel test robot <lkp@...el.com>
Cc: Raul E Rangel <rrangel@...omium.org>, oe-kbuild-all@...ts.linux.dev,
	linux-kernel@...r.kernel.org
Subject: 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)

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@...el.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@...970.osdl.org>
> :::::: CC: Linus Torvalds <torvalds@...970.osdl.org>
> 
> -- 
> 0-DAY CI Kernel Test Service
> https://github.com/intel/lkp-tests/wiki

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ