Closed bjorn3 closed 8 months ago
ArchiveFile
method to return a member at a given offset. Is that sufficient?The symbol table of the original archives is not currently used by the archive writer in rustc. It unconditionally looks directly at the object files. So at least for now reading the symbol table is not necessary.
I'll leave symbol table support for #479
This is necessary to fix https://github.com/rust-lang/rust/issues/107407 and allow moving rustc from LLVM's archive writer to ar_archive_writer again. The api for this should probably not directly read the member contents from the disk, but only parse the thin archive to get the member names (and optionally read the symbol table) to allow the consumer of this api to read them from the disk as necessary.