Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
B
bcc
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
Kirill Smelkov
bcc
Commits
268fda28
Commit
268fda28
authored
Jul 30, 2015
by
Alexei Starovoitov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix incorrect DataLayout
Signed-off-by:
Alexei Starovoitov
<
ast@plumgrid.com
>
parent
b37f8a03
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/cc/bpf_module.cc
src/cc/bpf_module.cc
+2
-2
No files found.
src/cc/bpf_module.cc
View file @
268fda28
...
@@ -252,7 +252,7 @@ int BPFModule::load_cfile(const string &file, bool in_memory) {
...
@@ -252,7 +252,7 @@ int BPFModule::load_cfile(const string &file, bool in_memory) {
return
-
1
;
return
-
1
;
mod_
=
&*
mod
;
mod_
=
&*
mod
;
mod_
->
setDataLayout
(
"e-m:e-
i64:64-f80:128-n8:16:
32:64-S128"
);
mod_
->
setDataLayout
(
"e-m:e-
p:64:64-i64:64-n
32:64-S128"
);
mod_
->
setTargetTriple
(
"bpf-pc-linux"
);
mod_
->
setTargetTriple
(
"bpf-pc-linux"
);
for
(
auto
fn
=
mod_
->
getFunctionList
().
begin
();
fn
!=
mod_
->
getFunctionList
().
end
();
++
fn
)
for
(
auto
fn
=
mod_
->
getFunctionList
().
begin
();
fn
!=
mod_
->
getFunctionList
().
end
();
++
fn
)
...
@@ -283,7 +283,7 @@ int BPFModule::load_includes(const string &tmpfile) {
...
@@ -283,7 +283,7 @@ int BPFModule::load_includes(const string &tmpfile) {
return
-
1
;
return
-
1
;
mod_
=
&*
mod
;
mod_
=
&*
mod
;
mod_
->
setDataLayout
(
"e-m:e-
i64:64-f80:128-n8:16:
32:64-S128"
);
mod_
->
setDataLayout
(
"e-m:e-
p:64:64-i64:64-n
32:64-S128"
);
mod_
->
setTargetTriple
(
"bpf-pc-linux"
);
mod_
->
setTargetTriple
(
"bpf-pc-linux"
);
for
(
auto
fn
=
mod_
->
getFunctionList
().
begin
();
fn
!=
mod_
->
getFunctionList
().
end
();
++
fn
)
for
(
auto
fn
=
mod_
->
getFunctionList
().
begin
();
fn
!=
mod_
->
getFunctionList
().
end
();
++
fn
)
...
...
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