Lines Matching refs:base
509 struct section *base,
823 sec->base = find_section_by_index(elf, sec->sh.sh_info);
824 if (!sec->base) {
825 WARN("can't find base section for reloc section %s",
830 sec->base->reloc = sec;
1061 static struct section *elf_create_rel_reloc_section(struct elf *elf, struct section *base)
1066 relocname = malloc(strlen(base->name) + strlen(".rel") + 1);
1072 strcat(relocname, base->name);
1079 base->reloc = sec;
1080 sec->base = base;
1085 sec->sh.sh_info = base->idx;
1091 static struct section *elf_create_rela_reloc_section(struct elf *elf, struct section *base)
1096 relocname = malloc(strlen(base->name) + strlen(".rela") + 1);
1102 strcat(relocname, base->name);
1109 base->reloc = sec;
1110 sec->base = base;
1115 sec->sh.sh_info = base->idx;
1122 struct section *base,
1126 case SHT_REL: return elf_create_rel_reloc_section(elf, base);
1127 case SHT_RELA: return elf_create_rela_reloc_section(elf, base);
1262 if (sec->base &&