Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
b9503078
Commit
b9503078
authored
Jul 04, 2010
by
Juanma Barranquero
Browse files
* unexelf.c (round_up, find_section): Use ElfW macro for arguments.
parent
dcc7404b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
+6
-3
src/ChangeLog
src/ChangeLog
+1
-0
src/unexelf.c
src/unexelf.c
+5
-3
No files found.
src/ChangeLog
View file @
b9503078
...
@@ -10,6 +10,7 @@
...
@@ -10,6 +10,7 @@
* regex.c (bcmp_translate): Use RE_TRANSLATE_TYPE, not Lisp_Object.
* regex.c (bcmp_translate): Use RE_TRANSLATE_TYPE, not Lisp_Object.
(analyse_first): Fix "const const".
(analyse_first): Fix "const const".
* sysdep.c (set_file_times): Use EMACS_TIME, not struct timeval.
* sysdep.c (set_file_times): Use EMACS_TIME, not struct timeval.
* unexelf.c (round_up, find_section): Use ElfW macro for arguments.
* xgselect.c (xg_select): Use SELECT_TYPE, EMACS_TIME.
* xgselect.c (xg_select): Use SELECT_TYPE, EMACS_TIME.
2010-07-04 Dan Nicolaescu <dann@ics.uci.edu>
2010-07-04 Dan Nicolaescu <dann@ics.uci.edu>
...
...
src/unexelf.c
View file @
b9503078
...
@@ -594,7 +594,7 @@ typedef unsigned char byte;
...
@@ -594,7 +594,7 @@ typedef unsigned char byte;
/* Round X up to a multiple of Y. */
/* Round X up to a multiple of Y. */
static
ElfW
(
Addr
)
static
ElfW
(
Addr
)
round_up
(
Elf
32_
Addr
x
,
Elf
32_
Addr
y
)
round_up
(
Elf
W
(
Addr
)
x
,
Elf
W
(
Addr
)
y
)
{
{
int
rem
=
x
%
y
;
int
rem
=
x
%
y
;
if
(
rem
==
0
)
if
(
rem
==
0
)
...
@@ -610,7 +610,8 @@ round_up (Elf32_Addr x, Elf32_Addr y)
...
@@ -610,7 +610,8 @@ round_up (Elf32_Addr x, Elf32_Addr y)
if NOERROR is 0; we return -1 if NOERROR is nonzero. */
if NOERROR is 0; we return -1 if NOERROR is nonzero. */
static
int
static
int
find_section
(
char
*
name
,
char
*
section_names
,
char
*
file_name
,
Elf32_Ehdr
*
old_file_h
,
Elf32_Shdr
*
old_section_h
,
int
noerror
)
find_section
(
char
*
name
,
char
*
section_names
,
char
*
file_name
,
ElfW
(
Ehdr
)
*
old_file_h
,
ElfW
(
Shdr
)
*
old_section_h
,
int
noerror
)
{
{
int
idx
;
int
idx
;
...
@@ -645,7 +646,8 @@ find_section (char *name, char *section_names, char *file_name, Elf32_Ehdr *old_
...
@@ -645,7 +646,8 @@ find_section (char *name, char *section_names, char *file_name, Elf32_Ehdr *old_
*
*
*/
*/
void
void
unexec
(
char
*
new_name
,
char
*
old_name
,
unsigned
int
data_start
,
unsigned
int
bss_start
,
unsigned
int
entry_address
)
unexec
(
char
*
new_name
,
char
*
old_name
,
unsigned
int
data_start
,
unsigned
int
bss_start
,
unsigned
int
entry_address
)
{
{
int
new_file
,
old_file
,
new_file_size
;
int
new_file
,
old_file
,
new_file_size
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment