image.h (831B)
1 #ifndef KIT_OBJ_IMAGE_H 2 #define KIT_OBJ_IMAGE_H 3 4 #include <kit/image.h> 5 #include <kit/object.h> 6 7 KitStatus obj_emit_image(const KitContext*, KitObjFile*, 8 const KitSlice* object_bytes, 9 const KitImageOptions*, KitWriter* out, 10 KitImageReport* report_out); 11 12 /* True when `seg` contributes bytes to the image the emitter would produce for 13 * `opts` (base ELF-PT_LOAD / explicit-segment policy plus only/remove filters, 14 * AND a non-empty on-disk size). Backs the public kit_image_segment_selected so 15 * the `image` driver reports the exact selection without reimplementing — and 16 * diverging from — the policy. */ 17 bool obj_image_segment_selected(KitObjFmt fmt, const KitObjSegInfo* seg, 18 const KitImageOptions* opts); 19 20 #endif