aboutsummaryrefslogtreecommitdiffstats
path: root/exec/exec.c
diff options
context:
space:
mode:
Diffstat (limited to 'exec/exec.c')
-rw-r--r--exec/exec.c13
1 files changed, 5 insertions, 8 deletions
diff --git a/exec/exec.c b/exec/exec.c
index 7a8ef2c3a1a..b9c3e4ec92a 100644
--- a/exec/exec.c
+++ b/exec/exec.c
@@ -231,10 +231,10 @@ struct exec_jump_command
231 /* The value of AT_BASE inside the aux vector. */ 231 /* The value of AT_BASE inside the aux vector. */
232 USER_WORD at_base; 232 USER_WORD at_base;
233 233
234#if defined __mips__ && !defined MIPS_NABI 234#if defined __mips__
235 /* The FPU mode to apply. */ 235 /* The FPU mode to apply. Not used when !MIPS_NABI. */
236 USER_WORD fpu_mode; 236 USER_WORD fpu_mode;
237#endif /* defined __mips__ && !defined MIPS_NABI */ 237#endif /* defined __mips__ */
238}; 238};
239 239
240 240
@@ -916,9 +916,7 @@ exec_0 (char *name, struct exec_tracee *tracee,
916 program_header program; 916 program_header program;
917 USER_WORD entry, program_entry, offset; 917 USER_WORD entry, program_entry, offset;
918 USER_WORD header_offset; 918 USER_WORD header_offset;
919#ifndef __mips__
920 USER_WORD name_len, aligned_len; 919 USER_WORD name_len, aligned_len;
921#endif /* !__mips__ */
922 struct exec_jump_command jump; 920 struct exec_jump_command jump;
923#if defined __mips__ && !defined MIPS_NABI 921#if defined __mips__ && !defined MIPS_NABI
924 int fpu_mode; 922 int fpu_mode;
@@ -1132,6 +1130,8 @@ exec_0 (char *name, struct exec_tracee *tracee,
1132 fpu_mode = FP_FRE; 1130 fpu_mode = FP_FRE;
1133 1131
1134 jump.fpu_mode = fpu_mode; 1132 jump.fpu_mode = fpu_mode;
1133#elif defined __mips__
1134 jump.fpu_mode = 0;
1135#endif /* defined __mips__ && !defined MIPS_NABI */ 1135#endif /* defined __mips__ && !defined MIPS_NABI */
1136 1136
1137 /* The offset used for at_phdr should be that of the first 1137 /* The offset used for at_phdr should be that of the first
@@ -1149,8 +1149,6 @@ exec_0 (char *name, struct exec_tracee *tracee,
1149 sizeof jump); 1149 sizeof jump);
1150 loader_area_used += sizeof jump; 1150 loader_area_used += sizeof jump;
1151 1151
1152 /* TODO: MIPS support. */
1153#ifndef __mips__
1154 /* Copy the length of NAME and NAME itself to the loader area. */ 1152 /* Copy the length of NAME and NAME itself to the loader area. */
1155 name_len = strlen (name); 1153 name_len = strlen (name);
1156 aligned_len = ((name_len + 1 + sizeof name_len - 1) 1154 aligned_len = ((name_len + 1 + sizeof name_len - 1)
@@ -1167,7 +1165,6 @@ exec_0 (char *name, struct exec_tracee *tracee,
1167 offset = aligned_len - (name_len + 1); 1165 offset = aligned_len - (name_len + 1);
1168 while (offset--) 1166 while (offset--)
1169 loader_area[loader_area_used++] = '\0'; 1167 loader_area[loader_area_used++] = '\0';
1170#endif /* !__mips__ */
1171 1168
1172 /* Close the file descriptor and return the number of bytes 1169 /* Close the file descriptor and return the number of bytes
1173 used. */ 1170 used. */