> compile NEMU

ysyx_22040000 李心杨
Linux calcite 6.6.19 #1-NixOS SMP PREEMPT_DYNAMIC Fri Mar  1 12:35:11 UTC 2024 x86_64 GNU/Linux
 14:52:13  up   1:58,  2 users,  load average: 0.83, 0.58, 0.67
This commit is contained in:
tracer-ysyx 2024-03-20 14:52:13 +08:00 committed by xinyangli
parent d62e53e8ad
commit 1b44697a67

View file

@ -56,7 +56,8 @@ void init_elf(const char *path) {
f->len = sym[j].st_size;
f->name = func;
++func_table_len;
puts(func);
// puts(func);
printf("%s: 0x%x - 0x%x\n", f->name, f->start, f->start + f->len);
if(func_table_len >= func_table_size) {
Assert(func_table_size * 2 > func_table_size, "Function table exceed memory limit");
func_table_size *= 2;