changeset 106483:d34942d911b5

(unexec): Don't search for .data twice.
author Andreas Schwab <schwab@linux-m68k.org>
date Mon, 07 Dec 2009 20:27:40 +0000
parents 806e9f7990d8
children fbf8c0853c94
files src/ChangeLog src/unexelf.c
diffstat 2 files changed, 4 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/src/ChangeLog	Mon Dec 07 20:06:26 2009 +0000
+++ b/src/ChangeLog	Mon Dec 07 20:27:40 2009 +0000
@@ -1,3 +1,7 @@
+2009-12-07  Andreas Schwab  <schwab@linux-m68k.org>
+
+	* unexelf.c (unexec): Don't search for .data twice.
+
 2009-12-05  Chong Yidong  <cyd@stupidchicken.com>
 
 	* xdisp.c (push_display_prop): Don't set avoid_cursor_p.  Return 0
--- a/src/unexelf.c	Mon Dec 07 20:06:26 2009 +0000
+++ b/src/unexelf.c	Mon Dec 07 20:27:40 2009 +0000
@@ -922,13 +922,6 @@
      gets its value adjusted.  .bss size becomes zero and new address
      is set.  data2 section header gets added by copying the existing
      .data header and modifying the offset, address and size.  */
-  for (old_data_index = 1; old_data_index < (int) old_file_h->e_shnum;
-       old_data_index++)
-    if (!strcmp (old_section_names + OLD_SECTION_H (old_data_index).sh_name,
-		 ".data"))
-      break;
-  if (old_data_index == old_file_h->e_shnum)
-    fatal ("Can't find .data in %s.\n", old_name, 0);
 
   /* Walk through all section headers, insert the new data2 section right
      before the new bss section. */