]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: vdso: Add '-Bsymbolic' to ldflags
authorVincenzo Frascino <vincenzo.frascino@arm.com>
Tue, 28 Apr 2020 15:08:54 +0000 (16:08 +0100)
committerWill Deacon <will@kernel.org>
Tue, 28 Apr 2020 16:17:09 +0000 (17:17 +0100)
commit6df46d402ae3fd54e020fb181496dc4475a87512
tree85bb1ed95f8f28243622a1982d4262803cbe3400
parenta3c98f842c1888b4df27e091ed5a315b6f7c1aa9
arm64: vdso: Add '-Bsymbolic' to ldflags

Commit e124bab05b5aa ("arm64: vdso: Substitute gettimeofday() with C
implementation") introduced an unused 'VDSO_LDFLAGS' variable to the
vdso Makefile, suggesting that we should be passing '-Bsymbolic' to the
linker, as we do when linking the compat vDSO.

Although it's not strictly necessary to pass this flag, it would be
required if we were to add any internal references to the exported
symbols. It's also consistent with how we link the compat vdso so, since
there's no real downside from passing it, add '-Bsymbolic' to the ldflags
for the native vDSO.

Fixes: e124bab05b5aa ("arm64: vdso: Substitute gettimeofday() with C implementation")
Reported-by: Geoff Levand <geoff@infradead.org>
Signed-off-by: Vincenzo Frascino <vincenzo.frascino@arm.com>
Cc: Will Deacon <will@kernel.org>
Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: Ard Biesheuvel <ardb@kernel.org>
Link: https://lore.kernel.org/r/20200428150854.33130-1-vincenzo.frascino@arm.com
Signed-off-by: Will Deacon <will@kernel.org>
arch/arm64/kernel/vdso/Makefile