diff options
Diffstat (limited to 'binutils-2.22/binutils/testsuite/binutils-all/readelf.exp')
-rw-r--r-- | binutils-2.22/binutils/testsuite/binutils-all/readelf.exp | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/binutils-2.22/binutils/testsuite/binutils-all/readelf.exp b/binutils-2.22/binutils/testsuite/binutils-all/readelf.exp index 8b68aec..e611cb2 100644 --- a/binutils-2.22/binutils/testsuite/binutils-all/readelf.exp +++ b/binutils-2.22/binutils/testsuite/binutils-all/readelf.exp @@ -1,4 +1,4 @@ -# Copyright 1999, 2000, 2001, 2003, 2004, 2007, 2009 +# Copyright 1999, 2000, 2001, 2003, 2004, 2007, 2009, 2012 # Free Software Foundation, Inc. # This program is free software; you can redistribute it and/or modify @@ -337,3 +337,18 @@ readelf_wi_test readelf_compressed_wa_test readelf_dump_test + +# PR 13482 - Check for off-by-one errors when dumping .note sections. +if {![binutils_assemble $srcdir/$subdir/version.s tmpdir/version.o]} then { + perror "could not assemble version note test file" + unresolved "readelf - failed to assemble" + return +} + +if ![is_remote host] { + set tempfile tmpdir/version.o +} else { + set tempfile [remote_download host tmpdir/version.o] +} + +readelf_test -n $tempfile readelf.n {} |