diff options
Diffstat (limited to 'src/unexelf.c')
| -rw-r--r-- | src/unexelf.c | 4 |
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. */ |