(obj_file: &object::File)
| 1123 | } |
| 1124 | |
| 1125 | fn parse_split_meta(obj_file: &object::File) -> Result<Option<SplitMeta>> { |
| 1126 | Ok(if let Some(section) = obj_file.section_by_name(SPLITMETA_SECTION) { |
| 1127 | Some(SplitMeta::from_section(section, obj_file.endianness(), obj_file.is_64())?) |
| 1128 | } else { |
| 1129 | None |
| 1130 | }) |
| 1131 | } |
| 1132 | |
| 1133 | #[cfg(test)] |
| 1134 | mod test { |