[Bug binutils/10321] New: objcopy silently exits with empty input files

View: New views
4 Messages — Rating Filter:   Alert me  

[Bug binutils/10321] New: objcopy silently exits with empty input files

by Bugzilla from sourceware-bugzilla@sourceware.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

seems to be a regression between 2.17 and 2.18

with binutils 2.17:
$ rm -f f
$ touch f
$ objcopy f
objcopy: error: the input file 'f' is empty

but with 2.18+ (including today's CVS HEAD), there is no output at all, just an
exit code of 1

--
           Summary: objcopy silently exits with empty input files
           Product: binutils
           Version: 2.18
            Status: NEW
          Severity: minor
          Priority: P2
         Component: binutils
        AssignedTo: unassigned at sources dot redhat dot com
        ReportedBy: vapier at gentoo dot org
                CC: bug-binutils at gnu dot org


http://sourceware.org/bugzilla/show_bug.cgi?id=10321

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


_______________________________________________
bug-binutils mailing list
bug-binutils@...
http://lists.gnu.org/mailman/listinfo/bug-binutils

[Bug binutils/10321] objcopy silently exits with empty input files

by Bugzilla from sourceware-bugzilla@sourceware.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


------- Additional Comments From hjl dot tools at gmail dot com  2009-06-27 16:59 -------
It is caused by PR 3001 fix.

--
           What    |Removed                     |Added
----------------------------------------------------------------------------
  BugsThisDependsOn|                            |3001


http://sourceware.org/bugzilla/show_bug.cgi?id=10321

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


_______________________________________________
bug-binutils mailing list
bug-binutils@...
http://lists.gnu.org/mailman/listinfo/bug-binutils

[Bug binutils/10321] objcopy silently exits with empty input files

by Bugzilla from sourceware-bugzilla@sourceware.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2009-06-27 17:19 -------
Subject: Bug 10321

CVSROOT: /cvs/src
Module name: src
Changes by: hjl@... 2009-06-27 17:19:02

Modified files:
        binutils       : ChangeLog bucomm.c objcopy.c

Log message:
        2009-06-27  H.J. Lu  <hongjiu.lu@...>
       
        PR binutils/10321
        * bucomm.c (get_file_size): Return -1 on error.
       
        * objcopy.c (copy_file): Report empty file.

Patches:
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/binutils/ChangeLog.diff?cvsroot=src&r1=1.1489&r2=1.1490
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/binutils/bucomm.c.diff?cvsroot=src&r1=1.34&r2=1.35
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/binutils/objcopy.c.diff?cvsroot=src&r1=1.132&r2=1.133



--


http://sourceware.org/bugzilla/show_bug.cgi?id=10321

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


_______________________________________________
bug-binutils mailing list
bug-binutils@...
http://lists.gnu.org/mailman/listinfo/bug-binutils

[Bug binutils/10321] objcopy silently exits with empty input files

by Bugzilla from sourceware-bugzilla@sourceware.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


------- Additional Comments From hjl dot tools at gmail dot com  2009-06-27 17:19 -------
Fixed.

--
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


http://sourceware.org/bugzilla/show_bug.cgi?id=10321

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


_______________________________________________
bug-binutils mailing list
bug-binutils@...
http://lists.gnu.org/mailman/listinfo/bug-binutils