MCPcopy Create free account
hub / github.com/coreboot/coreboot / relocation_for_undefined_symbol

Function relocation_for_undefined_symbol

util/cbfstool/rmodule.c:171–182  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

169}
170
171static int relocation_for_undefined_symbol(struct rmod_context *ctx, Elf64_Rela *r)
172{
173 Elf64_Sym *s = &ctx->pelf.syms[ELF64_R_SYM(r->r_info)];
174
175 if (s->st_shndx == SHN_UNDEF) {
176 DEBUG("Omitting relocation for undefined symbol: %s\n",
177 &ctx->strtab[s->st_name]);
178 return 1;
179 }
180
181 return 0;
182}
183
184/*
185 * Relocation processing loops.

Callers 1

for_each_relocFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected