diff options
author | Alan Modra <amodra@gmail.com> | 2018-08-17 15:06:46 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2018-08-18 13:47:03 +0930 |
commit | 2e72a56e451cf26fb01712d6004d3b6a70749756 (patch) | |
tree | a27a0e27ea3a2f1fe15d64cba5bd2d7a487672f6 /ld | |
parent | 506b86a4f5fe2aff90e62940a07c9e275d406cd4 (diff) | |
download | gdb-2e72a56e451cf26fb01712d6004d3b6a70749756.zip gdb-2e72a56e451cf26fb01712d6004d3b6a70749756.tar.gz gdb-2e72a56e451cf26fb01712d6004d3b6a70749756.tar.bz2 |
Remove duplicate ld testsuite function
It's in binutils/testsuite/lib/binutils-common.exp
* testsuite/ld-elf/elf.exp (is_elf64): Delete.
Diffstat (limited to 'ld')
-rw-r--r-- | ld/ChangeLog | 4 | ||||
-rw-r--r-- | ld/testsuite/ld-elf/elf.exp | 26 |
2 files changed, 4 insertions, 26 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog index b1b8cf5..89eddd3 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,7 @@ +2018-08-18 Alan Modra <amodra@gmail.com> + + * testsuite/ld-elf/elf.exp (is_elf64): Delete. + 2018-08-17 H.J. Lu <hongjiu.lu@intel.com> PR ld/23515 diff --git a/ld/testsuite/ld-elf/elf.exp b/ld/testsuite/ld-elf/elf.exp index cabc79d..bb7f4b0 100644 --- a/ld/testsuite/ld-elf/elf.exp +++ b/ld/testsuite/ld-elf/elf.exp @@ -73,32 +73,6 @@ run_ld_link_tests [list \ ] -# True if the object format is known to be 64-bit ELF. -# -proc is_elf64 { binary_file } { - global READELF - global READELFFLAGS - - set readelf_size "" - catch "exec $READELF $READELFFLAGS -h $binary_file > readelf.out" got - - if ![string match "" $got] then { - return 0 - } - - if { ![regexp "\n\[ \]*Class:\[ \]*ELF(\[0-9\]+)\n" \ - [file_contents readelf.out] nil readelf_size] } { - verbose "FAILED to determine ELF size" - return 0 - } - - if { $readelf_size == "64" } { - return 1 - } - - return 0 -} - if [is_elf64 tmpdir/symbol3w.a] { set ASFLAGS "$ASFLAGS --defsym ALIGN=3" } else { |