Commit dad0ad1f authored by yonghong-song's avatar yonghong-song Committed by GitHub

Merge pull request #1729 from sandip4n/sandip4n_dev

Fix bpf_trace_printk() for big-endian targets
parents bd8f0865 2af81df0
...@@ -615,7 +615,6 @@ int BPFModule::finalize() { ...@@ -615,7 +615,6 @@ int BPFModule::finalize() {
std::map<std::string, std::tuple<uint8_t *, uintptr_t>> tmp_sections, std::map<std::string, std::tuple<uint8_t *, uintptr_t>> tmp_sections,
*sections_p; *sections_p;
mod->setDataLayout("e-m:e-p:64:64-i64:64-n32:64-S128");
mod->setTargetTriple("bpf-pc-linux"); mod->setTargetTriple("bpf-pc-linux");
sections_p = rw_engine_enabled_ ? &sections_ : &tmp_sections; sections_p = rw_engine_enabled_ ? &sections_ : &tmp_sections;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment