This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: objcopy failure with /dev/null


Hi John,

objcopy -I binary -O binary --gap-fill 0xff --pad-to 0x200000 /dev/null
mtd0.erased

Is the idea to create a simple 0x200000 byte long file containing just the byte 0xff ?


I need to move the build to a slightly newer system, with objcopy
2.15.92. The command exits with status 1, doesn't produce an output
file, and issues another warning (objcopy: Warning: '/dev/null' is not
an ordinary file).

Any ideas on how I can fix/workaround this?


% echo -n -e "\0777" > fred
% objcopy -I binary -O binary --gap-fill 0xff --pad-to-0x200000 fred mtd0.erased


Cheers
  Nick


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]