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.
9 lines
231 B
Makefile
9 lines
231 B
Makefile
#PROG: objcopy
|
|
#name: objcopy add-empty-section
|
|
#source: empty.s
|
|
#objcopy: --add-section NEW=$srcdir/empty-file
|
|
#readelf: -S --wide
|
|
|
|
#...
|
|
\[[ 0-9]+\] NEW[ \t]+PROGBITS[ \t]+[0-9a-f]+[ \t]+[0-9a-f]+[ \t]+0+[ \t]+[ \t0-9a-f]+
|
|
#...
|