Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 4c05a819 authored by Vincenzo Frascino's avatar Vincenzo Frascino Committed by Lee Jones
Browse files

UPSTREAM: arm64: vdso: Add --eh-frame-hdr to ldflags



LLVM's unwinder depends on the .eh_frame_hdr being present for
unwinding. However, when compiling Linux with GCC, the section
is not present in the vdso library object and when compiling
with Clang, it is present, but it has zero length.

With GCC the problem was not spotted because libgcc unwinder does
not require the .eh_frame_hdr section to be present.

Add --eh-frame-hdr to ldflags to correctly generate and populate
the section for both GCC and LLVM.

Bug: 254441685
Fixes: 28b1a824a4f44 ("arm64: vdso: Substitute gettimeofday() with C implementation")
Reported-by: default avatarTamas Zsoldos <tamas.zsoldos@arm.com>
Signed-off-by: default avatarVincenzo Frascino <vincenzo.frascino@arm.com>
Tested-by: default avatarTamas Zsoldos <tamas.zsoldos@arm.com>
Cc: Will Deacon <will@kernel.org>
Cc: Catalin Marinas <catalin.marinas@arm.com>
Link: https://lore.kernel.org/r/20200507104049.47834-1-vincenzo.frascino@arm.com


Signed-off-by: default avatarWill Deacon <will@kernel.org>
(cherry picked from commit 7e9f5e6629f62865e67b8a02a5b522dd9af890bd)
Signed-off-by: default avatarLee Jones <joneslee@google.com>
Change-Id: Ib1713bae7f17b344d1e6a214583e057f5b4f05a9
parent 1a8e69ff
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment