aboutsummaryrefslogtreecommitdiffstats
path: root/src/unexelf.c
diff options
context:
space:
mode:
authorStefan Monnier2011-03-31 00:24:03 -0400
committerStefan Monnier2011-03-31 00:24:03 -0400
commit40d83b412f584cc02e68d4eac8fd5e6eb769e2fe (patch)
treeb56f27a7e6d75a8c1fd27b00179a27b5efea0a32 /src/unexelf.c
parentf488fb6528738131ef41859e1f04125f2e50efce (diff)
parent44f230aa043ebb222aa0876b44d70484d5dd38db (diff)
downloademacs-40d83b412f584cc02e68d4eac8fd5e6eb769e2fe.tar.gz
emacs-40d83b412f584cc02e68d4eac8fd5e6eb769e2fe.zip
Merge from trunk
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)
651 int n, nn; 651 int n, nn;
652 int old_bss_index, old_sbss_index, old_plt_index; 652 int old_bss_index, old_sbss_index, old_plt_index;
653 int old_data_index, new_data2_index; 653 int old_data_index, new_data2_index;
654#if defined _SYSTYPE_SYSV || defined __sgi
654 int old_mdebug_index; 655 int old_mdebug_index;
656#endif
655 struct stat stat_buf; 657 struct stat stat_buf;
656 int old_file_size; 658 int old_file_size;
657 659
@@ -695,8 +697,10 @@ unexec (const char *new_name, const char *old_name)
695 697
696 /* Find the mdebug section, if any. */ 698 /* Find the mdebug section, if any. */
697 699
700#if defined _SYSTYPE_SYSV || defined __sgi
698 old_mdebug_index = find_section (".mdebug", old_section_names, 701 old_mdebug_index = find_section (".mdebug", old_section_names,
699 old_name, old_file_h, old_section_h, 1); 702 old_name, old_file_h, old_section_h, 1);
703#endif
700 704
701 /* Find the old .bss section. Figure out parameters of the new 705 /* Find the old .bss section. Figure out parameters of the new
702 data2 and bss sections. */ 706 data2 and bss sections. */