sifive / elf2hex

Converts ELF files to HEX files that are suitable for Verilog's readmemh.
82 stars 21 forks source link

objcopy verilog output #1

Open jim-wilson opened 5 years ago

jim-wilson commented 5 years ago

objcopy can produce verilog output directly from ELF files with "objcopy -O verilog inputfile outputfile".

palmer-dabbelt commented 5 years ago

It's not quite the same sort of output, though:

IIRC I actually own the bug to fix these on sourceware.org :)

amnesia13 commented 3 years ago

On my side I fixed the issue by generating an intelhex output from objcopy and then converting it to "readmemh" compatible file with a Python script.