Page MenuHomeFreeBSD

ar: diff reduction against ELF Tool Chain
ClosedPublic

Authored by emaste on Aug 10 2021, 11:33 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Aug 21, 6:08 PM
Unknown Object (File)
Thu, Aug 20, 2:48 PM
Unknown Object (File)
Wed, Aug 19, 7:54 PM
Unknown Object (File)
Tue, Aug 18, 10:12 PM
Unknown Object (File)
Mon, Aug 17, 8:15 AM
Unknown Object (File)
Sun, Aug 16, 11:31 AM
Unknown Object (File)
Sun, Aug 16, 1:41 AM
Unknown Object (File)
Sat, Aug 15, 7:08 AM
Subscribers

Details

Summary
Remove ar_mode_* wrappers and call ar_read_archive / ar_write_archive
directly.

Obtained from:  ELF Tool Chain
Sponsored by:   The FreeBSD Foundation

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

emaste created this revision.

I think we can drop some sysexits.h includes too?

usr.bin/ar/read.c
67–69

Assertion here too.

usr.bin/ar/write.c
69–70

Should be dropped I guess.

351–354

Upstream ar has an assertion about allowed values for type which I think would be worth having.

emaste marked an inline comment as done.

Updates from mark, rebase

This revision is now accepted and ready to land.Aug 11 2021, 5:31 PM
This revision was automatically updated to reflect the committed changes.
emaste updated this revision to Diff 93649.
emaste edited the summary of this revision. (Show Details)
emaste added a subscriber: cy.

Correct ranlib breakage reported by @cy

usr.bin/ar/ar.c
154

This was the mistake - I had ar_read_archive(bsdar, 's') here previously.

This revision is now accepted and ready to land.Aug 13 2021, 3:14 PM
This revision was automatically updated to reflect the committed changes.