Skip to content

Commit

Permalink
The Aarch64 VDSO doesn't actually define gettimeofday or `clock_get…
Browse files Browse the repository at this point in the history
…time` so don't try to version them

LLD barfs if we try to version a symbol that isn't defined.
  • Loading branch information
rocallahan committed Oct 7, 2024
1 parent bfe5018 commit 972ef90
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ elseif(${CMAKE_SYSTEM_PROCESSOR} MATCHES i386|i686|x86|x86_64)
set(FLAGS_COMMON "${FLAGS_COMMON} -msse2 -D__MMX__ -D__SSE__ -D__SSE2__")
set(PRELOAD_LIBRARY_PAGE_SIZE 4096)
set(VDSO_NAME "LINUX_2.6")
set(VDSO_SYMBOLS "__vdso_gettimeofday; __vdso_clock_getres; __vdso_time; __vdso_clock_gettime; __vdso_getcpu;")
set(VDSO_SYMBOLS "gettimeofday; clock_gettime; __vdso_gettimeofday; __vdso_clock_getres; __vdso_time; __vdso_clock_gettime; __vdso_getcpu;")
else()
message(FATAL_ERROR "The architecture " ${CMAKE_SYSTEM_PROCESSOR} " is not yet supported")
endif()
Expand Down
2 changes: 0 additions & 2 deletions src/preload/rr_page.ld.in
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,6 @@ SECTIONS
VERSION {
@VDSO_NAME@ {
global:
gettimeofday;
clock_gettime;
@VDSO_SYMBOLS@
};
}

0 comments on commit 972ef90

Please sign in to comment.