aboutsummaryrefslogtreecommitdiffstats
path: root/src/unexmips.c
diff options
context:
space:
mode:
authorJim Blandy <[email protected]>1992-03-05 17:01:01 +0000
committerJim Blandy <[email protected]>1992-03-05 17:01:01 +0000
commitc7663c14bda6ebf4938ae8c770318a112206073f (patch)
tree33926f425389a10ecf4e2a658040461b3a782f2a /src/unexmips.c
parenta6ffc6a2458dfd86fbc999e41bdfb04e9fcca79c (diff)
entered into RCS
Diffstat (limited to 'src/unexmips.c')
-rw-r--r--src/unexmips.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/unexmips.c b/src/unexmips.c
index 8cfdd401b4..7f4d75de25 100644
--- a/src/unexmips.c
+++ b/src/unexmips.c
@@ -184,7 +184,7 @@ unexec (new_name, a_name, data_start, bss_start, entry_address)
rdata_section->s_size = data_start - DATA_START;
data_section->s_vaddr = data_start;
data_section->s_paddr = data_start;
- data_section->s_size = brk - DATA_START;
+ data_section->s_size = brk - data_start;
data_section->s_scnptr = rdata_section->s_scnptr + rdata_section->s_size;
vaddr = data_section->s_vaddr + data_section->s_size;
scnptr = data_section->s_scnptr + data_section->s_size;