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
7946c2be
Commit
7946c2be
authored
Aug 01, 2016
by
Ingo Molnar
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'x86/asm' into x86/urgent, to pick up fix
Signed-off-by:
Ingo Molnar
<
mingo@kernel.org
>
parents
609c19a3
57f90c3d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
arch/x86/entry/vdso/vdso2c.h
arch/x86/entry/vdso/vdso2c.h
+6
-0
No files found.
arch/x86/entry/vdso/vdso2c.h
View file @
7946c2be
...
@@ -22,6 +22,9 @@ static void BITSFUNC(go)(void *raw_addr, size_t raw_len,
...
@@ -22,6 +22,9 @@ static void BITSFUNC(go)(void *raw_addr, size_t raw_len,
ELF
(
Phdr
)
*
pt
=
(
ELF
(
Phdr
)
*
)(
raw_addr
+
GET_LE
(
&
hdr
->
e_phoff
));
ELF
(
Phdr
)
*
pt
=
(
ELF
(
Phdr
)
*
)(
raw_addr
+
GET_LE
(
&
hdr
->
e_phoff
));
if
(
hdr
->
e_type
!=
ET_DYN
)
fail
(
"input is not a shared object
\n
"
);
/* Walk the segment table. */
/* Walk the segment table. */
for
(
i
=
0
;
i
<
GET_LE
(
&
hdr
->
e_phnum
);
i
++
)
{
for
(
i
=
0
;
i
<
GET_LE
(
&
hdr
->
e_phnum
);
i
++
)
{
if
(
GET_LE
(
&
pt
[
i
].
p_type
)
==
PT_LOAD
)
{
if
(
GET_LE
(
&
pt
[
i
].
p_type
)
==
PT_LOAD
)
{
...
@@ -49,6 +52,9 @@ static void BITSFUNC(go)(void *raw_addr, size_t raw_len,
...
@@ -49,6 +52,9 @@ static void BITSFUNC(go)(void *raw_addr, size_t raw_len,
if
(
stripped_len
<
load_size
)
if
(
stripped_len
<
load_size
)
fail
(
"stripped input is too short
\n
"
);
fail
(
"stripped input is too short
\n
"
);
if
(
!
dyn
)
fail
(
"input has no PT_DYNAMIC section -- your toolchain is buggy
\n
"
);
/* Walk the dynamic table */
/* Walk the dynamic table */
for
(
i
=
0
;
dyn
+
i
<
dyn_end
&&
for
(
i
=
0
;
dyn
+
i
<
dyn_end
&&
GET_LE
(
&
dyn
[
i
].
d_tag
)
!=
DT_NULL
;
i
++
)
{
GET_LE
(
&
dyn
[
i
].
d_tag
)
!=
DT_NULL
;
i
++
)
{
...
...
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