Skip to content

[fix] Do not add symbol table in ar utility#2149

Open
danpashin wants to merge 1 commit intojordansissel:mainfrom
danpashin:fix/ar-flags
Open

[fix] Do not add symbol table in ar utility#2149
danpashin wants to merge 1 commit intojordansissel:mainfrom
danpashin:fix/ar-flags

Conversation

@danpashin
Copy link
Copy Markdown

@danpashin danpashin commented Apr 10, 2026

Description

Xcode 26.4 and later enabled symbol table generation by default. This behavior causes ar to ignore all non-macho files leaving only SYMDEF entry and results in corrupted archive.

Compatibility

-S flag is already included in all ar impls: bsd (FreeBSD 13.5), llvm-ar (FreeBSD 15.0), gnu (ArchLinux, Ubuntu 16.04), Apple (MacOS 10.10) so this change is fully backward-compatible will all these tools and should not cause any undesirable behavior.

Closes #2148

Xcode 26.4 and later enabled symbol table generation by default,
this causes ar to ignore all non-macho files leaving only SYMDEF entry
and results in corrupted archive.
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.

Xcode 26.4 ar utility handles Mach-O files only

1 participant