diff options
author | Nathan Sidwell <nathan@codesourcery.com> | 2010-02-01 09:59:46 +0000 |
---|---|---|
committer | Nathan Sidwell <nathan@codesourcery.com> | 2010-02-01 09:59:46 +0000 |
commit | 0930eddd65bd8f1e41f8eaec99f9d9bef22553cd (patch) | |
tree | fca2a61ef118993d6ad081e8d69b17352a9e9cb7 /binutils/testsuite | |
parent | 89b402421ca1e6dfb04850205d5f2708a23ff6c3 (diff) | |
download | gdb-0930eddd65bd8f1e41f8eaec99f9d9bef22553cd.zip gdb-0930eddd65bd8f1e41f8eaec99f9d9bef22553cd.tar.gz gdb-0930eddd65bd8f1e41f8eaec99f9d9bef22553cd.tar.bz2 |
* objcopy.c (copy_object): Set SEC_LINKER_CREATED when adding
sections.
testsuite/
* binutils-all/note-1.d: New.
* binutils-all/objcopy.exp: Add it.
Diffstat (limited to 'binutils/testsuite')
-rw-r--r-- | binutils/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | binutils/testsuite/binutils-all/note-1.d | 12 | ||||
-rw-r--r-- | binutils/testsuite/binutils-all/objcopy.exp | 1 |
3 files changed, 18 insertions, 0 deletions
diff --git a/binutils/testsuite/ChangeLog b/binutils/testsuite/ChangeLog index 38cc467..e9c6bc0 100644 --- a/binutils/testsuite/ChangeLog +++ b/binutils/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2010-02-01 Nathan Sidwell <nathan@codesourcery.com> + + * binutils-all/note-1.d: New. + * binutils-all/objcopy.exp: Add it. + 2010-01-30 Dave Korn <dave.korn.cygwin@gmail.com> * binutils-all/windres/html.rc: Don't xfail x86_64-*-mingw*. diff --git a/binutils/testsuite/binutils-all/note-1.d b/binutils/testsuite/binutils-all/note-1.d new file mode 100644 index 0000000..1a42949 --- /dev/null +++ b/binutils/testsuite/binutils-all/note-1.d @@ -0,0 +1,12 @@ +#PROG: objcopy +#readelf: -S --wide +#objcopy: --add-section .note=$srcdir/note-1.d +#name: add notes section +#source: copytest.s + +There are .* + +Section Headers: +#... + \[[ 0-9]*\] .note NOTE 0*0000000 0*...... 0*000... .* +#... diff --git a/binutils/testsuite/binutils-all/objcopy.exp b/binutils/testsuite/binutils-all/objcopy.exp index f7f6cde..f734e14 100644 --- a/binutils/testsuite/binutils-all/objcopy.exp +++ b/binutils/testsuite/binutils-all/objcopy.exp @@ -835,6 +835,7 @@ if [is_elf_format] { objcopy_test_readelf "ELF group" group-3.s objcopy_test_readelf "ELF group" group-4.s run_dump_test "copy-1" + run_dump_test "note-1" } run_dump_test "copy-2" |