1
0
Fork
You've already forked zar
0

Matching llvm-ar output for GNU format #36

Merged
iddev5 merged 3 commits from writing/ar-parity into master 2021年11月15日 13:45:04 +01:00
iddev5 commented 2021年11月15日 13:35:11 +01:00 (Migrated from github.com)
Copy link

This PR makes some changes which now allows zar to generate archives which are compatible with llvm-ar generated archives.
This is only true for GNU format right now as BSD format needs additional offset tricks (BSD is align 8 vs GNU is align 2 which is performed for both right now)

Solutions may not be perfect (especially regarding file mode). Need additional real life testing for that.

Partially addresses #35

This PR unblocks writing tests (only for GNU format), which was previously not possible at all.

Issues with BSD would be addressed in a different PR as my goal is to do a thorough split up of finalize() function into multiple parts so as to do cleanup the mess of this function.

This PR makes some changes which now allows zar to generate archives which are compatible with llvm-ar generated archives. This is only true for GNU format right now as BSD format needs additional offset tricks (BSD is align 8 vs GNU is align 2 which is performed for both right now) Solutions may not be perfect (especially regarding file mode). Need additional real life testing for that. Partially addresses #35 This PR unblocks writing tests (only for GNU format), which was previously not possible at all. Issues with BSD would be addressed in a different PR as my goal is to do a thorough split up of finalize() function into multiple parts so as to do cleanup the mess of this function.
moosichu commented 2021年11月15日 23:21:29 +01:00 (Migrated from github.com)
Copy link

Oh wow, this is awesome! Wasn't expecting this to be done so quickly. I've not had much time to do anything recently, but hopefully I will do soon. Thank you for this!

Oh wow, this is awesome! Wasn't expecting this to be done so quickly. I've not had much time to do anything recently, but hopefully I will do soon. Thank you for this!
Sign in to join this conversation.
No reviewers
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Moosichu/zar!36
Reference in a new issue
Moosichu/zar
No description provided.
Delete branch "writing/ar-parity"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?