Im trying to objcopy two files together but its just not working...
I tried the following: objcopy -I bootloader.bin extendedprogram.bin -O bootloader.flp The result was: llvm-objcopy: error: 'extendedprogram.bin': The file was not recognized as a valid object file
Before i created kernel.bin and i successfully combined them but with extendedprogram.bin it is not working.
Here is the contents of extendedprogram.asm (source of .bin) (compiled with nasm): [org 0x7e00]
mov bx, ExtendedSpaceSuccess call PrintString
jmp $
%include "print.asm"
ExtendedSpaceSuccess: db 'We are successfully in extended space', 0
times 2048-($-$$) db 0 ~
cat
them together. Anyway, you are missing the argument for the-I
switch. How do you create thebin
files and what was the objcopy command that worked previously?-I
requires a format name (should give error message "Invalid bfd target")