Browse Source
binutils/ 2010-01-06 H.J. Lu <hongjiu.lu@intel.com> PR binutils/11131 * Makefile.am (ELFEDIT_PROG): New. (bin_PROGRAMS): Add $(ELFEDIT_PROG). (CFILES): Add elfedit.c. (elfedit_DEPENDENCIES): New. (elfedit_SOURCES): Likewise. (elfedit_LDADD): Likewise. * Makefile.in: Regenerated. * elfedit.c: New. * doc/binutils.texi: Document elfedit. * doc/Makefile.am (man_MANS): Add elfedit.1. (elfedit.1): New. * doc/Makefile.in: Regenerated. binutils/testsuite/ 2010-01-06 H.J. Lu <hongjiu.lu@intel.com> PR binutils/11131 * binutils-all/elfedit-1.d: New. * binutils-all/elfedit.exp: Likewise. * config/default.exp (ELFEDIT): New. Set if it doesn't exist. (ELFEDITFLAGS): Likewise. * lib/utils-lib.exp (run_dump_test): Support elfedit.gdb_7_1-branch
12 changed files with 1309 additions and 11 deletions
File diff suppressed because it is too large
@ -0,0 +1,16 @@ |
|||
#PROG: elfedit |
|||
#elfedit: --output-mach l1om |
|||
#source: empty.s |
|||
#readelf: -h |
|||
#name: Update ELF header 1 |
|||
#target: x86_64-*-* |
|||
|
|||
#... |
|||
ELF Header: |
|||
Magic: 7f 45 4c 46 02 01 01 00 00 00 00 00 00 00 00 00 |
|||
Class: ELF64 |
|||
Data: 2's complement, little endian |
|||
Version: 1 \(current\) |
|||
#... |
|||
Machine: Intel L1OM |
|||
#... |
|||
@ -0,0 +1,31 @@ |
|||
# Copyright 2010 Free Software Foundation, Inc. |
|||
|
|||
# This program is free software; you can redistribute it and/or modify |
|||
# it under the terms of the GNU General Public License as published by |
|||
# the Free Software Foundation; either version 3 of the License, or |
|||
# (at your option) any later version. |
|||
# |
|||
# This program is distributed in the hope that it will be useful, |
|||
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
|||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|||
# GNU General Public License for more details. |
|||
# |
|||
# You should have received a copy of the GNU General Public License |
|||
# along with this program; if not, write to the Free Software |
|||
# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. |
|||
|
|||
# Exclude non-ELF targets. |
|||
if ![is_elf_format] { |
|||
verbose "$ELFEDIT is only intended for ELF targets" 2 |
|||
return |
|||
} |
|||
|
|||
if ![is_remote host] { |
|||
set tempfile tmpdir/bintest.o |
|||
set copyfile tmpdir/bintest |
|||
} else { |
|||
set tempfile [remote_download host tmpdir/bintest.o] |
|||
set copyfile bintest |
|||
} |
|||
|
|||
run_dump_test "elfedit-1" |
|||
Loading…
Reference in new issue