aya-obj: mask Func linkage with 16 bits

Match `Func::new` and `set_linkage`, which store linkage in the low
16 bits of `info`; reading with 0xFFF dropped the high nibble of that
field.
This commit is contained in:
Weixie Cui
2026-03-26 12:17:47 +08:00
committed by Michal R
parent 8f690b7734
commit 5bce2b7e29
+1 -1
View File
@@ -271,7 +271,7 @@ impl Func {
}
pub(crate) fn linkage(&self) -> FuncLinkage {
(self.info & 0xFFF).into()
(self.info & 0xFFFF).into()
}
pub(crate) const fn set_linkage(&mut self, linkage: FuncLinkage) {