aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAndreas Schwab2009-12-07 20:27:40 +0000
committerAndreas Schwab2009-12-07 20:27:40 +0000
commit944a300c0f0fdc2db445d34e78f27c92ab10c9dc (patch)
tree483837b1ed0e7ae5148c4420df10bad911bf9e2a /src
parent51ef56c47fc0b02b20f44b673f8b60350c03b4e1 (diff)
downloademacs-944a300c0f0fdc2db445d34e78f27c92ab10c9dc.tar.gz
emacs-944a300c0f0fdc2db445d34e78f27c92ab10c9dc.zip
(unexec): Don't search for .data twice.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog4
-rw-r--r--src/unexelf.c7
2 files changed, 4 insertions, 7 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index aec5dc18286..11d8127057e 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,7 @@
12009-12-07 Andreas Schwab <schwab@linux-m68k.org>
2
3 * unexelf.c (unexec): Don't search for .data twice.
4
12009-12-05 Chong Yidong <cyd@stupidchicken.com> 52009-12-05 Chong Yidong <cyd@stupidchicken.com>
2 6
3 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0 7 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
diff --git a/src/unexelf.c b/src/unexelf.c
index 45de52dffda..a70ceeddd84 100644
--- a/src/unexelf.c
+++ b/src/unexelf.c
@@ -922,13 +922,6 @@ unexec (new_name, old_name, data_start, bss_start, entry_address)
922 gets its value adjusted. .bss size becomes zero and new address 922 gets its value adjusted. .bss size becomes zero and new address
923 is set. data2 section header gets added by copying the existing 923 is set. data2 section header gets added by copying the existing
924 .data header and modifying the offset, address and size. */ 924 .data header and modifying the offset, address and size. */
925 for (old_data_index = 1; old_data_index < (int) old_file_h->e_shnum;
926 old_data_index++)
927 if (!strcmp (old_section_names + OLD_SECTION_H (old_data_index).sh_name,
928 ".data"))
929 break;
930 if (old_data_index == old_file_h->e_shnum)
931 fatal ("Can't find .data in %s.\n", old_name, 0);
932 925
933 /* Walk through all section headers, insert the new data2 section right 926 /* Walk through all section headers, insert the new data2 section right
934 before the new bss section. */ 927 before the new bss section. */