From 604a3f4e219df8a0bc2e1b2ff355e9e3ea98eb69 Mon Sep 17 00:00:00 2001 From: "H. Peter Anvin" Date: Thu, 15 Nov 2007 10:24:55 -0800 Subject: [PATCH] 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. --- output/outbin.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/output/outbin.c b/output/outbin.c index 68c5d958..ba5c9f5e 100644 --- a/output/outbin.c +++ b/output/outbin.c @@ -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) {