# HG changeset patch # User Andreas Schwab # Date 1260217660 0 # Node ID d34942d911b56c3d10aa14c9978282a347612ece # Parent 806e9f7990d8f5833620cdc8b8d52fd6c2bd8754 (unexec): Don't search for .data twice. diff -r 806e9f7990d8 -r d34942d911b5 src/ChangeLog --- 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 + + * unexelf.c (unexec): Don't search for .data twice. + 2009-12-05 Chong Yidong * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0 diff -r 806e9f7990d8 -r d34942d911b5 src/unexelf.c --- 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. */