diff options
| author | Richard M. Stallman | 1994-02-24 05:40:30 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1994-02-24 05:40:30 +0000 |
| commit | d8858cfe4afe3eddda36fc775bc6bda125a7215c (patch) | |
| tree | d499ffaccc8295b9bcac71b3dc83b0689fc39d9f /src | |
| parent | dcdffbf66a72f4eeda7ee995157fa09c32e19dff (diff) | |
| download | emacs-d8858cfe4afe3eddda36fc775bc6bda125a7215c.tar.gz emacs-d8858cfe4afe3eddda36fc775bc6bda125a7215c.zip | |
(ELF_BSS_SECTION_NAME): New macro (config.h may override).
(unexec): Use it.
Diffstat (limited to 'src')
| -rw-r--r-- | src/unexelf.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/unexelf.c b/src/unexelf.c index eb885dd02ec..32f39c7d2b6 100644 --- a/src/unexelf.c +++ b/src/unexelf.c | |||
| @@ -426,6 +426,10 @@ Filesz Memsz Flags Align | |||
| 426 | extern void fatal (char *, ...); | 426 | extern void fatal (char *, ...); |
| 427 | #endif | 427 | #endif |
| 428 | 428 | ||
| 429 | #ifndef ELF_BSS_SECTION_NAME | ||
| 430 | #define ELF_BSS_SECTION_NAME ".bss" | ||
| 431 | #endif | ||
| 432 | |||
| 429 | /* Get the address of a particular section or program header entry, | 433 | /* Get the address of a particular section or program header entry, |
| 430 | * accounting for the size of the entries. | 434 | * accounting for the size of the entries. |
| 431 | */ | 435 | */ |
| @@ -535,7 +539,7 @@ unexec (new_name, old_name, data_start, bss_start, entry_address) | |||
| 535 | old_section_names + OLD_SECTION_H (old_bss_index).sh_name); | 539 | old_section_names + OLD_SECTION_H (old_bss_index).sh_name); |
| 536 | #endif | 540 | #endif |
| 537 | if (!strcmp (old_section_names + OLD_SECTION_H (old_bss_index).sh_name, | 541 | if (!strcmp (old_section_names + OLD_SECTION_H (old_bss_index).sh_name, |
| 538 | ".bss")) | 542 | ELF_BSS_SECTION_NAME)) |
| 539 | break; | 543 | break; |
| 540 | } | 544 | } |
| 541 | if (old_bss_index == old_file_h->e_shnum) | 545 | if (old_bss_index == old_file_h->e_shnum) |