# objcopy: support some more elf file variants · gitcafe/zig

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

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

Visibility: public

Requested revision: 5eacddce99c36c6f6ab62e7e7e5cc427c3e2f807

Requested commit: 5eacddce99c36c6f6ab62e7e7e5cc427c3e2f807

Commit: 5eacddce99c36c6f6ab62e7e7e5cc427c3e2f807

Tree: b6bf137b19b107d355b2bde41d5e81d7f532f902

Author: Xavier Bouchoux

Committer: Xavier Bouchoux

## Message

```
objcopy: support some more elf file variants

"SHT_NOBITS" sections can be easily moved around in the file, they can be anywhere since there is no data...

and remove logic about the categorization of symbol tables:
  I don't understand or remember why it was needed,
  and, in my tests, it works fine without...

It previouly failed to strip an exe linked with `mold`

```

## Parents

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

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