mirror of
https://github.com/netwide-assembler/nasm.git
synced 2025-03-25 18:10:23 +08:00
outbin.c: fix one missed change from type -> size
Fix one missed change from "type" to "size". May want to look through all the other backends as well for similar issues. This would generate the wrong section lengths, with obviously bad results.
This commit is contained in:
parent
dbb1828ad5
commit
604a3f4e21
@ -802,7 +802,7 @@ static void bin_out(int32_t segto, const void *data,
|
||||
" %s section: zeroing", s->name);
|
||||
saa_wbytes(s->contents, NULL, size);
|
||||
}
|
||||
s->length += type;
|
||||
s->length += size;
|
||||
} else if (type == OUT_REL2ADR || type == OUT_REL4ADR ||
|
||||
type == OUT_REL8ADR) {
|
||||
switch (type) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user