This is the mail archive of the binutils@sources.redhat.com 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: Wrong return value?


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


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