# objcopy build step: don't accept multiple sections · gitcafe/zig

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

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

Visibility: public

Requested revision: aef66eebe3951c0e803c3535fb1a29768b8afdaf

Requested commit: aef66eebe3951c0e803c3535fb1a29768b8afdaf

Commit: aef66eebe3951c0e803c3535fb1a29768b8afdaf

Tree: d4c0b0b3344574b1e89c0475344cb78200c0df52

Author: wooster0

Committer: Andrew Kelley

## Message

```
objcopy build step: don't accept multiple sections

The actual `zig objcopy` does not accept keeping multiple sections.
If you pass multiple `-j .section` arguments to `zig objcopy`, it will
only respect the last one passed.

Originally I changed `zig objcopy` to accept multiple sections
and then concatenate them instead of returning after outputting the
first section (see emitElf) but I realized concatenating probably doesn't make sense.

```

## Parents

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

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