summaryrefslogtreecommitdiff
path: root/src/unexelf.c
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2011-03-29 17:19:27 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2011-03-29 17:19:27 -0700
commitde6dbc14a72347f3f2a3b4f0bf3c39d6f69a425e (patch)
tree57a8a96bf132b6a33fb874437cac05308d378f75 /src/unexelf.c
parentf838ed7b0ac1f7715f49b1e5d7de9b75b4159b64 (diff)
downloademacs-de6dbc14a72347f3f2a3b4f0bf3c39d6f69a425e.tar.gz
* unexelf.c (unexec) [! (defined _SYSTYPE_SYSV || defined __sgi)]:
Remove unused local var.
Diffstat (limited to 'src/unexelf.c')
-rw-r--r--src/unexelf.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/unexelf.c b/src/unexelf.c
index b58c78501b8..8b45894f853 100644
--- a/src/unexelf.c
+++ b/src/unexelf.c
@@ -651,7 +651,9 @@ unexec (const char *new_name, const char *old_name)
int n, nn;
int old_bss_index, old_sbss_index, old_plt_index;
int old_data_index, new_data2_index;
+#if defined _SYSTYPE_SYSV || defined __sgi
int old_mdebug_index;
+#endif
struct stat stat_buf;
int old_file_size;
@@ -695,8 +697,10 @@ unexec (const char *new_name, const char *old_name)
/* Find the mdebug section, if any. */
+#if defined _SYSTYPE_SYSV || defined __sgi
old_mdebug_index = find_section (".mdebug", old_section_names,
old_name, old_file_h, old_section_h, 1);
+#endif
/* Find the old .bss section. Figure out parameters of the new
data2 and bss sections. */