Skip to content

Commit b659abe

Browse files
authored
[libc] Fix vdso VER_FLG_BASE redefinition in overlay mod. (#108628)
1 parent 21e3a21 commit b659abe

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

libc/src/__support/OSUtil/linux/vdso.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,9 @@ struct Verdef {
5757
// https://refspecs.linuxfoundation.org/LSB_1.3.0/gLSB/gLSB/symversion.html#SYMVERTBL
5858
cpp::string_view find_version(Verdef *verdef, ElfW(Half) * versym,
5959
const char *strtab, size_t idx) {
60+
#ifndef VER_FLG_BASE
6061
constexpr ElfW(Half) VER_FLG_BASE = 0x1;
62+
#endif
6163
if (!versym)
6264
return "";
6365
ElfW(Half) identifier = versym[idx] & 0x7FFF;

0 commit comments

Comments
 (0)