sifive / elf2hex

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

objcopy verilog output #1

Open jim-wilson opened 6 years ago

jim-wilson commented 6 years ago

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

palmer-dabbelt commented 6 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.