mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-27 04:52:05 +08:00
500ee42ee0
* objcopy.c (copy_main): Rewrite OPTION_ADD_SECTION code to work with non-ordinary files like /dev/null. binutils/testsuite/: * lib/utils-lib.exp (run_dump_test): Permit option values to use $srcdir to refer to the source directory. * binutils-all/add-section.d: New test. * binutils-all/add-empty-section.d: New test. * binutils-all/empty-file: New test input file. * binutils-all/objcopy.exp: Run new tests.
12 lines
290 B
Makefile
12 lines
290 B
Makefile
#PROG: objcopy
|
|
#name: objcopy add-section
|
|
#source: empty.s
|
|
#objcopy: --add-section NEW=$srcdir/empty.s
|
|
#objdump: -s -j NEW
|
|
|
|
.*: +file format .*
|
|
|
|
Contents of section NEW:
|
|
0000 2320416e 20656d70 74792066 696c652e # An empty file.
|
|
0010 0a .
|