Wrong return value?

Nick Clifton nickc@redhat.com
Tue Jul 5 10:10:00 GMT 2005
Hi Øyvind,

> Hi, when objcopy in the 2.16 version of binutils tries to write a
> section to a file without the write permissions set, zero is set as the
> return code although it prints an error message "Permission denied".
> Earlier versions of objcopy disregarded the missing write permission bit
> and added the section to the header anyway.

Please try either the updated 2.16.1 sources of the binutils sources in 
the mainline of the CVS repository - you will find that the problem has 
been fixed in these places.  Binutils will now report "Permission 
denied" and return a value of 1.

Cheers
   Nick



More information about the Binutils mailing list