summaryrefslogtreecommitdiff
path: root/scripts/Makefile.thinlto
diff options
context:
space:
mode:
authorRichard Cheng <icheng@nvidia.com>2026-07-21 16:40:09 +0800
committerDave Jiang <dave.jiang@intel.com>2026-08-31 09:40:34 -0700
commit2c73cda8908f1275b0ecf81ae540a3bc2a90fc30 (patch)
tree0803b31a26752ee3910600a73120588dd884cc14 /scripts/Makefile.thinlto
parentcee9395acd8043be0644b25c34bfa86623f2b935 (diff)
downloadlinux-next-2c73cda8908f1275b0ecf81ae540a3bc2a90fc30.tar.gz
linux-next-2c73cda8908f1275b0ecf81ae540a3bc2a90fc30.zip
tools/testing/cxl: Don't wrap cxl_core's own exported symbols
Building cxl_test with LLVM=1 (ld.lld) fails in modpost: """ cxl_core: .export_symbol section references '__wrap_...', but it does not seem to be an export symbol """ cxl_test --wraps 6 symbols that cxl_core both defines and exports. GNU ld only wraps undefined references, but ld.lld also redirects references to defined symbols, so cxl_core's own EXPORT_SYMBOL entries get rewritten to __wrap_* and modpost rejects them. cxl_core never calls these symbols, so wrap them only in the caller modules via LDFLAGS_<module>.o instead of the global ldflags-y. Signed-off-by: Richard Cheng <icheng@nvidia.com> Reviewed-by: Dave Jiang <dave.jiang@intel.com> Reviewed-by: Alison Schofield <alison.schofield@intel.com> Tested-by: Shaikh Kamaluddin <shaikhkamal2012@gmail.com> Link: https://patch.msgid.link/20260721084009.38100-1-icheng@nvidia.com Signed-off-by: Dave Jiang <dave.jiang@intel.com>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions