diff options
| author | Juanma Barranquero | 2010-07-04 18:07:11 +0200 |
|---|---|---|
| committer | Juanma Barranquero | 2010-07-04 18:07:11 +0200 |
| commit | b9503078536af127ced1d0e52ed09224cb575ab6 (patch) | |
| tree | 2a4a906cc5fc88922d2488790fd50500e989a87f /src | |
| parent | dcc7404b4e06e555f110948bd509d34bf1889633 (diff) | |
| download | emacs-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/ChangeLog | 1 | ||||
| -rw-r--r-- | src/unexelf.c | 8 |
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 | ||
| 15 | 2010-07-04 Dan Nicolaescu <dann@ics.uci.edu> | 16 | 2010-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 | ||
| 596 | static ElfW(Addr) | 596 | static ElfW(Addr) |
| 597 | round_up (Elf32_Addr x, Elf32_Addr y) | 597 | round_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 | ||
| 612 | static int | 612 | static int |
| 613 | find_section (char *name, char *section_names, char *file_name, Elf32_Ehdr *old_file_h, Elf32_Shdr *old_section_h, int noerror) | 613 | find_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 | */ |
| 647 | void | 648 | void |
| 648 | unexec (char *new_name, char *old_name, unsigned int data_start, unsigned int bss_start, unsigned int entry_address) | 649 | unexec (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 | ||