# \[elf linker\] add \-\-sort-section · gitcafe/zig

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

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

Visibility: public

Requested revision: b1b944a683a2143584055468ca7958d298a9742b

Requested commit: b1b944a683a2143584055468ca7958d298a9742b

Commit: b1b944a683a2143584055468ca7958d298a9742b

Tree: b7e969d756016f064f684070aaa6a2a7570e6323

Author: Motiejus Jakštys

Committer: Andrew Kelley

## Message

```
[elf linker] add --sort-section

Tested by: created a "hello world" C file and compiled with:

    zig cc -v main.c -Wl,--sort-section=name -o main

... and verified the `--sort-section=name` is passed to ld.lld.

Refs https://github.com/zigchroot/zig-chroot/issues/1

```

## Parents

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

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