Closed taoyidong closed 4 years ago
Because or1k-elf-gcc(version 5.3.0) will generate the elf section header table like this:
use command or1k-elf-readelf -S
[27] .symtab SYMTAB 00000000 a4ef3c 059860 10 28 11873 4 [28] .strtab STRTAB 00000000 aa879c 061e86 00 0 0 1 [29] .shstrtab STRTAB 00000000 b0a622 000125 00 0 0 1
The last line section head sh_type is STRTAB but not .strtab, the or1ksim will find the wrong .strtab used for .symtab
Thanks
Because or1k-elf-gcc(version 5.3.0) will generate the elf section header table like this:
use command or1k-elf-readelf -S
[27] .symtab SYMTAB 00000000 a4ef3c 059860 10 28 11873 4 [28] .strtab STRTAB 00000000 aa879c 061e86 00 0 0 1 [29] .shstrtab STRTAB 00000000 b0a622 000125 00 0 0 1
The last line section head sh_type is STRTAB but not .strtab, the or1ksim will find the wrong .strtab used for .symtab