aboutsummaryrefslogtreecommitdiff
path: root/src/codegen
diff options
context:
space:
mode:
authorJonathan Marler <johnnymarler@gmail.com>2021-10-18 15:54:56 -0600
committerAndrew Kelley <andrew@ziglang.org>2021-10-21 17:03:44 -0400
commite2a2e6c14fe181989187d6b59a79c5fc32961250 (patch)
tree1eb9ff3e9cadb2f8499e65e779090775607eef1d /src/codegen
parentda2b615efb14f662bf3aac1f9050174966acd17d (diff)
downloadzig-e2a2e6c14fe181989187d6b59a79c5fc32961250.tar.gz
zig-e2a2e6c14fe181989187d6b59a79c5fc32961250.zip
InstallRawStep: handle empty segments
This fixes InstallRawStep to handle the cases when there are empty segments (segments with no sections). Before this change, if there was an empty segment with no sections, then the fixup of binaryOffsets is skipped. This fixes that by looping through each segment until a non-empty one is found and then fixing up the sections. This fixed an issue I was having with InstallRawStep for a bootloader I'm writing.
Diffstat (limited to 'src/codegen')
0 files changed, 0 insertions, 0 deletions