diff options
author | Heiko Carstens <hca@linux.ibm.com> | 2025-02-13 13:57:33 +0100 |
---|---|---|
committer | Vasily Gorbik <gor@linux.ibm.com> | 2025-02-18 18:53:48 +0100 |
commit | fa1518875286c94111bdaf1c7bae188c9c426c6b (patch) | |
tree | 79ceb16dce03f9700b883d489df877374c601f17 /scripts/lib/kdoc/kdoc_output.py | |
parent | 07d89045bffea30ef08b902c2441a3329e44f29d (diff) |
s390: Sort mcount locations at build time
For s390 the mcount_loc section of the kernel image contains the addresses
of the mcount locations. All addresses will be adjusted with the same
offset by the decompressor before the kernel is started.
Therefore select HAVE_BUILDTIME_MCOUNT_SORT so that the entries of this
section are sorted at build time. Given that the same offset is applied to
all entries the section will be sorted in any case.
Note that this was not possible before commit 778666df60f0 ("s390: compile
relocatable kernel without -fPIE"). Since this commit all R_390_64 absolute
relocations are handled in a special way: only the address of the to be
changed location is put into a special section. For all those locations the
same offset is applied as described above.
Without that change it would have been necessary to also adjust the addend
of all relocations which correspond to the mcount_loc section, when sorting
the mcount_loc section.
Reported-by: Steven Rostedt <rostedt@goodmis.org>
Closes: https://lore.kernel.org/r/20250210142647.083ff456@gandalf.local.home/
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Acked-by: Vasily Gorbik <gor@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
Diffstat (limited to 'scripts/lib/kdoc/kdoc_output.py')
0 files changed, 0 insertions, 0 deletions