optimization for elfloader

use a rel/rela section's sh_info to resolve which section this rel will be applied to, rather than the section's name
This commit is contained in:
daishengdong
2020-06-10 10:13:42 +08:00
parent 5e16690f7b
commit 842e8a0458
3 changed files with 37 additions and 52 deletions

View File

@@ -29,7 +29,7 @@
#include "tos_elfloader_relocate.h"
typedef struct el_section_st {
uint8_t shndx;
int8_t shndx;
void *address;
} el_section_t;