bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug binutils/5556] New: objcopy -O binary produces huge invalid file


From: ismail at pardus dot org dot tr
Subject: [Bug binutils/5556] New: objcopy -O binary produces huge invalid file
Date: 9 Jan 2008 03:06:16 -0000

Attached pre_stage2.exec is a small prebuilt file from grub 0.97, and grub is
trying to do

objcopy -O binary pre_stage2.exec pre_stage2

and this produces a huge invalid file :

[~]> ls -al pre_stage2.exec
-rwxr-xr-x 1 cartman users 138718 Oca  9 04:53 pre_stage2.exec

so this is 138k

[~]> objcopy -O binary pre_stage2.exec pre_stage2
[~]> ls -al pre_stage2
-rwxr-xr-x 1 cartman users 134479576 Oca  9 05:05 pre_stage2

Output is 134MB , whoa. Now lets see what kinda file is this :

[~]> file pre_stage2
pre_stage2: data

Strip doesn't recognize it either: 

[~]> strip pre_stage2
strip:pre_stage2: File format not recognized

Using,

[~]> objcopy -V
GNU objcopy (Pardus Linux) 2.18.50.0.3.20071102
Copyright 2007 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License version 3 or (at your option) any later version.
This program has absolutely no warranty.

Also reproduced with vanilla CVS head as of today.

-- 
           Summary: objcopy -O binary produces huge invalid file
           Product: binutils
           Version: 2.18
            Status: NEW
          Severity: normal
          Priority: P2
         Component: binutils
        AssignedTo: unassigned at sources dot redhat dot com
        ReportedBy: ismail at pardus dot org dot tr
                CC: bug-binutils at gnu dot org


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

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]