Displaying 2 results from an estimated 2 matches for "bin2h".
Did you mean:
bin2c
2017 Jun 06
3
llvm-objcopy proposal
...> So, anyways, while this is _possible_ with objcopy, it'd sure be nice if
>> you never needed to use it for that...
>>
>
> The other approaches I've seen or can imagine are:
>
> - Assembler `.incbin` directive (could use it from an inline asm).
> - Use a "bin2h" type program which takes a binary and spits out a C file
> with a giant uint8_t[] literal in it, then include that in one of your
> normal .c files. In theory a C++11 raw string literal could bypass most of
> the parsing overhead of a big array literal, but the people that care about...
2017 Jun 02
2
llvm-objcopy proposal
On Fri, Jun 2, 2017 at 2:34 PM, Ed Maste via llvm-dev <
llvm-dev at lists.llvm.org> wrote:
> One additional use case for you: converting from a binary to an ELF object
> file
> ```
> objcopy -I binary -O elf64-x86-64 foo.bin foo.o
> ```
> This is sometimes used for embedding binary files for use by drivers and
> such.
>
Yea, unfortunately the command-line you