rust-ar icon indicating copy to clipboard operation
rust-ar copied to clipboard

Write symbol table

Open bjorn3 opened this issue 5 years ago • 4 comments

This means that it is no longer necessary to run ranlib afterwards. This PR also contains various cleanups. This is a breaking change.

TODO

  • [x] Implement symbol table writing for BSD style archives.

bjorn3 avatar Jul 11 '20 15:07 bjorn3

Ping @mdsteele

bjorn3 avatar Sep 16 '20 15:09 bjorn3

Just to check, since the code has moved around: are all the previously existing tests still there?

Yes

The symbol table writing for BSD is incorrect. @GregBowyer said they will investigate, but hasn't had time yet. I have changed new_with_symbol_table to private for now.

bjorn3 avatar Sep 18 '20 10:09 bjorn3

I need this functionality in a project, any progress on this? Any plan to move forward? Thanks!

messense avatar May 18 '22 06:05 messense

This PR doesn't work on macOS. I'm planning to instead rewrite LLVM's archive writer in rust and publish it as separate project. That is the easiest way to be certain it works on all platforms supported by LLVM.

bjorn3 avatar May 18 '22 06:05 bjorn3

I ported LLVM's archive writer to rust in https://github.com/rust-lang/ar_archive_writer instead.

bjorn3 avatar Jul 27 '23 18:07 bjorn3