Skip to content

Commit 379ade6

Browse files
wrap vDSO parsing utilities in unnamed namespace
1 parent 36aa78b commit 379ade6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ unsigned long getauxval(unsigned long id);
3131

3232
namespace vdso {
3333

34+
namespace {
3435
// See https://refspecs.linuxfoundation.org/LSB_1.3.0/gLSB/gLSB/symverdefs.html
3536
struct Verdaux {
3637
ElfW(Word) vda_name; /* Version or dependency names */
@@ -82,6 +83,7 @@ using VDSOArray =
8283
cpp::array<void *, static_cast<size_t>(VDSOSym::VDSOSymCount)>;
8384

8485
static VDSOArray symbol_table;
86+
} // namespace
8587

8688
void *get_symbol(VDSOSym sym) {
8789
// if sym is invalid, return nullptr

0 commit comments

Comments
 (0)