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>
Thu, 22 May 2025 18:32:07 +0000 (20:32 +0200)
commit7108c8f363f452f059bfb7b8e5cd16fb5b9b22a3
tree36b5baa8d1808a4479ac19be31718549727ed311
parent2992921f5b11306f74da6e0337e96832e4fc360d
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]