summaryrefslogtreecommitdiff
path: root/src/unexelf.c
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1994-02-24 05:40:30 +0000
committerRichard M. Stallman <rms@gnu.org>1994-02-24 05:40:30 +0000
commit0ef3b806745e372221226bd74d5a86d6eff49cd5 (patch)
tree531247cde36a362847f4ed68bd8add4f82f8d50d /src/unexelf.c
parent4412b29d6e27cf09313de14bbb61075a6c4c1df6 (diff)
downloademacs-0ef3b806745e372221226bd74d5a86d6eff49cd5.tar.gz
(ELF_BSS_SECTION_NAME): New macro (config.h may override).
(unexec): Use it.
Diffstat (limited to 'src/unexelf.c')
-rw-r--r--src/unexelf.c6
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
extern void fatal (char *, ...);
#endif
+#ifndef ELF_BSS_SECTION_NAME
+#define ELF_BSS_SECTION_NAME ".bss"
+#endif
+
/* Get the address of a particular section or program header entry,
* accounting for the size of the entries.
*/
@@ -535,7 +539,7 @@ unexec (new_name, old_name, data_start, bss_start, entry_address)
old_section_names + OLD_SECTION_H (old_bss_index).sh_name);
#endif
if (!strcmp (old_section_names + OLD_SECTION_H (old_bss_index).sh_name,
- ".bss"))
+ ELF_BSS_SECTION_NAME))
break;
}
if (old_bss_index == old_file_h->e_shnum)