]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Report an error on objcopy/strip of sectionless binaries
authorAlan Modra <amodra@gmail.com>
Mon, 7 Apr 2014 04:14:50 +0000 (13:44 +0930)
committerAlan Modra <amodra@gmail.com>
Mon, 7 Apr 2014 04:29:31 +0000 (13:59 +0930)
commit5063a42103f83b921b0b6899acdd5d4d920fdc36
tree6f4061fb293067a8be046a4d10367b85472e2c8a
parent27f0d6b4fe4888e3bb0bdc8e64af51c521fa9f1d
Report an error on objcopy/strip of sectionless binaries

All strip operations require section headers to be present, as do most
objcopy operations.  BFD is seriously confused by objects without
section info.  The error message added here is similar to the error
on attempting to strip/objcopy a zero length object.

PR binutils/16811
* objcopy.c (copy_object): Error if no sections.
binutils/ChangeLog
binutils/objcopy.c