I just manually put the ELF header bytes using this hex editorheh, youve actually done something ive been struggling with!
how did you get the rom into an elf?
ive tried plaaying with objcopy to do that, but it tends to mark it as .data and then objdump doesnt want to disassembly
though, ive not tried ghidra on such an elf yet
ive just been loading the .bin raw into ghidra, but yeah that takes more care
http://www.chmaas.handshake.de/delphi/f ... m#download
and using this pdf
https://www.cs.cmu.edu/afs/cs/academic/ ... cs/elf.pdf
It needs a hint what the addressing is since it doesn't know the memory layout at all, so it's all in this "fictional" RAM. Elf lets it know virtual and source file offsets of things
So, hermanhermitage/dumpbootrom through the UART to another machine, then he has a dump2bin util that will pack the ASCII back into the hex file.
Statistics: Posted by MaximBondaruk — Sat Apr 27, 2024 7:36 am