Skip to content

Commit

Permalink
Merge pull request #1222 from no92/VER_FLG_WEAK
Browse files Browse the repository at this point in the history
options/rtdl: ignore `VER_FLG_WEAK`
  • Loading branch information
no92 authored Jan 16, 2025
2 parents 3d221a1 + dedb8e4 commit 46d5553
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions options/rtld/generic/linker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -843,8 +843,7 @@ void ObjectRepository::_parseVerdef(SharedObject *object) {
// Required by spec.
__ensure(def.vd_version == 1);
__ensure(def.vd_cnt >= 1);
// TODO(qookie): Handle weak versions.
__ensure(!(def.vd_flags & ~VER_FLG_BASE));
__ensure(!(def.vd_flags & ~(VER_FLG_BASE | VER_FLG_WEAK)));

// NOTE(qookie): glibc also ignores any additional Verdaux entries after the
// first one.
Expand Down

0 comments on commit 46d5553

Please sign in to comment.