Files
linux/arch/s390/include/asm
Naveen N. Rao 53b858c807 kexec_file: drop weak attribute from arch_kexec_apply_relocations[_add]
commit 3e35142ef9 upstream.

Since commit d1bcae833b32f1 ("ELF: Don't generate unused section
symbols") [1], binutils (v2.36+) started dropping section symbols that
it thought were unused.  This isn't an issue in general, but with
kexec_file.c, gcc is placing kexec_arch_apply_relocations[_add] into a
separate .text.unlikely section and the section symbol ".text.unlikely"
is being dropped. Due to this, recordmcount is unable to find a non-weak
symbol in .text.unlikely to generate a relocation record against.

Address this by dropping the weak attribute from these functions.
Instead, follow the existing pattern of having architectures #define the
name of the function they want to override in their headers.

[1] https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h=d1bcae833b32f1

[akpm@linux-foundation.org: arch/s390/include/asm/kexec.h needs linux/module.h]
Link: https://lkml.kernel.org/r/20220519091237.676736-1-naveen.n.rao@linux.vnet.ibm.com
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Signed-off-by: Naveen N. Rao <naveen.n.rao@linux.vnet.ibm.com>
Cc: "Eric W. Biederman" <ebiederm@xmission.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-06-09 10:23:27 +02:00
..
2021-01-19 12:29:26 +01:00
2021-07-27 09:39:15 +02:00
2017-12-05 07:51:09 +01:00
2022-06-09 10:23:21 +02:00
2020-08-26 18:47:21 +02:00
2021-09-08 15:32:35 -07:00
2021-07-27 09:39:15 +02:00
2021-01-19 12:29:26 +01:00
2021-08-25 11:03:35 +02:00
2020-12-16 14:55:49 +01:00
2021-08-05 14:10:53 +02:00
2021-08-03 14:31:40 +02:00
2021-05-07 00:26:34 -07:00
2019-02-05 14:29:23 +01:00
2021-06-18 16:41:19 +02:00
2021-07-30 17:09:02 +02:00
2020-01-30 13:07:55 +01:00
2021-08-05 14:10:53 +02:00
2021-08-03 14:31:40 +02:00
2020-02-27 16:02:21 +01:00
2021-08-18 10:01:28 +02:00
2021-10-04 09:49:10 +02:00
2021-07-01 11:06:03 -07:00
2019-02-07 18:06:18 -08:00
2020-09-14 11:38:35 +02:00
2021-08-05 14:10:53 +02:00
2020-09-26 15:51:21 +02:00
2021-06-28 11:18:28 +02:00
2021-06-18 16:41:21 +02:00
2021-09-08 15:32:35 -07:00
2019-07-23 10:45:53 +02:00
2021-07-08 15:37:28 +02:00
2017-12-05 07:51:09 +01:00
2021-01-19 12:29:26 +01:00