Skip to content

Commit

Permalink
options/rtdl: ignore VER_FLG_WEAK
Browse files Browse the repository at this point in the history
  • Loading branch information
no92 committed Jan 16, 2025
1 parent 3d221a1 commit dedb8e4
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 dedb8e4

Please sign in to comment.