Home
last modified time | relevance | path

Searched refs:elf (Results 1 – 25 of 61) sorted by relevance

123

/ohos5.0/base/hiviewdfx/faultloggerd/test/unittest/unwind/
H A Delf_test.cpp55 DfxElf elf(ELF32_FILE);
56 ASSERT_TRUE(elf.IsValid());
74 auto load = elf.GetPtLoads();
89 EXPECT_GT(elf.GetMmapSize(), 0);
101 DfxElf elf(ELF64_FILE);
102 ASSERT_TRUE(elf.IsValid());
120 auto load = elf.GetPtLoads();
146 DfxElf elf(""); variable
147 ASSERT_FALSE(elf.IsValid());
170 ASSERT_TRUE(elf.IsValid());
[all …]
H A Dsymbols_test.cpp52 std::shared_ptr<DfxElf> elf = make_shared<DfxElf>(ELF32_FILE); variable
53 ASSERT_TRUE(elf->IsValid());
58 DfxSymbols::ParseSymbols(symbols, elf, ELF32_FILE);
69 DfxSymbols::AddSymbolsByPlt(symbols, elf, ELF32_FILE);
93 std::shared_ptr<DfxElf> elf = make_shared<DfxElf>(ELF64_FILE); variable
94 ASSERT_TRUE(elf->IsValid());
99 DfxSymbols::ParseSymbols(symbols, elf, ELF64_FILE);
110 DfxSymbols::AddSymbolsByPlt(symbols, elf, ELF64_FILE);
139 ASSERT_TRUE(elf->IsValid());
140 ASSERT_TRUE(elf->IsEmbeddedElfValid());
[all …]
H A Dxz_util_test.cpp51 DfxElf elf(DUMPCATCHER_ELF_FILE);
52 ASSERT_TRUE(elf.IsValid());
53 auto minidebugInfo = elf.GetMiniDebugInfo();
55 uint8_t *addr = minidebugInfo->offset + const_cast<uint8_t*>(elf.GetMmapPtr());
/ohos5.0/base/hiviewdfx/faultloggerd/interfaces/innerkits/unwinder/
H A Ddfx_symbols.cpp73 bool DfxSymbols::ParseSymbols(std::vector<DfxSymbol>& symbols, std::shared_ptr<DfxElf> elf, const s… in ParseSymbols() argument
75 if (elf == nullptr) { in ParseSymbols()
78 auto elfSymbols = elf->GetFuncSymbols(); in ParseSymbols()
80 if (elf->GetBaseOffset() != 0) { in ParseSymbols()
81 symbolsPath += ("!" + elf->GetElfName()); in ParseSymbols()
90 bool DfxSymbols::AddSymbolsByPlt(std::vector<DfxSymbol>& symbols, std::shared_ptr<DfxElf> elf, in AddSymbolsByPlt() argument
93 if (elf == nullptr) { in AddSymbolsByPlt()
97 elf->GetSectionInfo(shdr, PLT); in AddSymbolsByPlt()
102 bool DfxSymbols::GetFuncNameAndOffsetByPc(uint64_t relPc, std::shared_ptr<DfxElf> elf, in GetFuncNameAndOffsetByPc() argument
109 if ((elf != nullptr) && elf->GetFuncInfo(relPc, elfSymbol)) { in GetFuncNameAndOffsetByPc()
H A Ddfx_accessors.cpp140 auto elf = ctx->map->GetElf(getpid()); in FindUnwindTable() local
141 if (elf == nullptr) { in FindUnwindTable()
145 ret = elf->FindUnwindTableInfo(pc, ctx->map, uti); in FindUnwindTable()
176 if (ctx->map != nullptr && ctx->map->elf != nullptr) { in AccessMem()
178 if (ctx->map->elf->Read(pos, val, sizeof(uintptr_t))) { in AccessMem()
241 auto elf = ctx->map->GetElf(ctx->pid); in FindUnwindTable() local
242 if (elf == nullptr) { in FindUnwindTable()
246 int ret = elf->FindUnwindTableInfo(pc, ctx->map, uti); in FindUnwindTable()
H A Ddfx_map.cpp343 if (elf == nullptr) { in GetElf()
350 elf = DfxElf::CreateFromHap(name, prevMap, offset); in GetElf()
360 elf = std::make_shared<DfxElf>(shmmData->data(), byte); in GetElf()
363 elf = DfxElf::Create(name); in GetElf()
366 return elf; in GetElf()
376 soName.append("!" + elf->GetElfName()); in GetElfName()
H A Ddfx_elf.cpp58 auto elf = std::make_shared<DfxElf>(path); in Create() local
59 if (elf->IsValid()) { in Create()
60 return elf; in Create()
108 auto elf = std::make_shared<DfxElf>(fd, elfSize, prevMap->offset); in CreateFromHap() local
109 if (elf->IsValid()) { in CreateFromHap()
111 elf->SetBaseOffset(prevMap->offset); in CreateFromHap()
112 return elf; in CreateFromHap()
852 auto elf = Create(file); in FindSection() local
853 if (elf == nullptr) { in FindSection()
857 return elf->GetSectionInfo(shdr, secName); in FindSection()
/ohos5.0/base/hiviewdfx/faultloggerd/test/benchmarktest/unwinder/
H A Delf_benchmark.cpp60 auto elf = buildIdMap->GetElf(); in BenchmarkElfGetBuildIdFromObj() local
61 if (!elf->IsValid()) { in BenchmarkElfGetBuildIdFromObj()
67 elf->SetBuildId(""); in BenchmarkElfGetBuildIdFromObj()
69 benchmark::DoNotOptimize(elf->GetBuildId()); in BenchmarkElfGetBuildIdFromObj()
/ohos5.0/docs/zh-cn/application-dev/napi/
H A Dohos-abi.md28 …ystem V Application Binary Interface](https://refspecs.linuxfoundation.org/elf/gabi4+/contents.htm…
30 - arm相关的elf文件格式定义请参考《[arm架构elf文件格式](https://github.com/ARM-software/abi-aa/tree/main/aaelf32)》。
32 - arm64相关elf文件格式定义请参考《[arm64架构elf文件格式](https://github.com/ARM-software/abi-aa/tree/main/aaelf64)》。
/ohos5.0/base/hiviewdfx/faultloggerd/interfaces/innerkits/unwinder/include/
H A Ddfx_symbols.h33 std::shared_ptr<DfxElf> elf, const std::string& filePath);
35 std::shared_ptr<DfxElf> elf, const std::string& filePath);
37 static bool GetFuncNameAndOffsetByPc(uint64_t relPc, std::shared_ptr<DfxElf> elf,
H A Ddfx_instr_statistic.h24 #define INSTR_STATISTIC_ELF(elf) \ argument
25 OHOS::HiviewDFX::DfxInstrStatistic::GetInstance().SetCurrentStatLib(elf)
29 #define INSTR_STATISTIC_ELF(elf) argument
/ohos5.0/docs/zh-cn/device-dev/porting/
H A Dporting-minichip-kernel.md58 executable("OHOS_Image.elf") { # 生成可执行程序
91 command = "$objcopy -O binary OHOS_Image.elf OHOS_Image.bin"
92 command += " && sh -c '$objdump -t OHOS_Image.elf | sort > OHOS_Image.sym.sorted'"
93 command += " && sh -c '$objdump -d OHOS_Image.elf > OHOS_Image.asm'"
96 ":OHOS_Image.elf", # 依赖elf文件的生成
/ohos5.0/docs/zh-cn/device-dev/faqs/
H A Dfaqs-building.md56 ### 提示“riscv32-unknown-elf-gcc: error trying to exec 'cc1': execvp: No such file or directory”
60 编译失败,提示“riscv32-unknown-elf-gcc: error trying to exec 'cc1': execvp: No such file or directory”。
71 which riscv32-unknown-elf-gcc
157 riscv32-unknown-elf-ld: cannot find -lgcc
/ohos5.0/base/hiviewdfx/hicollie/frameworks/native/thread_sampler/
H A Dthread_sampler.cpp75 auto elf = map->GetElf(getpid()); in FindUnwindTable() local
76 if (elf != nullptr) { in FindUnwindTable()
77 return elf->FindUnwindTableInfo(pc, map, outTableInfo); in FindUnwindTable()
237 auto elf = map->GetElf(getpid()); in AccessElfMem() local
238 if (elf != nullptr) { in AccessElfMem()
239 uint64_t foff = addr - map->begin + map->offset - elf->GetBaseOffset(); in AccessElfMem()
240 if (elf->Read(foff, val, sizeof(uintptr_t))) { in AccessElfMem()
/ohos5.0/docs/zh-cn/device-dev/subsystems/
H A Dsubsys-build-FAQ.md37 ### 提示“riscv32-unknown-elf-gcc: error trying to exec 'cc1': execvp: No such file or directory”
39 - **现象描述:** 编译失败,提示“riscv32-unknown-elf-gcc: error trying to exec 'cc1': execvp: No such file or di…
46 which riscv32-unknown-elf-gcc
/ohos5.0/base/hiviewdfx/faultloggerd/tools/process_dump/
H A Ddfx_fault_stack.cpp299 auto elf = DfxElf::Create(frame.mapName); in ParseUnwindStack() local
300 if (elf == nullptr || !elf->IsValid()) { in ParseUnwindStack()
304 loadBias = elf->GetLoadBias(); in ParseUnwindStack()
305 frame.buildId = elf->GetBuildId(); in ParseUnwindStack()
/ohos5.0/docs/zh-cn/application-dev/security/
H A Dhapsigntool-guidelines.md211 … ├── -inForm # 输入的原始文件的格式,枚举值:zip、elf或bin;zip应用包对应zip,二进制工具对应elf,bin应用包为bin,默认zip;可选项
212 ├── -inFile # 输入的原始文件,应用包、elf或bin文件,必填项
217 ├── -signCode # 是否启用代码签名,1表示开启代码签名,0表示关闭代码签名。可选项。默认对hap、hsp、hqf、elf开启代码签名,通过参数配置为0关闭。
225 ├── -inFile # 已签名的文件,应用包、elf或bin文件,必填项
228 … ├── -inForm # 输入的原始文件的格式,枚举值:zip、elf或bin;zip应用包对应zip,二进制工具对应elf,bin应用包为bin,默认zip;可选项
/ohos5.0/docs/en/device-dev/faqs/
H A Dfaqs-building.md56 ### "riscv32-unknown-elf-gcc: error trying to exec 'cc1': execvp: No such file or directory"
60 …The build fails, and the following information is displayed: <br>**riscv32-unknown-elf-gcc: error …
71 which riscv32-unknown-elf-gcc
160 riscv32-unknown-elf-ld: cannot find -lgcc
/ohos5.0/docs/zh-cn/device-dev/quick-start/
H A Dquickstart-pkg-3861-tool.md185 …-binutils-gdb/configure --prefix=/opt/gcc_riscv32 --target=riscv32-unknown-elf --with-arch=rv32imc…
191 …/riscv-newlib/configure --prefix=/opt/gcc_riscv32 --target=riscv32-unknown-elf --with-arch=rv32imc…
197elf --with-arch=rv32imc --with-abi=ilp32 --disable-__cxa_atexit --disable-libgomp --disable-libmud…
232 riscv32-unknown-elf-gcc -v
/ohos5.0/docs/zh-cn/application-dev/dfx/
H A Dhiperf.md107 | --enable-debuginfo-symbolic | -s fp/dwarf被设置时,elf在.gnu_debugdata段的符号会被解析,默认不解析。 |
189 | --elf | 输出elf文件。 |
/ohos5.0/docs/en/device-dev/kernel/
H A Dkernel-mini-extend-dynamic-loading.md70 ![](figures/process-of-loading-an-elf-file.png "process-of-loading-an-elf-file")
79 ![](figures/elf-file-linking-process.png "elf-file-linking-process")
/ohos5.0/docs/en/device-dev/subsystems/
H A Dsubsys-build-FAQ.md37 ### "riscv32-unknown-elf-gcc: error trying to exec 'cc1': execvp: No such file or directory"
39 - **Symptom**<br>The build fails, and "riscv32-unknown-elf-gcc: error trying to exec 'cc1': execvp:…
46 which riscv32-unknown-elf-gcc
/ohos5.0/docs/en/device-dev/quick-start/
H A Dquickstart-pkg-3861-tool.md185 …-binutils-gdb/configure --prefix=/opt/gcc_riscv32 --target=riscv32-unknown-elf --with-arch=rv32imc…
191 …/riscv-newlib/configure --prefix=/opt/gcc_riscv32 --target=riscv32-unknown-elf --with-arch=rv32imc…
197elf --with-arch=rv32imc --with-abi=ilp32 --disable-__cxa_atexit --disable-libgomp --disable-libmud…
232 riscv32-unknown-elf-gcc -v
/ohos5.0/docs/en/device-dev/porting/
H A Dporting-minichip-kernel.md58 executable("OHOS_Image.elf") { # Generate an executable program.
91 command = "$objcopy -O binary OHOS_Image.elf OHOS_Image.bin"
92 command += " && sh -c '$objdump -t OHOS_Image.elf | sort > OHOS_Image.sym.sorted'"
93 command += " && sh -c '$objdump -d OHOS_Image.elf > OHOS_Image.asm'"
96 ":OHOS_Image.elf", # ELF file dependency
/ohos5.0/docs/zh-cn/device-dev/kernel/
H A Dkernel-small-bundles-linking.md35 3. 程序执行时,虚拟内存区间若无具体的物理内存做映射,系统将触发缺页中断,将elf文件内容读入物理内存,并将该内存块加入pagecache。

123