mirror of
https://github.com/netwide-assembler/nasm.git
synced 2025-02-17 17:19:35 +08:00
BR3025702: outbin -- Fix byte ordering
In commit 55ae12052c
we occasionally broke byte ordering. Fix it.
Note that current stable version 2.08.01 is not affected by this bug.
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
This commit is contained in:
parent
0d55110313
commit
2b416c9def
@ -546,7 +546,7 @@ static void bin_cleanup(int debuginfo)
|
||||
p = q = mydata;
|
||||
l = 0;
|
||||
for (b = 0; b < r->bytes; b++)
|
||||
l = (l << 8) + *p++;
|
||||
l += p[b] << (b * 8);
|
||||
|
||||
s = find_section_by_index(r->secref);
|
||||
if (s) {
|
||||
|
Loading…
Reference in New Issue
Block a user