better place for this helper function

This commit is contained in:
Nikita Smith committed 2025-07-28 20:07:56 -07:00
1 parent 1e1d903878
commit b3efce4b9a
5 files changed
+9 -10

No files matched your search

+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)
{