fix(deps): update rust crate object to 0.40.0 - #286
Open
renovate-bot wants to merge 1 commit into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
0.39.0→0.40.0Release Notes
gimli-rs/object (object)
v0.40.0Compare Source
Released 2026/08/01.
Breaking changes
Changed many file format struct fields and constants to use newtypes.
Newtypes for bit flags have methods such as
containsandintersects.Some constants are fields within another newtype and have methods for conversion.
The raw values are always accessible by
.0.#894
#897
#898
#899
#900
#957
#958
#959
#970
Updated
macho::DyldCacheHeaderto dyld-1340.#885
Deleted
SectionKind::Elfand addedsh_typefield toSectionFlags::Elf.#891
Added feature gates to variants of
FileFlags,SegmentFlags,SectionFlags,SymbolFlags, andRelocationFlags.#891
Added
p_typefield toSegmentFlags::Elf.Added
n_typefield toSymbolFlags::MachO.Added
typandstorage_classfields toSymbolFlags::CoffSection.Added
n_typefield toSymbolFlags::Xcoff.Added
reserved2field toSectionFlags::MachO.#891
#963
Renamed
build::elf::AttributeTagtoAttributeScope.#894
Changed
write::elf::Writer::reserve_strtab/reserve_shstrtab/reserve_dynstrand
write::coff::Writer::reserve_symtab_strtabto return anErrorfornull bytes in strings, or table size overflow.
#905
Changed many
write::elf::Writermethods to returnu64instead ofusize.#909
Replaced name fields in
write::elf::SectionHeader,write::elf::Sym,write::elf::Verdefandwrite::elf::Vernauxwith string table offsets.Added
write::elf::Writermethods to obtain these offsets.#910
Added hash fields to
write::elf::Verdefandwrite::elf::Vernaux.Use
elf::hashto calculate the hash values.#910
Replaced
write::elf::Classwithwrite::elf::Encoder,and replaced
build::elf::Builder::classwithencoder.#910
Deleted
write::elf::Writer::reserve_*_section_index_with_nameand
write::elf::Writer::reserve_dynamics. There is no replacementfor these.
#912
Changed offsets from
usizetou64inwrite::WritableBufferand low level writing APIs.
#914
Improved overflow handling when writing. Some overflow handling for
write::elf::Writerhas been shifted to the caller, as indicated bynarrowed parameter types for
reserve_program_headers,reserve_gnu_verdefandreserve_gnu_verneed.#918
Added tool version data to
read::macho::LoadCommandVariant::BuildVersionand
endianparameter toread::macho::LoadCommandData::build_version.#920
Added
offsetparameter toread::macho::Section::file_rangeanddata.Added
read::macho::Segment::section_offsetsto assist.#923
#968
Replaced
write::WritableBuffer::resizewithwrite_zerosand deletedwrite::WritableBuffer::len. Addedwrite::CountingBufferwhich canwrap
WritableBufferto provideresizeandcountmethods.#930
#931
Moved
write::WritableBuffer::write_podandwrite_pod_sliceto anew
write::WritableBufferExttrait, and deleted thewriteandwrite_slicemethods fordyn WritableBuffer.#930
Sealed low level parsing traits.
#934
Renamed
read::coff::ImageSymboltoread::coff::Symbol.#936
Added
read::pe::ExportOrdinalandread::pe::ExportAddressIndex,and changed
read::pe::ExportTablemethods to use them.#942
Changed
read::Object::importsandread::Object::exportsto iterators,and expanded
read::Importandread::Exportto handle more types ofimports and exports.
Import::nameandExport::namereturnNameOrOrdinaland
Export::addressis replaced byExport::target.#941
#945
#946
#949
#955
#956
Fixed handling of common symbols for Mach-O; it is now similar to other formats.
Folded
SectionKind::CommonintoSectionKind::UninitializedDataanddeleted
write::StandardSection::Common, andwrite::Object::has_common.read::macho::Nlist::is_undefinednow excludes common symbols.#964
Changed
write::Symbol::valueto hold the alignment for common symbols.This is supported for ELF and Mach-O.
#964
Changed the return types of
read::elf::FileHeader::phnumandshnumfrom
usizetou32.#966
Added
Added
namesfeature to provide display names for file format constants.#876
#878
#902
Added relocation parsing for Wasm.
#895
Added more PE constants definitions.
#903
Added z/OS archive support.
#904
Added
write::elf::GrowableBufferandwrite::elf::SinglePhaseWriter.#908
#909
#916
#917
Added
write::StringTable.#910
Added
write::macho::Encoder.#913
#967
Added
build::macho::Builder.#921
#925
Added
macho::DyldInfoCommandmethods to parse rebases, binds, and exports.#922
Added
macho::LinkeditDataCommand::chained_fixups.#924
Added
macho::LinkeditDataCommand::code_signature.#932
Added initial GOFF definitions as an unstable feature.
#926
#962
Added
Architecture::Ia64.#927
Added
RelocationKindsupport formacho::ARM64_RELOC_POINTER_TO_GOT.#929
Added
read::macho::LoadCommandData::offset.#937
Added parsing support for
macho::R_ABS.#938
Added
read::Object::import_libraries.#960
Added
from_rawmethods for variouswrite::elfstructs.#966
Changed
Changed the minimum supported rust version (MSRV) for the
readfeature andits dependencies to 1.85.0.
#892
Changed the rust edition to 2024.
#893
Fixed
SectionKindfor Wasmreloc.*sections.#896
Fixed ELF
.symtab_shndxwriting whenst_shndxis notSHN_INDEX.#906
Changed
write::elf::Writerto handlee_phnumoverflow.#907
Fix ELF
.gnu.attributesalignment when writing.#912
Fixed some malformed data handling.
#939
#940
#961
Fixed COFF archive parsing of `/' member when no names table is
present.
#947
#948
Fixed
read::ObjectSymbol::addressto return 0 for common symbols insteadof the alignment.
#964
Changed Mach-O
SectionKindparsing to use flags where possible insteadof segment and section names.
#965
Updated
ruzstdandwasmparserdependencies.Configuration
📅 Schedule: (UTC)
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.