better place for this helper function

This commit is contained in:
Nikita Smith
2025-07-28 17:32:12 -07:00
parent 1e1d903878
commit b3efce4b9a
5 changed files with 9 additions and 10 deletions
+6
View File
@@ -493,6 +493,12 @@ lnk_obj_get_lib_path(LNK_Obj *obj)
return lib_path;
}
internal U32
lnk_obj_get_removed_section_number(LNK_Obj *obj)
{
return obj->header.is_big_obj ? LNK_REMOVED_SECTION_NUMBER_32 : LNK_REMOVED_SECTION_NUMBER_16;
}
internal COFF_SectionHeader *
lnk_coff_section_header_from_section_number(LNK_Obj *obj, U64 section_number)
{