changeset 6052:cff556bf85e8

(ELF_BSS_SECTION_NAME): New macro (config.h may override). (unexec): Use it.
author Richard M. Stallman <rms@gnu.org>
date Thu, 24 Feb 1994 05:40:30 +0000
parents 0b144d967f30
children 19d123e039fa
files src/unexelf.c
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/unexelf.c	Thu Feb 24 05:34:16 1994 +0000
+++ b/src/unexelf.c	Thu Feb 24 05:40:30 1994 +0000
@@ -426,6 +426,10 @@
 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 @@
 	       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)