mirror of
https://github.com/ziglang/zig.git
synced 2026-02-18 15:31:48 +00:00
objcopy.zig allow outputting zero length sections (#16121)
Co-authored-by: Andrew Kelley <andrew@ziglang.org>
This commit is contained in:
parent
438d680913
commit
991e00c270
@ -442,7 +442,7 @@ const BinaryElfOutput = struct {
|
||||
}
|
||||
|
||||
fn sectionValidForOutput(shdr: anytype) bool {
|
||||
return shdr.sh_size > 0 and shdr.sh_type != elf.SHT_NOBITS and
|
||||
return shdr.sh_type != elf.SHT_NOBITS and
|
||||
((shdr.sh_flags & elf.SHF_ALLOC) == elf.SHF_ALLOC);
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user