diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/unexmips.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/unexmips.c b/src/unexmips.c index a88235a464e..598791098ea 100644 --- a/src/unexmips.c +++ b/src/unexmips.c | |||
| @@ -235,10 +235,10 @@ unexec (new_name, a_name, data_start, bss_start, entry_address) | |||
| 235 | bss_section->s_scnptr = scnptr; | 235 | bss_section->s_scnptr = scnptr; |
| 236 | } | 236 | } |
| 237 | 237 | ||
| 238 | WRITE (new, TEXT_START, hdr.aout.tsize, | 238 | WRITE (new, (char *)TEXT_START, hdr.aout.tsize, |
| 239 | "writing text section to %s", new_name); | ||
| 240 | WRITE (new, DATA_START, hdr.aout.dsize, | ||
| 241 | "writing text section to %s", new_name); | 239 | "writing text section to %s", new_name); |
| 240 | WRITE (new, (char *)DATA_START, hdr.aout.dsize, | ||
| 241 | "writing data section to %s", new_name); | ||
| 242 | 242 | ||
| 243 | SEEK (old, hdr.fhdr.f_symptr, "seeking to start of symbols in %s", a_name); | 243 | SEEK (old, hdr.fhdr.f_symptr, "seeking to start of symbols in %s", a_name); |
| 244 | errno = EEOF; | 244 | errno = EEOF; |