[PW_SID:956340] [v2] riscv: vdso.lds.S: Do not export __vdso_getrandom when building a 32-bit vDSO#335
[PW_SID:956340] [v2] riscv: vdso.lds.S: Do not export __vdso_getrandom when building a 32-bit vDSO#335linux-riscv-bot wants to merge 2 commits into
Conversation
…bit vDSO ld.lld defaults to '--no-undefined-version', which causes the compat vDSO for 64-bit builds and the regular vDSO for 32-bit builds to break after wiring up the vDSO getrandom() call because __vdso_getrandom is unconditionally exported, even though it is not always present. ld.lld: error: version script assignment of 'LINUX_4.15' to symbol '__vdso_getrandom' failed: symbol not defined Move the export of __vdso_getrandom() under an ifdef to only include it when CONFIG_VDSO_GETRANDOM is defined (to exclude 32-bit builds) and COMPAT_VDSO is not defined (to exclude the 32-bit vDSO on 64-bit builds) to resolve the error. Fixes: 8907952 ("RISC-V: vDSO: Wire up getrandom() vDSO implementation") Reported-by: Linux Kernel Functional Testing <lkft@linaro.org> Closes: https://lore.kernel.org/CA+G9fYtN2ie+YtK3H9mrQ5QqrSCFGGjVbtJcfiYX0oHMVWMn9w@mail.gmail.com/ Signed-off-by: Nathan Chancellor <nathan@kernel.org> Signed-off-by: Linux RISC-V bot <linux.riscv.bot@gmail.com>
|
Patch 1: "[v2] riscv: vdso.lds.S: Do not export __vdso_getrandom when building a 32-bit vDSO" |
|
Patch 1: "[v2] riscv: vdso.lds.S: Do not export __vdso_getrandom when building a 32-bit vDSO" |
|
Patch 1: "[v2] riscv: vdso.lds.S: Do not export __vdso_getrandom when building a 32-bit vDSO" |
|
Patch 1: "[v2] riscv: vdso.lds.S: Do not export __vdso_getrandom when building a 32-bit vDSO" |
|
Patch 1: "[v2] riscv: vdso.lds.S: Do not export __vdso_getrandom when building a 32-bit vDSO" |
|
Patch 1: "[v2] riscv: vdso.lds.S: Do not export __vdso_getrandom when building a 32-bit vDSO" |
|
Patch 1: "[v2] riscv: vdso.lds.S: Do not export __vdso_getrandom when building a 32-bit vDSO" |
|
Patch 1: "[v2] riscv: vdso.lds.S: Do not export __vdso_getrandom when building a 32-bit vDSO" |
|
Patch 1: "[v2] riscv: vdso.lds.S: Do not export __vdso_getrandom when building a 32-bit vDSO" |
|
Patch 1: "[v2] riscv: vdso.lds.S: Do not export __vdso_getrandom when building a 32-bit vDSO" |
|
Patch 1: "[v2] riscv: vdso.lds.S: Do not export __vdso_getrandom when building a 32-bit vDSO" |
|
Patch 1: "[v2] riscv: vdso.lds.S: Do not export __vdso_getrandom when building a 32-bit vDSO" |
a9d006d to
2fa8e97
Compare
PR for series 956340 applied to workflow__riscv__for-next
Name: [v2] riscv: vdso.lds.S: Do not export __vdso_getrandom when building a 32-bit vDSO
URL: https://patchwork.kernel.org/project/linux-riscv/list/?series=956340
Version: 2