# link.Elf: check files in archives for ELF magic · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/f551c7c581c7bf1f3324c0611a73c22f2aae82b4)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: f551c7c581c7bf1f3324c0611a73c22f2aae82b4

Requested commit: f551c7c581c7bf1f3324c0611a73c22f2aae82b4

Commit: f551c7c581c7bf1f3324c0611a73c22f2aae82b4

Tree: 41e8a857c7fc2b78e3e77ca3711d30c2e38e2053

Author: Isaac Freund

Committer: Alex Rønne Petersen

## Message

```
link.Elf: check files in archives for ELF magic

Apparently raw LLVM IR Bitcode files ("Bitstreams") may appear in
archives with LTO enabled. I observed this in the wild on
Chimera Linux.

I'm not yet sure if it's in scope for Zig to support these special
archives, but we should at least give a correct error message.

```

## Parents

- [5360968e03525be4d312ca61a7ba2dcb7890ec42](https://git.cafe/gitcafe/zig/commit/5360968e03525be4d312ca61a7ba2dcb7890ec42?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/f551c7c581c7bf1f3324c0611a73c22f2aae82b4?format=markdown)
