Debian Codegraph @

third_party/rust/object/CHANGELOG.md

raw
1 # `object` Change Log
2
3 --------------------------------------------------------------------------------
4
5 ## 0.36.4
6
7 Released 2024/08/30.
8
9 ### Added
10
11 * Added `pe::IMAGE_FILE_MACHINE_ARM64X` and `pe::IMAGE_FILE_MACHINE_CHPE_X86`.
12 [#717](https://github.com/gimli-rs/object/pull/717)
13
14 * Added `elf::SHF_GNU_RETAIN` and `elf::SHF_GNU_MBIND`.
15 [#720](https://github.com/gimli-rs/object/pull/720)
16
17 ### Changed
18
19 * Fixed the checksum for COFF BSS section symbols in `write::Object`.
20 [#718](https://github.com/gimli-rs/object/pull/718)
21
22 * Changed `read::CompressedData::decompress` to validate the decompressed size.
23 [#723](https://github.com/gimli-rs/object/pull/723)
24
25 * Updated `wasmparser` dependency.
26
27 --------------------------------------------------------------------------------
28
29 ## 0.36.3
30
31 Released 2024/08/07.
32
33 ### Added
34
35 * Added `Iterator` implementations for various types in the low level read API.
36 [#713](https://github.com/gimli-rs/object/pull/713)
37 [#714](https://github.com/gimli-rs/object/pull/714)
38
39 ### Changed
40
41 * Changed `from_bytes` constructors for integer endian types to `const`.
42 [#712](https://github.com/gimli-rs/object/pull/712)
43
44 * Changed `next` methods in the low level read API to fuse after returning an
45 error.
46 [#714](https://github.com/gimli-rs/object/pull/714)
47
48 * Updated `wasmparser` dependency.
49 [#715](https://github.com/gimli-rs/object/pull/715)
50
51 --------------------------------------------------------------------------------
52
53 ## 0.36.2
54
55 Released 2024/07/24.
56
57 ### Changed
58
59 * Improved writing of GNU symbol versioning in `build::elf::Builder`.
60 [#705](https://github.com/gimli-rs/object/pull/705)
61
62 * Fixed alignment of `SHT_HASH`/`SHT_GNU_verdef`/`SHT_GNU_verneed` sections in
63 `write::elf::Writer`.
64 [#706](https://github.com/gimli-rs/object/pull/706)
65
66 * Fixed writing of GNU hash for absolute symbols in `build::elf::Builder`.
67 [#707](https://github.com/gimli-rs/object/pull/707)
68
69 * Fixed writing of empty ELF string table in `write::Object`.
70 [#710](https://github.com/gimli-rs/object/pull/710)
71
72 --------------------------------------------------------------------------------
73
74 ## 0.36.1
75
76 Released 2024/06/29.
77
78 ### Added
79
80 * Added `SectionKind::DebugString`.
81 [#694](https://github.com/gimli-rs/object/pull/694)
82
83 * Added `Architecture::Sparc` and `Architecture::Sparc32Plus`.
84 [#699](https://github.com/gimli-rs/object/pull/699)
85 [#700](https://github.com/gimli-rs/object/pull/700)
86
87 * Added more RISC-V ELF relocation constants.
88 [#701](https://github.com/gimli-rs/object/pull/701)
89
90 ### Changed
91
92 * Changed `read::ElfFile::imports` to return the library for versioned symbols.
93 [#693](https://github.com/gimli-rs/object/pull/693)
94
95 * Changed `read::MachOFile` to support Go's debug section compression.
96 [#697](https://github.com/gimli-rs/object/pull/697)
97
98 * Reversed the order of Mach-O relocations emitted by `write::Object`.
99 [#702](https://github.com/gimli-rs/object/pull/702)
100
101 --------------------------------------------------------------------------------
102
103 ## 0.36.0
104
105 Released 2024/05/26.
106
107 ### Breaking changes
108
109 * Deleted `data` and `align` parameters for `write::Object::add_subsection`.
110 Use `add_symbol_data` or `add_symbol_bss` instead.
111 [#676](https://github.com/gimli-rs/object/pull/676)
112
113 * Changed methods in the lower level read API to accept or return `SectionIndex`
114 or `SymbolIndex` instead of `usize`.
115 [#677](https://github.com/gimli-rs/object/pull/677)
116 [#684](https://github.com/gimli-rs/object/pull/684)
117 [#685](https://github.com/gimli-rs/object/pull/685)
118
119 * Deleted `SymbolKind::Null`. Changed `read::Object::sections` and `read::Object::symbols`
120 to no longer return null entries. This affects ELF and XCOFF.
121 [#679](https://github.com/gimli-rs/object/pull/679)
122
123 * Changed `read::ObjectMap::object` to return `ObjectMapFile`. This handles
124 splitting the object file name into path and member.
125 [#686](https://github.com/gimli-rs/object/pull/686)
126
127 * Changed `read::coff::ImageSymbol::address` to only return an address for
128 symbols that have an address.
129 [#689](https://github.com/gimli-rs/object/pull/689)
130
131 ### Added
132
133 * Added `pod::slice_from_all_bytes` and `pod::slice_from_all_bytes_mut`.
134 [#672](https://github.com/gimli-rs/object/pull/672)
135
136 * Added `write::Object::set_subsections_via_symbols`.
137 Changed `write::Object::add_symbol_data` and `write::Object::add_symbol_bss`
138 to correctly handle zero size symbols when subsections are enabled.
139 [#676](https://github.com/gimli-rs/object/pull/676)
140
141 * Added methods in the unified read API to return the lower level API structures.
142 Some existing methods were deprecated so that naming of these methods is more consistent.
143 [#678](https://github.com/gimli-rs/object/pull/678)
144
145 * Added methods in the lower level read API to return a `SectionIndex` or `SymbolIndex`.
146 [#684](https://github.com/gimli-rs/object/pull/684)
147 [#689](https://github.com/gimli-rs/object/pull/689)
148
149 * Implemented `Display` for `read::SymbolIndex` and `read::SectionIndex`.
150 [#684](https://github.com/gimli-rs/object/pull/684)
151
152 * Added `is_common`, `is_absolute`, `is_local`, and `is_weak` to `read::elf::Sym`.
153 [#685](https://github.com/gimli-rs/object/pull/685)
154
155 ### Changed
156
157 * Changed `read::ArchiveFile` to skip the `<ECSYMBOLS>` member.
158 [#669](https://github.com/gimli-rs/object/pull/669)
159
160 * Fixed handling of segment data in the dyld shared cache.
161 [#673](https://github.com/gimli-rs/object/pull/673)
162
163 * Changed `read::RelocationMap` to handle Mach-O section relocations.
164 [#675](https://github.com/gimli-rs/object/pull/675)
165
166 * Changed `read::elf::RelocationSections` to ignore relocations that apply to relocations.
167 [#680](https://github.com/gimli-rs/object/pull/680)
168
169 * Removed a lifetime bound from an argument in `read::elf::SectionTable::section_name`,
170 `read::elf::SymbolTable::symbol_name`, and `read::elf::SymbolTable::symbol_section`.
171 [#681](https://github.com/gimli-rs/object/pull/681)
172
173 --------------------------------------------------------------------------------
174
175 ## 0.35.0
176
177 Released 2024/04/10.
178
179 ### Breaking changes
180
181 * Moved the `'file` lifetime parameter from `read::Object` to its associated types.
182 [#655](https://github.com/gimli-rs/object/pull/655)
183
184 ### Added
185
186 * Added support more section kinds in `build::elf`.
187 [#650](https://github.com/gimli-rs/object/pull/650)
188
189 * Added thin archive support to `read::ArchiveFile`.
190 [#651](https://github.com/gimli-rs/object/pull/651)
191
192 * Added `read::ReadCacheOps` and changed `read::ReadCache` bound from `Read + Seek` to `ReadCacheOps`.
193 [#652](https://github.com/gimli-rs/object/pull/652)
194
195 * Added `read::ObjectSection::relocation_map`
196 [#654](https://github.com/gimli-rs/object/pull/654)
197
198 * Added `read::ArchiveFile::symbols`.
199 [#658](https://github.com/gimli-rs/object/pull/658)
200
201 * Added `BinaryFormat::native_object`.
202 [#661](https://github.com/gimli-rs/object/pull/661)
203
204 ### Changed
205
206 * The minimum supported rust version for the `read` feature and its dependencies
207 has changed to 1.65.0.
208 [#655](https://github.com/gimli-rs/object/pull/655)
209
210 * Fixed `sh_offset` handling for `SHT_NOBITS` sections in `build::elf`.
211 [#645](https://github.com/gimli-rs/object/pull/645)
212
213 * Fixed handling of ELF files with dynamic symbols but no dynamic strings.
214 [#646](https://github.com/gimli-rs/object/pull/646)
215
216 * Fixed potential panics in `read::WasmFile` due to invalid function indices.
217 [#649](https://github.com/gimli-rs/object/pull/649)
218
219 * Fixed handling of Wasm components in `read::WasmFile`.
220 [#649](https://github.com/gimli-rs/object/pull/649)
221
222 * Fixed `sh_entsize` for 32-bit hash sections in `write::elf`.
223 [#650](https://github.com/gimli-rs/object/pull/650)
224
225 * Fixed `sh_size` for attribute sections in `build::elf`.
226 [#650](https://github.com/gimli-rs/object/pull/650)
227
228 * Fixed `sh_info` for `SHT_DYNSYM` sections in `build::elf`.
229 [#650](https://github.com/gimli-rs/object/pull/650)
230
231 * Fixed handling of dynamic relocations with invalid `sh_link` in `build::elf`.
232 [#650](https://github.com/gimli-rs/object/pull/650)
233
234 * Fixed parsing of member names containing '/' in `read::ArchiveFile`.
235 [#657](https://github.com/gimli-rs/object/pull/657)
236
237 * Fixed handling of load segment alignments in `build::elf::Builder::read`.
238 [#659](https://github.com/gimli-rs/object/pull/659)
239
240 --------------------------------------------------------------------------------
241
242 ## 0.34.0
243
244 Released 2024/03/11.
245
246 ### Breaking changes
247
248 * Replaced `macho::DyldSubCacheInfo` with `macho::DyldSubCacheEntryV1`.
249 Changed the return type of `macho::DyldCacheHeader::subcaches`.
250 [#642](https://github.com/gimli-rs/object/pull/642)
251
252 ### Changed
253
254 * Added `macho::DyldSubCacheEntryV2` and changed `read::macho::DyldCache`
255 to handle both versions. This is needed for macOS 13 and above.
256 [#642](https://github.com/gimli-rs/object/pull/642)
257
258 --------------------------------------------------------------------------------
259
260 ## 0.33.0
261
262 Released 2024/03/05.
263
264 ### Breaking changes
265
266 * Deleted file format variants in `RelocationKind`. Replaced their usage
267 with `read::Relocation::flags` and `write::Relocation::flags`.
268 [#585](https://github.com/gimli-rs/object/pull/585)
269
270 * Replaced `kind`, `encoding` and `size` fields in `write::Relocation`
271 with `RelocationFlags::Generic` in the `flags` field.
272 [#585](https://github.com/gimli-rs/object/pull/585)
273
274 * Replaced `macho::FatHeader::parse`, `macho::FatHeader::parse_arch32`,
275 and `macho::FatHeader::parse_arch64` with `read::macho::MachOFatFile`,
276 `read::macho::MachOFatFile32` and `read::macho::MachOFatFile64`.
277 [#623](https://github.com/gimli-rs/object/pull/623)
278
279 ### Added
280
281 * Added `macho::PLATFORM_XROS` and `macho::PLATFORM_XROSSIMULATOR`.
282 [#626](https://github.com/gimli-rs/object/pull/626)
283
284 * Added `build::elf::Builder` and associated types.
285 Extended `write::elf::Writer` to support this.
286 [#618](https://github.com/gimli-rs/object/pull/618)
287
288 ### Changed
289
290 * Changed the lifetime to `'data` for the return value of `ObjectSection::name`,
291 `ObjectSection::name_bytes`, `ObjectComdat::name`, `ObjectComdat::name_bytes`.
292 [#620](https://github.com/gimli-rs/object/pull/620)
293 [#622](https://github.com/gimli-rs/object/pull/622)
294
295 * Checked that sizes are smaller than the file length in `read::ReadCache`.
296 [#630](https://github.com/gimli-rs/object/pull/630)
297
298 * Used `Vec::try_reserve_exact` for large allocations.
299 [#632](https://github.com/gimli-rs/object/pull/632)
300
301 --------------------------------------------------------------------------------
302
303 ## 0.32.2
304
305 Released 2023/12/24.
306
307 ### Added
308
309 * Added ELF relocations for LoongArch ABI v2.20.
310 [#578](https://github.com/gimli-rs/object/pull/578)
311 [#589](https://github.com/gimli-rs/object/pull/589)
312
313 * Added ELF support for SHARC.
314 [#593](https://github.com/gimli-rs/object/pull/593)
315
316 * Added `write::coff::Writer`.
317 [#595](https://github.com/gimli-rs/object/pull/595)
318
319 * Added `SubArchitecture::Arm64EC` support for PE/COFF.
320 [#607](https://github.com/gimli-rs/object/pull/607)
321
322 * Added `SubArchitecture::Arm64E` support for Mach-O.
323 [#614](https://github.com/gimli-rs/object/pull/614)
324
325 * Added `read::Object::symbol_by_name` and `read::Object::symbol_by_name_bytes`.
326 [#602](https://github.com/gimli-rs/object/pull/602)
327
328 * Added more functions to the low level API in `read::xcoff`.
329 [#608](https://github.com/gimli-rs/object/pull/608)
330
331 * Added more functions to the low level API in `read::macho`.
332 [#584](https://github.com/gimli-rs/object/pull/584)
333
334 ### Changed
335
336 * Fixes for AArch64 relocation addends for Mach-O.
337 [#581](https://github.com/gimli-rs/object/pull/581)
338
339 * Changes to `write::Object` output for Mach-O, including the addition of a `LC_DYSYMTAB` load command.
340 [#584](https://github.com/gimli-rs/object/pull/584)
341
342 * Changed `write::Object` to always use `R_X86_64_PLT32` for x86-64 branches for ELF.
343 [#590](https://github.com/gimli-rs/object/pull/590)
344
345 * Fixed `read::ObjectSymbol::kind` for undefined section symbols for COFF.
346 [#592](https://github.com/gimli-rs/object/pull/592)
347
348 * Fixed `write::Object` to accept undefined section symbols for COFF.
349 [#594](https://github.com/gimli-rs/object/pull/594)
350
351 * Improved parsing of auxiliary section symbols for COFF.
352 [#603](https://github.com/gimli-rs/object/pull/603)
353
354 * Improved the selection of symbols for `read::Object::symbol_map`.
355 This includes changes to `read::Symbol::is_definition`.
356 [#601](https://github.com/gimli-rs/object/pull/601)
357 [#606](https://github.com/gimli-rs/object/pull/606)
358
359 * Changed `read::ObjectSymbol::kind` for ELF `STT_NOTYPE` symbols to `SymbolKind::Unknown`.
360 [#604](https://github.com/gimli-rs/object/pull/604)
361
362 * Changed `read::ObjectSymbol::scope` for XCOFF `C_HIDEXT` symbols to `SymbolScope::Compilation`.
363 [#605](https://github.com/gimli-rs/object/pull/605)
364
365 --------------------------------------------------------------------------------
366
367 ## 0.32.1
368
369 Released 2023/09/03.
370
371 ### Added
372
373 * Added `write::Object::set_macho_cpu_subtype`.
374 [#574](https://github.com/gimli-rs/object/pull/574)
375
376 --------------------------------------------------------------------------------
377
378 ## 0.32.0
379
380 Released 2023/08/12.
381
382 ### Breaking changes
383
384 * Changed `read::elf::Note::name` to exclude all trailing null bytes.
385 [#549](https://github.com/gimli-rs/object/pull/549)
386
387 * Updated dependencies, and changed some optional dependencies to use the `dep:`
388 feature syntax.
389 [#558](https://github.com/gimli-rs/object/pull/558)
390 [#569](https://github.com/gimli-rs/object/pull/569)
391
392 ### Changed
393
394 * The minimum supported rust version for the `read` feature and its dependencies
395 has changed to 1.60.0.
396
397 * The minimum supported rust version for other features has changed to 1.65.0.
398
399 * Changed many definitions from `static` to `const`.
400 [#549](https://github.com/gimli-rs/object/pull/549)
401
402 * Fixed Mach-O section alignment padding in `write::Object`.
403 [#553](https://github.com/gimli-rs/object/pull/553)
404
405 * Changed `read::File` to an enum.
406 [#564](https://github.com/gimli-rs/object/pull/564)
407
408 ### Added
409
410 * Added `elf::ELF_NOTE_GO`, `elf::NT_GO_BUILD_ID`, and `read::elf::Note::name_bytes`.
411 [#549](https://github.com/gimli-rs/object/pull/549)
412
413 * Added `read::FileKind::CoffImport` and `read::coff::ImportFile`.
414 [#555](https://github.com/gimli-rs/object/pull/555)
415 [#556](https://github.com/gimli-rs/object/pull/556)
416
417 * Added `Architecture::Csky` and basic ELF support for C-SKY.
418 [#561](https://github.com/gimli-rs/object/pull/561)
419
420 * Added `read::elf::ElfSymbol::raw_symbol`.
421 [#562](https://github.com/gimli-rs/object/pull/562)
422
423 --------------------------------------------------------------------------------
424
425 ## 0.30.4
426
427 Released 2023/06/05.
428
429 ### Changed
430
431 * Fixed Mach-O section alignment padding in `write::Object`.
432 [#553](https://github.com/gimli-rs/object/pull/553)
433
434 --------------------------------------------------------------------------------
435
436 ## 0.31.1
437
438 Released 2023/05/09.
439
440 ### Changed
441
442 * Fixed address for global symbols in `read::wasm`.
443 [#539](https://github.com/gimli-rs/object/pull/539)
444
445 * Fixed writing of alignment for empty ELF sections.
446 [#540](https://github.com/gimli-rs/object/pull/540)
447
448 ### Added
449
450 * Added more `elf::GNU_PROPERTY_*` definitions.
451 Added `read::elf::note::gnu_properties`, `write::StandardSection::GnuProperty`,
452 and `write::Object::add_elf_gnu_property_u32`.
453 [#537](https://github.com/gimli-rs/object/pull/537)
454 [#541](https://github.com/gimli-rs/object/pull/541)
455
456 * Added Mach-O support for `Architecture::Aarch64_Ilp32`.
457 [#542](https://github.com/gimli-rs/object/pull/542)
458 [#545](https://github.com/gimli-rs/object/pull/545)
459
460 * Added `Architecture::Wasm64`.
461 [#543](https://github.com/gimli-rs/object/pull/543)
462
463 --------------------------------------------------------------------------------
464
465 ## 0.31.0
466
467 Released 2023/04/14.
468
469 ### Breaking changes
470
471 * Added a type parameter on existing COFF types to support reading COFF `/bigobj` files.
472 [#502](https://github.com/gimli-rs/object/pull/502)
473
474 * Changed PE symbols to support COFF `/bigobj`.
475 Changed `pe::IMAGE_SYM_*` to `i32`.
476 Changed `pe::ImageSymbolEx::section_number` to `I32Bytes`.
477 Deleted a number of methods from `pe::ImageSymbol`.
478 Use the `read::pe::ImageSymbol` trait instead.
479 [#502](https://github.com/gimli-rs/object/pull/502)
480
481 * Changed `pe::Guid` to a single array, and added methods to read the individual fields.
482 [#502](https://github.com/gimli-rs/object/pull/502)
483
484 * Added `Symbol` type parameter to `SymbolFlags` to support `SymbolFlags::Xcoff`.
485 [#527](https://github.com/gimli-rs/object/pull/527)
486
487 ### Changed
488
489 * Fix alignment when reserving zero length sections in `write::elf::Write::reserve`.
490 [#514](https://github.com/gimli-rs/object/pull/514)
491
492 * Validate command size in `read::macho::LoadCommandIterator`.
493 [#516](https://github.com/gimli-rs/object/pull/516)
494
495 * Handle invalid alignment in `read::macho::MachoSection::align`.
496 [#516](https://github.com/gimli-rs/object/pull/516)
497
498 * Accept `SymbolKind::Unknown` in `write::Object::macho_write`.
499 [#519](https://github.com/gimli-rs/object/pull/519)
500
501 * Updated `wasmparser` dependency.
502 [#528](https://github.com/gimli-rs/object/pull/528)
503
504 ### Added
505
506 * Added more `elf::EF_RISCV_*` definitions.
507 [#507](https://github.com/gimli-rs/object/pull/507)
508
509 * Added `read::elf::SectionHeader::gnu_attributes` and associated types.
510 Added `.gnu.attributes` support to `write::elf::Writer`.
511 [#509](https://github.com/gimli-rs/object/pull/509)
512 [#525](https://github.com/gimli-rs/object/pull/525)
513
514 * Added `write::Object::set_macho_build_version`.
515 [#524](https://github.com/gimli-rs/object/pull/524)
516
517 * Added `read::FileKind::Xcoff32`, `read::FileKind::Xcoff64`, `read::XcoffFile`,
518 and associated types.
519 Added XCOFF support to `write::Object`.
520 [#469](https://github.com/gimli-rs/object/pull/469)
521 [#476](https://github.com/gimli-rs/object/pull/476)
522 [#477](https://github.com/gimli-rs/object/pull/477)
523 [#482](https://github.com/gimli-rs/object/pull/482)
524 [#484](https://github.com/gimli-rs/object/pull/484)
525 [#486](https://github.com/gimli-rs/object/pull/486)
526 [#527](https://github.com/gimli-rs/object/pull/527)
527
528 * Added `read::FileKind::CoffBig`, `read::pe::CoffHeader` and `read::pe::ImageSymbol`.
529 [#502](https://github.com/gimli-rs/object/pull/502)
530
531 * Added `elf::PT_GNU_PROPERTY`.
532 [#530](https://github.com/gimli-rs/object/pull/530)
533
534 * Added `elf::ELFCOMPRESS_ZSTD`, `read::CompressionFormat::Zstandard`,
535 and Zstandard decompression in `read::CompressedData::decompress` using
536 the `ruzstd` crate.
537 [#532](https://github.com/gimli-rs/object/pull/532)
538
539 * Added `read::elf::NoteIterator::new`.
540 [#533](https://github.com/gimli-rs/object/pull/533)
541
542 --------------------------------------------------------------------------------
543
544 ## 0.30.3
545
546 Released 2023/01/23.
547
548 ### Added
549
550 * Added `SectionKind::ReadOnlyDataWithRel` for writing.
551 [#504](https://github.com/gimli-rs/object/pull/504)
552
553 --------------------------------------------------------------------------------
554
555 ## 0.30.2
556
557 Released 2023/01/11.
558
559 ### Added
560
561 * Added more ELF constants for AVR flags and relocations.
562 [#500](https://github.com/gimli-rs/object/pull/500)
563
564 --------------------------------------------------------------------------------
565
566 ## 0.30.1
567
568 Released 2023/01/04.
569
570 ### Changed
571
572 * Changed `read::ElfSymbol::kind` to handle `STT_NOTYPE` and `STT_GNU_IFUNC`.
573 [#498](https://github.com/gimli-rs/object/pull/498)
574
575 ### Added
576
577 * Added `read::CoffSymbol::raw_symbol`.
578 [#494](https://github.com/gimli-rs/object/pull/494)
579
580 * Added ELF support for Solana Binary Format.
581 [#491](https://github.com/gimli-rs/object/pull/491)
582
583 * Added ELF support for AArch64 ILP32.
584 [#497](https://github.com/gimli-rs/object/pull/497)
585
586 --------------------------------------------------------------------------------
587
588 ## 0.30.0
589
590 Released 2022/11/22.
591
592 ### Breaking changes
593
594 * The minimum supported rust version for the `read` feature has changed to 1.52.0.
595 [#458](https://github.com/gimli-rs/object/pull/458)
596
597 * The minimum supported rust version for the `write` feature has changed to 1.61.0.
598
599 * Fixed endian handling in `read::elf::SymbolTable::shndx`.
600 [#458](https://github.com/gimli-rs/object/pull/458)
601
602 * Fixed endian handling in `read::pe::ResourceName`.
603 [#458](https://github.com/gimli-rs/object/pull/458)
604
605 * Changed definitions for LoongArch ELF header flags.
606 [#483](https://github.com/gimli-rs/object/pull/483)
607
608 ### Changed
609
610 * Fixed parsing of multiple debug directory entries in `read::pe::PeFile::pdb_info`.
611 [#451](https://github.com/gimli-rs/object/pull/451)
612
613 * Changed the section name used when writing COFF stub symbols.
614 [#475](https://github.com/gimli-rs/object/pull/475)
615
616 ### Added
617
618 * Added `read::pe::DataDirectories::delay_load_import_table`.
619 [#448](https://github.com/gimli-rs/object/pull/448)
620
621 * Added `read::macho::LoadCommandData::raw_data`.
622 [#449](https://github.com/gimli-rs/object/pull/449)
623
624 * Added ELF relocations for LoongArch ps ABI v2.
625 [#450](https://github.com/gimli-rs/object/pull/450)
626
627 * Added PowerPC support for Mach-O.
628 [#460](https://github.com/gimli-rs/object/pull/460)
629
630 * Added support for reading the AIX big archive format.
631 [#462](https://github.com/gimli-rs/object/pull/462)
632 [#467](https://github.com/gimli-rs/object/pull/467)
633 [#473](https://github.com/gimli-rs/object/pull/473)
634
635 * Added support for `RelocationEncoding::AArch64Call` when writing Mach-O files.
636 [#465](https://github.com/gimli-rs/object/pull/465)
637
638 * Added support for `RelocationKind::Relative` when writing RISC-V ELF files.
639 [#470](https://github.com/gimli-rs/object/pull/470)
640
641 * Added Xtensa architecture support for ELF.
642 [#481](https://github.com/gimli-rs/object/pull/481)
643
644 * Added `read::pe::ResourceName::raw_data`.
645 [#487](https://github.com/gimli-rs/object/pull/487)
646
647 --------------------------------------------------------------------------------
648
649 ## 0.29.0
650
651 Released 2022/06/22.
652
653 ### Breaking changes
654
655 * The `write` feature now has a minimum supported rust version of 1.56.1.
656 [#444](https://github.com/gimli-rs/object/pull/444)
657
658 * Added `os_abi` and `abi_version` fields to `FileFlags::Elf`.
659 [#438](https://github.com/gimli-rs/object/pull/438)
660 [#441](https://github.com/gimli-rs/object/pull/441)
661
662 ### Changed
663
664 * Fixed handling of empty symbol tables in `read::elf::ElfFile::symbol_table` and
665 `read::elf::ElfFile::dynamic_symbol_table`.
666 [#443](https://github.com/gimli-rs/object/pull/443)
667
668 ### Added
669
670 * Added more `ELF_OSABI_*` constants.
671 [#439](https://github.com/gimli-rs/object/pull/439)
672
673 --------------------------------------------------------------------------------
674
675 ## 0.28.4
676
677 Released 2022/05/09.
678
679 ### Added
680
681 * Added `read::pe::DataDirectories::resource_directory`.
682 [#425](https://github.com/gimli-rs/object/pull/425)
683 [#427](https://github.com/gimli-rs/object/pull/427)
684
685 * Added PE support for more ARM relocations.
686 [#428](https://github.com/gimli-rs/object/pull/428)
687
688 * Added support for `Architecture::LoongArch64`.
689 [#430](https://github.com/gimli-rs/object/pull/430)
690 [#432](https://github.com/gimli-rs/object/pull/432)
691
692 * Added `elf::EF_MIPS_ABI` and associated constants.
693 [#433](https://github.com/gimli-rs/object/pull/433)
694
695 --------------------------------------------------------------------------------
696
697 ## 0.28.3
698
699 Released 2022/01/19.
700
701 ### Changed
702
703 * For the Mach-O support in `write::Object`, accept `RelocationKind::MachO` for all
704 architectures, and accept `RelocationKind::Absolute` for ARM64.
705 [#422](https://github.com/gimli-rs/object/pull/422)
706
707 ### Added
708
709 * Added `pe::ImageDataDirectory::file_range`, `read::pe::SectionTable::pe_file_range_at`
710 and `pe::ImageSectionHeader::pe_file_range_at`.
711 [#421](https://github.com/gimli-rs/object/pull/421)
712
713 * Added `write::Object::add_coff_exports`.
714 [#423](https://github.com/gimli-rs/object/pull/423)
715
716 --------------------------------------------------------------------------------
717
718 ## 0.28.2
719
720 Released 2022/01/09.
721
722 ### Changed
723
724 * Ignored errors for the Wasm extended name section in `read::WasmFile::parse`.
725 [#408](https://github.com/gimli-rs/object/pull/408)
726
727 * Ignored errors for the COFF symbol table in `read::PeFile::parse`.
728 [#410](https://github.com/gimli-rs/object/pull/410)
729
730 * Fixed handling of `SectionFlags::Coff` in `write::Object::coff_write`.
731 [#412](https://github.com/gimli-rs/object/pull/412)
732
733 ### Added
734
735 * Added `read::ObjectSegment::flags`.
736 [#416](https://github.com/gimli-rs/object/pull/416)
737 [#418](https://github.com/gimli-rs/object/pull/418)
738
739 --------------------------------------------------------------------------------
740
741 ## 0.28.1
742
743 Released 2021/12/12.
744
745 ### Changed
746
747 * Fixed `read::elf::SymbolTable::shndx_section`.
748 [#405](https://github.com/gimli-rs/object/pull/405)
749
750 * Fixed build warnings.
751 [#405](https://github.com/gimli-rs/object/pull/405)
752 [#406](https://github.com/gimli-rs/object/pull/406)
753
754 --------------------------------------------------------------------------------
755
756 ## 0.28.0
757
758 Released 2021/12/12.
759
760 ### Breaking changes
761
762 * `write_core` feature no longer enables `std` support. Use `write_std` instead.
763 [#400](https://github.com/gimli-rs/object/pull/400)
764
765 * Multiple changes related to Mach-O split dyld cache support.
766 [#398](https://github.com/gimli-rs/object/pull/398)
767
768 ### Added
769
770 * Added `write::pe::Writer::write_file_align`.
771 [#397](https://github.com/gimli-rs/object/pull/397)
772
773 * Added support for Mach-O split dyld cache.
774 [#398](https://github.com/gimli-rs/object/pull/398)
775
776 * Added support for `IMAGE_SCN_LNK_NRELOC_OVFL` when reading and writing COFF.
777 [#399](https://github.com/gimli-rs/object/pull/399)
778
779 * Added `write::elf::Writer::reserve_null_symbol_index`.
780 [#402](https://github.com/gimli-rs/object/pull/402)
781
782 --------------------------------------------------------------------------------
783
784 ## 0.27.1
785
786 Released 2021/10/22.
787
788 ### Changed
789
790 * Fixed build error with older Rust versions due to cargo resolver version.
791
792 --------------------------------------------------------------------------------
793
794 ## 0.27.0
795
796 Released 2021/10/17.
797
798 ### Breaking changes
799
800 * Changed `read::elf` to use `SectionIndex` instead of `usize` in more places.
801 [#341](https://github.com/gimli-rs/object/pull/341)
802
803 * Changed some `read::elf` section methods to additionally return the linked section index.
804 [#341](https://github.com/gimli-rs/object/pull/341)
805
806 * Changed `read::pe::ImageNtHeaders::parse` to return `DataDirectories` instead of a slice.
807 [#357](https://github.com/gimli-rs/object/pull/357)
808
809 * Deleted `value` parameter for `write:WritableBuffer::resize`.
810 [#369](https://github.com/gimli-rs/object/pull/369)
811
812 * Changed `write::Object` and `write::Section` to use `Cow` for section data.
813 This added a lifetime parameter, which existing users can set to `'static`.
814 [#370](https://github.com/gimli-rs/object/pull/370)
815
816 ### Changed
817
818 * Fixed parsing when PE import directory has zero size.
819 [#341](https://github.com/gimli-rs/object/pull/341)
820
821 * Fixed parsing when PE import directory has zero for original first thunk.
822 [#385](https://github.com/gimli-rs/object/pull/385)
823 [#387](https://github.com/gimli-rs/object/pull/387)
824
825 * Fixed parsing when PE export directory has zero number of names.
826 [#353](https://github.com/gimli-rs/object/pull/353)
827
828 * Fixed parsing when PE export directory has zero number of names and addresses.
829 [#362](https://github.com/gimli-rs/object/pull/362)
830
831 * Fixed parsing when PE sections are contiguous.
832 [#354](https://github.com/gimli-rs/object/pull/354)
833
834 * Fixed `std` feature for `indexmap` dependency.
835 [#374](https://github.com/gimli-rs/object/pull/374)
836
837 * Fixed overflow in COFF section name offset parsing.
838 [#390](https://github.com/gimli-rs/object/pull/390)
839
840 ### Added
841
842 * Added `name_bytes` methods to unified `read` traits.
843 [#351](https://github.com/gimli-rs/object/pull/351)
844
845 * Added `read::Object::kind`.
846 [#352](https://github.com/gimli-rs/object/pull/352)
847
848 * Added `read::elf::VersionTable` and related helpers.
849 [#341](https://github.com/gimli-rs/object/pull/341)
850
851 * Added `read::elf::SectionTable::dynamic` and related helpers.
852 [#345](https://github.com/gimli-rs/object/pull/345)
853
854 * Added `read::coff::SectionTable::max_section_file_offset`.
855 [#344](https://github.com/gimli-rs/object/pull/344)
856
857 * Added `read::pe::ExportTable` and related helpers.
858 [#349](https://github.com/gimli-rs/object/pull/349)
859 [#353](https://github.com/gimli-rs/object/pull/353)
860
861 * Added `read::pe::ImportTable` and related helpers.
862 [#357](https://github.com/gimli-rs/object/pull/357)
863
864 * Added `read::pe::DataDirectories` and related helpers.
865 [#357](https://github.com/gimli-rs/object/pull/357)
866 [#384](https://github.com/gimli-rs/object/pull/384)
867
868 * Added `read::pe::RichHeaderInfo` and related helpers.
869 [#375](https://github.com/gimli-rs/object/pull/375)
870 [#379](https://github.com/gimli-rs/object/pull/379)
871
872 * Added `read::pe::RelocationBlocks` and related helpers.
873 [#378](https://github.com/gimli-rs/object/pull/378)
874
875 * Added `write::elf::Writer`.
876 [#350](https://github.com/gimli-rs/object/pull/350)
877
878 * Added `write::pe::Writer`.
879 [#382](https://github.com/gimli-rs/object/pull/382)
880 [#388](https://github.com/gimli-rs/object/pull/388)
881
882 * Added `write::Section::data/data_mut`.
883 [#367](https://github.com/gimli-rs/object/pull/367)
884
885 * Added `write::Object::write_stream`.
886 [#369](https://github.com/gimli-rs/object/pull/369)
887
888 * Added MIPSr6 ELF header flag definitions.
889 [#372](https://github.com/gimli-rs/object/pull/372)
890
891 --------------------------------------------------------------------------------
892
893 ## 0.26.2
894
895 Released 2021/08/28.
896
897 ### Added
898
899 * Added support for 64-bit symbol table names to `read::archive`.
900 [#366](https://github.com/gimli-rs/object/pull/366)
901
902 --------------------------------------------------------------------------------
903
904 ## 0.26.1
905
906 Released 2021/08/19.
907
908 ### Changed
909
910 * Activate `memchr`'s `rustc-dep-of-std` feature
911 [#356](https://github.com/gimli-rs/object/pull/356)
912
913 --------------------------------------------------------------------------------
914
915 ## 0.26.0
916
917 Released 2021/07/26.
918
919 ### Breaking changes
920
921 * Changed `ReadRef::read_bytes_at_until` to accept a range parameter.
922 [#326](https://github.com/gimli-rs/object/pull/326)
923
924 * Added `ReadRef` type parameter to `read::StringTable` and types that
925 contain it. String table entries are now only read as required.
926 [#326](https://github.com/gimli-rs/object/pull/326)
927
928 * Changed result type of `read::elf::SectionHeader::data` and `data_as_array`.
929 [#332](https://github.com/gimli-rs/object/pull/332)
930
931 * Moved `pod::WritableBuffer` to `write::WritableBuffer`.
932 Renamed `WritableBuffer::extend` to `write_bytes`.
933 Added more provided methods to `WritableBuffer`.
934 [#335](https://github.com/gimli-rs/object/pull/335)
935
936 * Moved `pod::Bytes` to `read::Bytes`.
937 [#336](https://github.com/gimli-rs/object/pull/336)
938
939 * Added `is_mips64el` parameter to `elf::Rela64::r_info/set_r_info`.
940 [#337](https://github.com/gimli-rs/object/pull/337)
941
942 ### Changed
943
944 * Removed `alloc` dependency when no features are enabled.
945 [#336](https://github.com/gimli-rs/object/pull/336)
946
947 ### Added
948
949 * Added `read::pe::PeFile` methods: `section_table`, `data_directory`, and `data`.
950 [#324](https://github.com/gimli-rs/object/pull/324)
951
952 * Added more ELF definitions.
953 [#332](https://github.com/gimli-rs/object/pull/332)
954
955 * Added `read::elf::SectionTable` methods for hash tables and symbol version
956 information.
957 [#332](https://github.com/gimli-rs/object/pull/332)
958
959 * Added PE RISC-V definitions.
960 [#333](https://github.com/gimli-rs/object/pull/333)
961
962 * Added `WritableBuffer` implementation for `Vec`.
963 [#335](https://github.com/gimli-rs/object/pull/335)
964
965 --------------------------------------------------------------------------------
966
967 ## 0.25.3
968
969 Released 2021/06/12.
970
971 ### Added
972
973 * Added `RelocationEncoding::AArch64Call`.
974 [#322](https://github.com/gimli-rs/object/pull/322)
975
976 --------------------------------------------------------------------------------
977
978 ## 0.25.2
979
980 Released 2021/06/04.
981
982 ### Added
983
984 * Added `Architecture::X86_64_X32`.
985 [#320](https://github.com/gimli-rs/object/pull/320)
986
987 --------------------------------------------------------------------------------
988
989 ## 0.25.1
990
991 Released 2021/06/03.
992
993 ### Changed
994
995 * write: Fix choice of `SHT_REL` or `SHT_RELA` for most architectures.
996 [#318](https://github.com/gimli-rs/object/pull/318)
997
998 * write: Fix relocation encoding for MIPS64EL.
999 [#318](https://github.com/gimli-rs/object/pull/318)
1000
1001 --------------------------------------------------------------------------------
1002
1003 ## 0.25.0
1004
1005 Released 2021/06/02.
1006
1007 ### Breaking changes
1008
1009 * Added `non_exhaustive` to most public enums.
1010 [#306](https://github.com/gimli-rs/object/pull/306)
1011
1012 * `MachHeader::parse` and `MachHeader::load_commands` now require a header offset.
1013 [#304](https://github.com/gimli-rs/object/pull/304)
1014
1015 * Added `ReadRef::read_bytes_at_until`.
1016 [#308](https://github.com/gimli-rs/object/pull/308)
1017
1018 * `PeFile::entry`, `PeSection::address` and `PeSegment::address` now return a
1019 virtual address instead of a RVA.
1020 [#315](https://github.com/gimli-rs/object/pull/315)
1021
1022 ### Added
1023
1024 * Added `pod::from_bytes_mut`, `pod::slice_from_bytes_mut`, `pod::bytes_of_mut`,
1025 and `pod::bytes_of_slice_mut`.
1026 [#296](https://github.com/gimli-rs/object/pull/296)
1027 [#297](https://github.com/gimli-rs/object/pull/297)
1028
1029 * Added `Object::pdb_info`.
1030 [#298](https://github.com/gimli-rs/object/pull/298)
1031
1032 * Added `read::macho::DyldCache`, other associated definitions,
1033 and support for these in the examples.
1034 [#308](https://github.com/gimli-rs/object/pull/308)
1035
1036 * Added more architecture support.
1037 [#303](https://github.com/gimli-rs/object/pull/303)
1038 [#309](https://github.com/gimli-rs/object/pull/309)
1039
1040 * Derive more traits for enums.
1041 [#311](https://github.com/gimli-rs/object/pull/311)
1042
1043 * Added `Object::relative_address_base`.
1044 [#315](https://github.com/gimli-rs/object/pull/315)
1045
1046 ### Changed
1047
1048 * Improved performance for string parsing.
1049 [#302](https://github.com/gimli-rs/object/pull/302)
1050
1051 * `objdump` example allows selecting container members.
1052 [#308](https://github.com/gimli-rs/object/pull/308)