Skip to content

Reader: resolve BSD-variant file names before checking for symbol tables#23

Merged
chrisnovakovic merged 1 commit intoplease-build:masterfrom
chrisnovakovic:reader-resolve-bsd-filenames-first
Nov 28, 2025
Merged

Reader: resolve BSD-variant file names before checking for symbol tables#23
chrisnovakovic merged 1 commit intoplease-build:masterfrom
chrisnovakovic:reader-resolve-bsd-filenames-first

Conversation

@chrisnovakovic
Copy link

Darwin's ar(1) writes BSD-variant archives and treats file names containing exactly 16 characters as long file names; this causes it to write sorted symbol tables with the file name #1/16, which only becomes __.SYMDEF SORTED after long file names have been resolved. Parse the file name before checking whether it is indicative of the archive member being a symbol table.

Fixes #22.

Darwin's `ar(1)` writes BSD-variant archives and treats file names
containing exactly 16 characters as long file names; this causes it to
write sorted symbol tables with the file name `peterebden#1/16`, which only
becomes `__.SYMDEF SORTED` after long file names have been resolved.
Parse the file name before checking whether it is indicative of the
archive member being a symbol table.

Fixes #22.
@chrisnovakovic chrisnovakovic merged commit 20fe595 into please-build:master Nov 28, 2025
2 checks passed
@chrisnovakovic chrisnovakovic deleted the reader-resolve-bsd-filenames-first branch November 28, 2025 10:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Reader doesn't skip over Darwin-style symbol table archive members

2 participants