Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BACKPORT: arm64: vdso: use $(LD) instead of $(CC) to link VDSO
We use $(LD) to link vmlinux, modules, decompressors, etc. VDSO is the only exceptional case where $(CC) is used as the linker driver, but I do not know why we need to do so. VDSO uses a special linker script, and does not link standard libraries at all. I changed the Makefile to use $(LD) rather than $(CC). I tested this, and VDSO worked for me. Users will be able to use their favorite linker (e.g. lld instead of of bfd) by passing LD= from the command line. My plan is to rewrite all VDSO Makefiles to use $(LD), then delete cc-ldoption. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> Signed-off-by: Will Deacon <will.deacon@arm.com> [panchajanya1999: cherry-pick and adapt to subsequent vdso32 changes from pixel] [linked from: aosp-mirror/kernel_common@691efbe#diff-0aef76c20f8f6b0455c2de52956f5edb] Signed-off-by: Panchajanya Sarkar <panchajanya@azure-dev.live> Signed-off-by: Panchajanya1999 <panchajanya@azure-dev.live> Change-Id: I4f4c67303c882987ba19bac1d98b21517dea770c Signed-off-by: Panchajanya1999 <panchajanya@azure-dev.live> Signed-off-by: Kyvangka1610 <kyvangka2002@gmail.com>
- Loading branch information