]> git.eshelyaron.com Git - emacs.git/commitdiff
(ELF_BSS_SECTION_NAME): New macro (config.h may override).
authorRichard M. Stallman <rms@gnu.org>
Thu, 24 Feb 1994 05:40:30 +0000 (05:40 +0000)
committerRichard M. Stallman <rms@gnu.org>
Thu, 24 Feb 1994 05:40:30 +0000 (05:40 +0000)
(unexec): Use it.

src/unexelf.c

index eb885dd02ec02aa1fe32458e2fad7f0f4d2f85d2..32f39c7d2b66424cc64fb85cc5a4925401cb2bdb 100644 (file)
@@ -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)