bug-binutils
[Top][All Lists]
Advanced

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

[Bug binutils/22120] New: objcopy -R creates 4G file


From: xypron.glpk at gmx dot de
Subject: [Bug binutils/22120] New: objcopy -R creates 4G file
Date: Sun, 10 Sep 2017 04:30:59 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=22120

            Bug ID: 22120
           Summary: objcopy -R creates 4G file
           Product: binutils
           Version: 2.28
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: binutils
          Assignee: unassigned at sourceware dot org
          Reporter: xypron.glpk at gmx dot de
  Target Milestone: ---

For a file spl/u-boot-spl of 2,385,168 bytes.

I run 

objcopy -O binary -R .start16 -R .resetvec \
  spl/u-boot-spl spl/u-boot-spl-nodtb.bin

The result is a file u-boot-spl-nodtb.bin of 4,293,642,704 bytes

My system is Debian Stretch x86_64.
GNU objcopy (GNU Binutils for Debian) 2.28

objdump -h spl/u-boot-spl
shows that the section .start16 and .resetvec exist.

To reproduce run

git clone http://git.denx.de/u-boot.git
export BUILD_ROM=y
make mrproper
make qemu-x86_64_defconfig
make

-- 
You are receiving this mail because:
You are on the CC list for the bug.


reply via email to

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