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

Function convert_elf

util/cbfstool/amdcompress.c:111–126  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

109}
110
111static int convert_elf(struct buffer *buf)
112{
113 struct buffer out;
114
115 if (parse_elf_to_xip_ram(buf, &out)) {
116 printf("\tError parsing ELF file\n");
117 return -1;
118 }
119
120 /* Discard the elf file in buf and replace with the progbits */
121 free(buf->data);
122 buf->data = out.data;
123 buf->size = out.size;
124
125 return 0;
126}
127
128static int iself(const void *input)
129{

Callers 1

do_processFunction · 0.85

Calls 3

parse_elf_to_xip_ramFunction · 0.85
printfFunction · 0.85
freeFunction · 0.50

Tested by

no test coverage detected