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

Function relocation_for_absolute_symbol

util/cbfstool/rmodule.c:145–156  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

143};
144
145static int relocation_for_absolute_symbol(struct rmod_context *ctx, Elf64_Rela *r)
146{
147 Elf64_Sym *s = &ctx->pelf.syms[ELF64_R_SYM(r->r_info)];
148
149 if (s->st_shndx == SHN_ABS) {
150 DEBUG("Omitting relocation for absolute symbol: %s\n",
151 &ctx->strtab[s->st_name]);
152 return 1;
153 }
154
155 return 0;
156}
157
158static int relocation_for_weak_extern_symbols(struct rmod_context *ctx, Elf64_Rela *r)
159{

Callers 1

for_each_relocFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected