Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
b61b7ee4
Commit
b61b7ee4
authored
Jul 15, 2004
by
Alexander Viro
Committed by
Linus Torvalds
Jul 15, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] more annotations in binfmt_aout.c
parent
8da81535
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
fs/binfmt_aout.c
fs/binfmt_aout.c
+5
-3
No files found.
fs/binfmt_aout.c
View file @
b61b7ee4
...
@@ -348,7 +348,8 @@ static int load_aout_binary(struct linux_binprm * bprm, struct pt_regs * regs)
...
@@ -348,7 +348,8 @@ static int load_aout_binary(struct linux_binprm * bprm, struct pt_regs * regs)
return
error
;
return
error
;
}
}
error
=
bprm
->
file
->
f_op
->
read
(
bprm
->
file
,
(
char
*
)
text_addr
,
error
=
bprm
->
file
->
f_op
->
read
(
bprm
->
file
,
(
char
__user
*
)
text_addr
,
ex
.
a_text
+
ex
.
a_data
,
&
pos
);
ex
.
a_text
+
ex
.
a_data
,
&
pos
);
if
((
signed
long
)
error
<
0
)
{
if
((
signed
long
)
error
<
0
)
{
send_sig
(
SIGKILL
,
current
,
0
);
send_sig
(
SIGKILL
,
current
,
0
);
...
@@ -377,7 +378,8 @@ static int load_aout_binary(struct linux_binprm * bprm, struct pt_regs * regs)
...
@@ -377,7 +378,8 @@ static int load_aout_binary(struct linux_binprm * bprm, struct pt_regs * regs)
if
(
!
bprm
->
file
->
f_op
->
mmap
||
((
fd_offset
&
~
PAGE_MASK
)
!=
0
))
{
if
(
!
bprm
->
file
->
f_op
->
mmap
||
((
fd_offset
&
~
PAGE_MASK
)
!=
0
))
{
loff_t
pos
=
fd_offset
;
loff_t
pos
=
fd_offset
;
do_brk
(
N_TXTADDR
(
ex
),
ex
.
a_text
+
ex
.
a_data
);
do_brk
(
N_TXTADDR
(
ex
),
ex
.
a_text
+
ex
.
a_data
);
bprm
->
file
->
f_op
->
read
(
bprm
->
file
,(
char
*
)
N_TXTADDR
(
ex
),
bprm
->
file
->
f_op
->
read
(
bprm
->
file
,
(
char
__user
*
)
N_TXTADDR
(
ex
),
ex
.
a_text
+
ex
.
a_data
,
&
pos
);
ex
.
a_text
+
ex
.
a_data
,
&
pos
);
flush_icache_range
((
unsigned
long
)
N_TXTADDR
(
ex
),
flush_icache_range
((
unsigned
long
)
N_TXTADDR
(
ex
),
(
unsigned
long
)
N_TXTADDR
(
ex
)
+
(
unsigned
long
)
N_TXTADDR
(
ex
)
+
...
@@ -479,7 +481,7 @@ static int load_aout_library(struct file *file)
...
@@ -479,7 +481,7 @@ static int load_aout_library(struct file *file)
do_brk
(
start_addr
,
ex
.
a_text
+
ex
.
a_data
+
ex
.
a_bss
);
do_brk
(
start_addr
,
ex
.
a_text
+
ex
.
a_data
+
ex
.
a_bss
);
file
->
f_op
->
read
(
file
,
(
char
*
)
start_addr
,
file
->
f_op
->
read
(
file
,
(
char
__user
*
)
start_addr
,
ex
.
a_text
+
ex
.
a_data
,
&
pos
);
ex
.
a_text
+
ex
.
a_data
,
&
pos
);
flush_icache_range
((
unsigned
long
)
start_addr
,
flush_icache_range
((
unsigned
long
)
start_addr
,
(
unsigned
long
)
start_addr
+
ex
.
a_text
+
ex
.
a_data
);
(
unsigned
long
)
start_addr
+
ex
.
a_text
+
ex
.
a_data
);
...
...
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