mirror of
https://github.com/netwide-assembler/nasm.git
synced 2025-02-17 17:19:35 +08:00
outbin: Simplify reverse address computing
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
This commit is contained in:
parent
2b416c9def
commit
faf23d1302
@ -545,8 +545,8 @@ static void bin_cleanup(int debuginfo)
|
||||
saa_fread(r->target->contents, r->posn, mydata, r->bytes);
|
||||
p = q = mydata;
|
||||
l = 0;
|
||||
for (b = 0; b < r->bytes; b++)
|
||||
l += p[b] << (b * 8);
|
||||
for (b = r->bytes - 1; b >= 0; b--)
|
||||
l = (l << 8) + p[b];
|
||||
|
||||
s = find_section_by_index(r->secref);
|
||||
if (s) {
|
||||
|
Loading…
Reference in New Issue
Block a user