aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJuanma Barranquero2010-07-04 18:07:11 +0200
committerJuanma Barranquero2010-07-04 18:07:11 +0200
commitb9503078536af127ced1d0e52ed09224cb575ab6 (patch)
tree2a4a906cc5fc88922d2488790fd50500e989a87f /src
parentdcc7404b4e06e555f110948bd509d34bf1889633 (diff)
downloademacs-b9503078536af127ced1d0e52ed09224cb575ab6.tar.gz
emacs-b9503078536af127ced1d0e52ed09224cb575ab6.zip
* unexelf.c (round_up, find_section): Use ElfW macro for arguments.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog1
-rw-r--r--src/unexelf.c8
2 files changed, 6 insertions, 3 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index fecd07da955..d4a411b1d5e 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -10,6 +10,7 @@
10 * regex.c (bcmp_translate): Use RE_TRANSLATE_TYPE, not Lisp_Object. 10 * regex.c (bcmp_translate): Use RE_TRANSLATE_TYPE, not Lisp_Object.
11 (analyse_first): Fix "const const". 11 (analyse_first): Fix "const const".
12 * sysdep.c (set_file_times): Use EMACS_TIME, not struct timeval. 12 * sysdep.c (set_file_times): Use EMACS_TIME, not struct timeval.
13 * unexelf.c (round_up, find_section): Use ElfW macro for arguments.
13 * xgselect.c (xg_select): Use SELECT_TYPE, EMACS_TIME. 14 * xgselect.c (xg_select): Use SELECT_TYPE, EMACS_TIME.
14 15
152010-07-04 Dan Nicolaescu <dann@ics.uci.edu> 162010-07-04 Dan Nicolaescu <dann@ics.uci.edu>
diff --git a/src/unexelf.c b/src/unexelf.c
index f654d9dc8c9..2ac6bbdc06e 100644
--- a/src/unexelf.c
+++ b/src/unexelf.c
@@ -594,7 +594,7 @@ typedef unsigned char byte;
594/* Round X up to a multiple of Y. */ 594/* Round X up to a multiple of Y. */
595 595
596static ElfW(Addr) 596static ElfW(Addr)
597round_up (Elf32_Addr x, Elf32_Addr y) 597round_up (ElfW(Addr) x, ElfW(Addr) y)
598{ 598{
599 int rem = x % y; 599 int rem = x % y;
600 if (rem == 0) 600 if (rem == 0)
@@ -610,7 +610,8 @@ round_up (Elf32_Addr x, Elf32_Addr y)
610 if NOERROR is 0; we return -1 if NOERROR is nonzero. */ 610 if NOERROR is 0; we return -1 if NOERROR is nonzero. */
611 611
612static int 612static int
613find_section (char *name, char *section_names, char *file_name, Elf32_Ehdr *old_file_h, Elf32_Shdr *old_section_h, int noerror) 613find_section (char *name, char *section_names, char *file_name,
614 ElfW(Ehdr) *old_file_h, ElfW(Shdr) *old_section_h, int noerror)
614{ 615{
615 int idx; 616 int idx;
616 617
@@ -645,7 +646,8 @@ find_section (char *name, char *section_names, char *file_name, Elf32_Ehdr *old_
645 * 646 *
646 */ 647 */
647void 648void
648unexec (char *new_name, char *old_name, unsigned int data_start, unsigned int bss_start, unsigned int entry_address) 649unexec (char *new_name, char *old_name, unsigned int data_start,
650 unsigned int bss_start, unsigned int entry_address)
649{ 651{
650 int new_file, old_file, new_file_size; 652 int new_file, old_file, new_file_size;
651 653