> compile NEMU

221220000 张三
Linux zzy 5.15.146.1-microsoft-standard-WSL2 #1 SMP Thu Jan 11 04:09:03 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
 23:54:31 up 5 days, 12:02,  3 users,  load average: 0.56, 0.67, 0.58
This commit is contained in:
tracer-ics2023
2024-09-10 23:54:31 +08:00
committed by zzy
parent 7cc9046f1f
commit 9ac9153d07

View File

@ -100,7 +100,7 @@ void init_elf(const char* elf_file) {
// filling ftrace
assert(pstrt != NULL && pstrt != NULL);
for (int i = 0; i < symt_len; i ++) {
Log("---LOG: %3d: %08x %5d %x", i, psymt[i].st_value, psymt[i].st_size, psymt[i].st_name);
Log("---LOG: %3d: %08x %5u %x", i, psymt[i].st_value, psymt[i].st_size, psymt[i].st_name);
if (ELF_ST_TYPE(psymt[i].st_info) == STT_FUNC) {
// Warning due to elf_ftrace is global variable so you don't need to set '\0' in the end
// strncpy(elf_ftrace[elf_ftrace_size].fname, pstrt + psymt[i].st_name,