alpha: Fix missing symbol versions for str{,n}{cat,cpy}
authorBen Hutchings <ben@decadent.org.uk>
Thu, 5 Jan 2023 16:04:40 +0000 (17:04 +0100)
committerSalvatore Bonaccorso <carnil@debian.org>
Fri, 1 Nov 2024 04:23:37 +0000 (05:23 +0100)
commit8df4d8559c1449808360e8cd959d015e78a41b3b
tree6c7566b0ac1fd871cdfc0944068ddd2e81e3217f
parentceea3432e163a13b66e7d78c3bd193acf3064bef
alpha: Fix missing symbol versions for str{,n}{cat,cpy}

Origin: https://marc.info/?l=linux-alpha&m=167364720725291&w=2

Now that modpost extracts symbol versions from *.cmd files, it can't
find the versions for these 4 symbols.  This is due to the way we link
their objects together ahead of the full vmlinux link.  genksyms puts
their symbol CRCs in .str{,n}{cat,cpy}.o.cmd, but modpost only reads
the .sty{,n}cpy.o.cmd files.

Add assembly sources that bring the appropriate routines together with
include directives instead of using the linker for this.

Reported-by: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
Fixes: f292d875d0dc ("modpost: extract symbol versions from *.cmd files")
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Gbp-Pq: Topic bugfix/alpha
Gbp-Pq: Name alpha-fix-missing-symbol-versions-for-str-n-cat-cpy.patch
arch/alpha/lib/Makefile
arch/alpha/lib/stycpy.S [new file with mode: 0644]
arch/alpha/lib/styncpy.S [new file with mode: 0644]