|
|
d1bbc4 |
From cd2a24f2b66ad51294fad0b08a4d037b2d966d21 Mon Sep 17 00:00:00 2001
|
|
|
d1bbc4 |
From: Mark Wielaard <mark@klomp.org>
|
|
|
d1bbc4 |
Date: Tue, 6 Aug 2019 18:39:46 +0200
|
|
|
d1bbc4 |
Subject: [PATCH] dwelf_elf_e_machine_string backport for 0.176 - eu-readelf
|
|
|
d1bbc4 |
only.
|
|
|
d1bbc4 |
|
|
|
d1bbc4 |
---
|
|
|
d1bbc4 |
libdwelf/dwelf_elf_e_machine_string.c | 404 ++++++++++++++++++++++++
|
|
|
d1bbc4 |
src/Makefile.am | 2 +
|
|
|
d1bbc4 |
src/readelf.c | 9 +-
|
|
|
d1bbc4 |
tests/Makefile.am | 11 +-
|
|
|
d1bbc4 |
tests/dwelf_elf_e_machine_string_test.c | 66 ++++
|
|
|
d1bbc4 |
tests/run-dwelf_elf_e_machine_string.sh | 31 ++
|
|
|
d1bbc4 |
6 files changed, 519 insertions(+), 4 deletions(-)
|
|
|
d1bbc4 |
create mode 100644 libdwelf/dwelf_elf_e_machine_string.c
|
|
|
d1bbc4 |
create mode 100644 tests/dwelf_elf_e_machine_string_test.c
|
|
|
d1bbc4 |
create mode 100755 tests/run-dwelf_elf_e_machine_string.sh
|
|
|
d1bbc4 |
|
|
|
d1bbc4 |
diff --git a/libdwelf/dwelf_elf_e_machine_string.c b/libdwelf/dwelf_elf_e_machine_string.c
|
|
|
d1bbc4 |
new file mode 100644
|
|
|
d1bbc4 |
index 00000000..20f33173
|
|
|
d1bbc4 |
--- /dev/null
|
|
|
d1bbc4 |
+++ b/libdwelf/dwelf_elf_e_machine_string.c
|
|
|
d1bbc4 |
@@ -0,0 +1,404 @@
|
|
|
d1bbc4 |
+/* Returns a human readable description of an ELF header e_machine value.
|
|
|
d1bbc4 |
+ Copyright (C) 2019 Red Hat, Inc.
|
|
|
d1bbc4 |
+ This file is part of elfutils.
|
|
|
d1bbc4 |
+
|
|
|
d1bbc4 |
+ This file is free software; you can redistribute it and/or modify
|
|
|
d1bbc4 |
+ it under the terms of either
|
|
|
d1bbc4 |
+
|
|
|
d1bbc4 |
+ * the GNU Lesser General Public License as published by the Free
|
|
|
d1bbc4 |
+ Software Foundation; either version 3 of the License, or (at
|
|
|
d1bbc4 |
+ your option) any later version
|
|
|
d1bbc4 |
+
|
|
|
d1bbc4 |
+ or
|
|
|
d1bbc4 |
+
|
|
|
d1bbc4 |
+ * the GNU General Public License as published by the Free
|
|
|
d1bbc4 |
+ Software Foundation; either version 2 of the License, or (at
|
|
|
d1bbc4 |
+ your option) any later version
|
|
|
d1bbc4 |
+
|
|
|
d1bbc4 |
+ or both in parallel, as here.
|
|
|
d1bbc4 |
+
|
|
|
d1bbc4 |
+ elfutils is distributed in the hope that it will be useful, but
|
|
|
d1bbc4 |
+ WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
d1bbc4 |
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
d1bbc4 |
+ General Public License for more details.
|
|
|
d1bbc4 |
+
|
|
|
d1bbc4 |
+ You should have received copies of the GNU General Public License and
|
|
|
d1bbc4 |
+ the GNU Lesser General Public License along with this program. If
|
|
|
d1bbc4 |
+ not, see <http://www.gnu.org/licenses/>. */
|
|
|
d1bbc4 |
+
|
|
|
d1bbc4 |
+#ifdef HAVE_CONFIG_H
|
|
|
d1bbc4 |
+# include <config.h>
|
|
|
d1bbc4 |
+#endif
|
|
|
d1bbc4 |
+
|
|
|
d1bbc4 |
+#include "libdwelf.h"
|
|
|
d1bbc4 |
+
|
|
|
d1bbc4 |
+
|
|
|
d1bbc4 |
+const char *
|
|
|
d1bbc4 |
+dwelf_elf_e_machine_string (int machine)
|
|
|
d1bbc4 |
+{
|
|
|
d1bbc4 |
+ switch (machine)
|
|
|
d1bbc4 |
+ {
|
|
|
d1bbc4 |
+ case EM_NONE:
|
|
|
d1bbc4 |
+ return "None";
|
|
|
d1bbc4 |
+ case EM_M32:
|
|
|
d1bbc4 |
+ return "WE32100";
|
|
|
d1bbc4 |
+ case EM_SPARC:
|
|
|
d1bbc4 |
+ return "SPARC";
|
|
|
d1bbc4 |
+ case EM_386:
|
|
|
d1bbc4 |
+ return "Intel 80386";
|
|
|
d1bbc4 |
+ case EM_68K:
|
|
|
d1bbc4 |
+ return "M68K";
|
|
|
d1bbc4 |
+ case EM_88K:
|
|
|
d1bbc4 |
+ return "M88K";
|
|
|
d1bbc4 |
+ case EM_IAMCU:
|
|
|
d1bbc4 |
+ return "Intel MCU";
|
|
|
d1bbc4 |
+ case EM_860:
|
|
|
d1bbc4 |
+ return "Intel 80860";
|
|
|
d1bbc4 |
+ case EM_MIPS:
|
|
|
d1bbc4 |
+ return "MIPS R3000";
|
|
|
d1bbc4 |
+ case EM_S370:
|
|
|
d1bbc4 |
+ return "IBM System/370";
|
|
|
d1bbc4 |
+ case EM_MIPS_RS3_LE:
|
|
|
d1bbc4 |
+ return "MIPS R3000";
|
|
|
d1bbc4 |
+ case EM_PARISC:
|
|
|
d1bbc4 |
+ return "HPPA";
|
|
|
d1bbc4 |
+ case EM_VPP500:
|
|
|
d1bbc4 |
+ return "Fujitsu VPP500";
|
|
|
d1bbc4 |
+ case EM_SPARC32PLUS:
|
|
|
d1bbc4 |
+ return "SPARC v8+";
|
|
|
d1bbc4 |
+ case EM_960:
|
|
|
d1bbc4 |
+ return "Intel 80960";
|
|
|
d1bbc4 |
+ case EM_PPC:
|
|
|
d1bbc4 |
+ return "PowerPC";
|
|
|
d1bbc4 |
+ case EM_PPC64:
|
|
|
d1bbc4 |
+ return "PowerPC64";
|
|
|
d1bbc4 |
+ case EM_S390:
|
|
|
d1bbc4 |
+ return "IBM S/390";
|
|
|
d1bbc4 |
+ case EM_SPU:
|
|
|
d1bbc4 |
+ return "IBM SPU/SPC";
|
|
|
d1bbc4 |
+ case EM_V800:
|
|
|
d1bbc4 |
+ return "NEC V800";
|
|
|
d1bbc4 |
+ case EM_FR20:
|
|
|
d1bbc4 |
+ return "Fujitsu FR20";
|
|
|
d1bbc4 |
+ case EM_RH32:
|
|
|
d1bbc4 |
+ return "TRW RH-32";
|
|
|
d1bbc4 |
+ case EM_RCE:
|
|
|
d1bbc4 |
+ return "Motorola RCE";
|
|
|
d1bbc4 |
+ case EM_ARM:
|
|
|
d1bbc4 |
+ return "ARM";
|
|
|
d1bbc4 |
+ case EM_FAKE_ALPHA:
|
|
|
d1bbc4 |
+ return "Digital Alpha";
|
|
|
d1bbc4 |
+ case EM_SH:
|
|
|
d1bbc4 |
+ return "SH";
|
|
|
d1bbc4 |
+ case EM_SPARCV9:
|
|
|
d1bbc4 |
+ return "SPARC v9";
|
|
|
d1bbc4 |
+ case EM_TRICORE:
|
|
|
d1bbc4 |
+ return "Siemens Tricore";
|
|
|
d1bbc4 |
+ case EM_ARC:
|
|
|
d1bbc4 |
+ return "ARC";
|
|
|
d1bbc4 |
+ case EM_H8_300:
|
|
|
d1bbc4 |
+ return "H8/300";
|
|
|
d1bbc4 |
+ case EM_H8_300H:
|
|
|
d1bbc4 |
+ return "H8/300H";
|
|
|
d1bbc4 |
+ case EM_H8S:
|
|
|
d1bbc4 |
+ return "H8S";
|
|
|
d1bbc4 |
+ case EM_H8_500:
|
|
|
d1bbc4 |
+ return "H8/500";
|
|
|
d1bbc4 |
+ case EM_IA_64:
|
|
|
d1bbc4 |
+ return "Intel IA-64";
|
|
|
d1bbc4 |
+ case EM_MIPS_X:
|
|
|
d1bbc4 |
+ return "Stanford MIPS-X";
|
|
|
d1bbc4 |
+ case EM_COLDFIRE:
|
|
|
d1bbc4 |
+ return "Motorola Coldfire";
|
|
|
d1bbc4 |
+ case EM_68HC12:
|
|
|
d1bbc4 |
+ return "Motorola M68HC12";
|
|
|
d1bbc4 |
+ case EM_MMA:
|
|
|
d1bbc4 |
+ return "Fujitsu MMA Multimedia Accelerator";
|
|
|
d1bbc4 |
+ case EM_PCP:
|
|
|
d1bbc4 |
+ return "Siemens PCP";
|
|
|
d1bbc4 |
+ case EM_NCPU:
|
|
|
d1bbc4 |
+ return "Sony nCPU embeded RISC";
|
|
|
d1bbc4 |
+ case EM_NDR1:
|
|
|
d1bbc4 |
+ return "Denso NDR1 microprocessor";
|
|
|
d1bbc4 |
+ case EM_STARCORE:
|
|
|
d1bbc4 |
+ return "Motorola Star*Core processor";
|
|
|
d1bbc4 |
+ case EM_ME16:
|
|
|
d1bbc4 |
+ return "Toyota ME16 processor";
|
|
|
d1bbc4 |
+ case EM_ST100:
|
|
|
d1bbc4 |
+ return "STMicroelectronic ST100";
|
|
|
d1bbc4 |
+ case EM_TINYJ:
|
|
|
d1bbc4 |
+ return "Advanced Logic Corporation Tinyj";
|
|
|
d1bbc4 |
+ case EM_X86_64:
|
|
|
d1bbc4 |
+ return "AMD x86-64";
|
|
|
d1bbc4 |
+ case EM_PDSP:
|
|
|
d1bbc4 |
+ return "Sony DSP Processor";
|
|
|
d1bbc4 |
+ case EM_PDP10:
|
|
|
d1bbc4 |
+ return "Digital PDP-10";
|
|
|
d1bbc4 |
+ case EM_PDP11:
|
|
|
d1bbc4 |
+ return "Digital PDP-11";
|
|
|
d1bbc4 |
+ case EM_FX66:
|
|
|
d1bbc4 |
+ return "Siemens FX66 microcontroller";
|
|
|
d1bbc4 |
+ case EM_ST9PLUS:
|
|
|
d1bbc4 |
+ return "STMicroelectronics ST9+";
|
|
|
d1bbc4 |
+ case EM_ST7:
|
|
|
d1bbc4 |
+ return "STMicroelectronics ST7";
|
|
|
d1bbc4 |
+ case EM_68HC16:
|
|
|
d1bbc4 |
+ return "Motorola MC68HC16 microcontroller";
|
|
|
d1bbc4 |
+ case EM_68HC11:
|
|
|
d1bbc4 |
+ return "Motorola MC68HC11 microcontroller";
|
|
|
d1bbc4 |
+ case EM_68HC08:
|
|
|
d1bbc4 |
+ return "Motorola MC68HC08 microcontroller";
|
|
|
d1bbc4 |
+ case EM_68HC05:
|
|
|
d1bbc4 |
+ return "Motorola MC68HC05 microcontroller";
|
|
|
d1bbc4 |
+ case EM_SVX:
|
|
|
d1bbc4 |
+ return "Silicon Graphics SVx";
|
|
|
d1bbc4 |
+ case EM_ST19:
|
|
|
d1bbc4 |
+ return "STMicroelectronics ST19";
|
|
|
d1bbc4 |
+ case EM_VAX:
|
|
|
d1bbc4 |
+ return "Digital VAX";
|
|
|
d1bbc4 |
+ case EM_CRIS:
|
|
|
d1bbc4 |
+ return "Axis Communications 32-bit embedded processor";
|
|
|
d1bbc4 |
+ case EM_JAVELIN:
|
|
|
d1bbc4 |
+ return "Infineon Technologies 32-bit embedded processor";
|
|
|
d1bbc4 |
+ case EM_FIREPATH:
|
|
|
d1bbc4 |
+ return "Element 14 64-bit DSP Processor";
|
|
|
d1bbc4 |
+ case EM_ZSP:
|
|
|
d1bbc4 |
+ return "LSI Logic 16-bit DSP Processor";
|
|
|
d1bbc4 |
+ case EM_MMIX:
|
|
|
d1bbc4 |
+ return "Donald Knuth's educational 64-bit processor";
|
|
|
d1bbc4 |
+ case EM_HUANY:
|
|
|
d1bbc4 |
+ return "Harvard University machine-independent object";
|
|
|
d1bbc4 |
+ case EM_PRISM:
|
|
|
d1bbc4 |
+ return "SiTera Prism";
|
|
|
d1bbc4 |
+ case EM_AVR:
|
|
|
d1bbc4 |
+ return "Atmel AVR 8-bit microcontroller";
|
|
|
d1bbc4 |
+ case EM_FR30:
|
|
|
d1bbc4 |
+ return "Fujitsu FR30";
|
|
|
d1bbc4 |
+ case EM_D10V:
|
|
|
d1bbc4 |
+ return "Mitsubishi D10V";
|
|
|
d1bbc4 |
+ case EM_D30V:
|
|
|
d1bbc4 |
+ return "Mitsubishi D30V";
|
|
|
d1bbc4 |
+ case EM_V850:
|
|
|
d1bbc4 |
+ return "NEC v850";
|
|
|
d1bbc4 |
+ case EM_M32R:
|
|
|
d1bbc4 |
+ return "Mitsubishi M32R";
|
|
|
d1bbc4 |
+ case EM_MN10300:
|
|
|
d1bbc4 |
+ return "Matsushita MN10300";
|
|
|
d1bbc4 |
+ case EM_MN10200:
|
|
|
d1bbc4 |
+ return "Matsushita MN10200";
|
|
|
d1bbc4 |
+ case EM_PJ:
|
|
|
d1bbc4 |
+ return "picoJava";
|
|
|
d1bbc4 |
+ case EM_OPENRISC:
|
|
|
d1bbc4 |
+ return "OpenRISC";
|
|
|
d1bbc4 |
+ case EM_ARC_COMPACT:
|
|
|
d1bbc4 |
+ return "ARC International ARCompact";
|
|
|
d1bbc4 |
+ case EM_XTENSA:
|
|
|
d1bbc4 |
+ return "Tensilica Xtensa Architecture";
|
|
|
d1bbc4 |
+ case EM_VIDEOCORE:
|
|
|
d1bbc4 |
+ return "Alphamosaic VideoCore";
|
|
|
d1bbc4 |
+ case EM_TMM_GPP:
|
|
|
d1bbc4 |
+ return "Thompson Multimedia General Purpose Processor";
|
|
|
d1bbc4 |
+ case EM_NS32K:
|
|
|
d1bbc4 |
+ return "National Semiconductor 32000";
|
|
|
d1bbc4 |
+ case EM_TPC:
|
|
|
d1bbc4 |
+ return "Tenor Network TPC";
|
|
|
d1bbc4 |
+ case EM_SNP1K:
|
|
|
d1bbc4 |
+ return "Trebia SNP 1000";
|
|
|
d1bbc4 |
+ case EM_ST200:
|
|
|
d1bbc4 |
+ return "STMicroelectronics ST200";
|
|
|
d1bbc4 |
+ case EM_IP2K:
|
|
|
d1bbc4 |
+ return "Ubicom IP2xxx";
|
|
|
d1bbc4 |
+ case EM_MAX:
|
|
|
d1bbc4 |
+ return "MAX processor";
|
|
|
d1bbc4 |
+ case EM_CR:
|
|
|
d1bbc4 |
+ return "National Semiconductor CompactRISC";
|
|
|
d1bbc4 |
+ case EM_F2MC16:
|
|
|
d1bbc4 |
+ return "Fujitsu F2MC16";
|
|
|
d1bbc4 |
+ case EM_MSP430:
|
|
|
d1bbc4 |
+ return "Texas Instruments msp430";
|
|
|
d1bbc4 |
+ case EM_BLACKFIN:
|
|
|
d1bbc4 |
+ return "Analog Devices Blackfin DSP";
|
|
|
d1bbc4 |
+ case EM_SE_C33:
|
|
|
d1bbc4 |
+ return "Seiko Epson S1C33";
|
|
|
d1bbc4 |
+ case EM_SEP:
|
|
|
d1bbc4 |
+ return "Sharp embedded microprocessor";
|
|
|
d1bbc4 |
+ case EM_ARCA:
|
|
|
d1bbc4 |
+ return "Arca RISC";
|
|
|
d1bbc4 |
+ case EM_UNICORE:
|
|
|
d1bbc4 |
+ return "Unicore";
|
|
|
d1bbc4 |
+ case EM_EXCESS:
|
|
|
d1bbc4 |
+ return "eXcess configurable CPU";
|
|
|
d1bbc4 |
+ case EM_DXP:
|
|
|
d1bbc4 |
+ return "Icera Semiconductor Deep Execution Processor";
|
|
|
d1bbc4 |
+ case EM_ALTERA_NIOS2:
|
|
|
d1bbc4 |
+ return "Altera Nios II";
|
|
|
d1bbc4 |
+ case EM_CRX:
|
|
|
d1bbc4 |
+ return "National Semiconductor CompactRISC CRX";
|
|
|
d1bbc4 |
+ case EM_XGATE:
|
|
|
d1bbc4 |
+ return "Motorola XGATE";
|
|
|
d1bbc4 |
+ case EM_C166:
|
|
|
d1bbc4 |
+ return "Infineon C16x/XC16x";
|
|
|
d1bbc4 |
+ case EM_M16C:
|
|
|
d1bbc4 |
+ return "Renesas M16C";
|
|
|
d1bbc4 |
+ case EM_DSPIC30F:
|
|
|
d1bbc4 |
+ return "Microchip Technology dsPIC30F";
|
|
|
d1bbc4 |
+ case EM_CE:
|
|
|
d1bbc4 |
+ return "Freescale Communication Engine RISC";
|
|
|
d1bbc4 |
+ case EM_M32C:
|
|
|
d1bbc4 |
+ return "Renesas M32C";
|
|
|
d1bbc4 |
+ case EM_TSK3000:
|
|
|
d1bbc4 |
+ return "Altium TSK3000";
|
|
|
d1bbc4 |
+ case EM_RS08:
|
|
|
d1bbc4 |
+ return "Freescale RS08";
|
|
|
d1bbc4 |
+ case EM_SHARC:
|
|
|
d1bbc4 |
+ return "Analog Devices SHARC";
|
|
|
d1bbc4 |
+ case EM_ECOG2:
|
|
|
d1bbc4 |
+ return "Cyan Technology eCOG2";
|
|
|
d1bbc4 |
+ case EM_SCORE7:
|
|
|
d1bbc4 |
+ return "Sunplus S+core7 RISC";
|
|
|
d1bbc4 |
+ case EM_DSP24:
|
|
|
d1bbc4 |
+ return "New Japan Radio (NJR) 24-bit DSP";
|
|
|
d1bbc4 |
+ case EM_VIDEOCORE3:
|
|
|
d1bbc4 |
+ return "Broadcom VideoCore III";
|
|
|
d1bbc4 |
+ case EM_LATTICEMICO32:
|
|
|
d1bbc4 |
+ return "RISC for Lattice FPGA";
|
|
|
d1bbc4 |
+ case EM_SE_C17:
|
|
|
d1bbc4 |
+ return "Seiko Epson C17";
|
|
|
d1bbc4 |
+ case EM_TI_C6000:
|
|
|
d1bbc4 |
+ return "Texas Instruments TMS320C6000 DSP";
|
|
|
d1bbc4 |
+ case EM_TI_C2000:
|
|
|
d1bbc4 |
+ return "Texas Instruments TMS320C2000 DSP";
|
|
|
d1bbc4 |
+ case EM_TI_C5500:
|
|
|
d1bbc4 |
+ return "Texas Instruments TMS320C55x DSP";
|
|
|
d1bbc4 |
+ case EM_TI_ARP32:
|
|
|
d1bbc4 |
+ return "Texas Instruments Application Specific RISC";
|
|
|
d1bbc4 |
+ case EM_TI_PRU:
|
|
|
d1bbc4 |
+ return "Texas Instruments Programmable Realtime Unit";
|
|
|
d1bbc4 |
+ case EM_MMDSP_PLUS:
|
|
|
d1bbc4 |
+ return "STMicroelectronics 64bit VLIW DSP";
|
|
|
d1bbc4 |
+ case EM_CYPRESS_M8C:
|
|
|
d1bbc4 |
+ return "Cypress M8C";
|
|
|
d1bbc4 |
+ case EM_R32C:
|
|
|
d1bbc4 |
+ return "Renesas R32C";
|
|
|
d1bbc4 |
+ case EM_TRIMEDIA:
|
|
|
d1bbc4 |
+ return "NXP Semiconductors TriMedia";
|
|
|
d1bbc4 |
+ case EM_QDSP6:
|
|
|
d1bbc4 |
+ return "QUALCOMM DSP6";
|
|
|
d1bbc4 |
+ case EM_8051:
|
|
|
d1bbc4 |
+ return "Intel 8051 and variants";
|
|
|
d1bbc4 |
+ case EM_STXP7X:
|
|
|
d1bbc4 |
+ return "STMicroelectronics STxP7x";
|
|
|
d1bbc4 |
+ case EM_NDS32:
|
|
|
d1bbc4 |
+ return "Andes Technology compact code size embeded RISC";
|
|
|
d1bbc4 |
+ case EM_ECOG1X:
|
|
|
d1bbc4 |
+ return "Cyan Technology eCOG1X";
|
|
|
d1bbc4 |
+ case EM_MAXQ30:
|
|
|
d1bbc4 |
+ return "Dallas Semicondutor MAXQ30";
|
|
|
d1bbc4 |
+ case EM_XIMO16:
|
|
|
d1bbc4 |
+ return "New Japan Radio (NJR) 16-bit DSP";
|
|
|
d1bbc4 |
+ case EM_MANIK:
|
|
|
d1bbc4 |
+ return "M2000 Reconfigurable RISC";
|
|
|
d1bbc4 |
+ case EM_CRAYNV2:
|
|
|
d1bbc4 |
+ return "Cray NV2 vector architecture";
|
|
|
d1bbc4 |
+ case EM_RX:
|
|
|
d1bbc4 |
+ return "Renesas RX";
|
|
|
d1bbc4 |
+ case EM_METAG:
|
|
|
d1bbc4 |
+ return "Imagination Technologies META";
|
|
|
d1bbc4 |
+ case EM_MCST_ELBRUS:
|
|
|
d1bbc4 |
+ return "MCST Elbrus";
|
|
|
d1bbc4 |
+ case EM_ECOG16:
|
|
|
d1bbc4 |
+ return "Cyan Technology eCOG16";
|
|
|
d1bbc4 |
+ case EM_CR16:
|
|
|
d1bbc4 |
+ return "National Semiconductor CompactRISC";
|
|
|
d1bbc4 |
+ case EM_ETPU:
|
|
|
d1bbc4 |
+ return "Freescale Extended Time Processing Unit";
|
|
|
d1bbc4 |
+ case EM_SLE9X:
|
|
|
d1bbc4 |
+ return "Infineon Technologies SLE9X";
|
|
|
d1bbc4 |
+ case EM_L10M:
|
|
|
d1bbc4 |
+ return "Intel L10M";
|
|
|
d1bbc4 |
+ case EM_K10M:
|
|
|
d1bbc4 |
+ return "Intel K10M";
|
|
|
d1bbc4 |
+ case EM_AARCH64:
|
|
|
d1bbc4 |
+ return "AARCH64";
|
|
|
d1bbc4 |
+ case EM_AVR32:
|
|
|
d1bbc4 |
+ return "Amtel AVR32";
|
|
|
d1bbc4 |
+ case EM_STM8:
|
|
|
d1bbc4 |
+ return "STMicroelectronics STM8";
|
|
|
d1bbc4 |
+ case EM_TILE64:
|
|
|
d1bbc4 |
+ return "Tilera TILE64";
|
|
|
d1bbc4 |
+ case EM_TILEPRO:
|
|
|
d1bbc4 |
+ return "Tilera TILEPro";
|
|
|
d1bbc4 |
+ case EM_MICROBLAZE:
|
|
|
d1bbc4 |
+ return "Xilinx MicroBlaze";
|
|
|
d1bbc4 |
+ case EM_CUDA:
|
|
|
d1bbc4 |
+ return "NVIDIA CUDA";
|
|
|
d1bbc4 |
+ case EM_TILEGX:
|
|
|
d1bbc4 |
+ return "Tilera TILE-Gx";
|
|
|
d1bbc4 |
+ case EM_CLOUDSHIELD:
|
|
|
d1bbc4 |
+ return "CloudShield";
|
|
|
d1bbc4 |
+ case EM_COREA_1ST:
|
|
|
d1bbc4 |
+ return "KIPO-KAIST Core-A 1st gen";
|
|
|
d1bbc4 |
+ case EM_COREA_2ND:
|
|
|
d1bbc4 |
+ return "KIPO-KAIST Core-A 2nd gen";
|
|
|
d1bbc4 |
+ case EM_ARC_COMPACT2:
|
|
|
d1bbc4 |
+ return "Synopsys ARCompact V2";
|
|
|
d1bbc4 |
+ case EM_OPEN8:
|
|
|
d1bbc4 |
+ return "Open8 RISC";
|
|
|
d1bbc4 |
+ case EM_RL78:
|
|
|
d1bbc4 |
+ return "Renesas RL78";
|
|
|
d1bbc4 |
+ case EM_VIDEOCORE5:
|
|
|
d1bbc4 |
+ return "Broadcom VideoCore V";
|
|
|
d1bbc4 |
+ case EM_78KOR:
|
|
|
d1bbc4 |
+ return "Renesas 78KOR";
|
|
|
d1bbc4 |
+ case EM_56800EX:
|
|
|
d1bbc4 |
+ return "Freescale 56800EX DSC";
|
|
|
d1bbc4 |
+ case EM_BA1:
|
|
|
d1bbc4 |
+ return "Beyond BA1";
|
|
|
d1bbc4 |
+ case EM_BA2:
|
|
|
d1bbc4 |
+ return "Beyond BA2";
|
|
|
d1bbc4 |
+ case EM_XCORE:
|
|
|
d1bbc4 |
+ return "XMOS xCORE";
|
|
|
d1bbc4 |
+ case EM_MCHP_PIC:
|
|
|
d1bbc4 |
+ return "Microchip 8-bit PIC";
|
|
|
d1bbc4 |
+ case EM_KM32:
|
|
|
d1bbc4 |
+ return "KM211 KM32";
|
|
|
d1bbc4 |
+ case EM_KMX32:
|
|
|
d1bbc4 |
+ return "KM211 KMX32";
|
|
|
d1bbc4 |
+ case EM_EMX16:
|
|
|
d1bbc4 |
+ return "KM211 KMX16";
|
|
|
d1bbc4 |
+ case EM_EMX8:
|
|
|
d1bbc4 |
+ return "KM211 KMX8";
|
|
|
d1bbc4 |
+ case EM_KVARC:
|
|
|
d1bbc4 |
+ return "KM211 KVARC";
|
|
|
d1bbc4 |
+ case EM_CDP:
|
|
|
d1bbc4 |
+ return "Paneve CDP";
|
|
|
d1bbc4 |
+ case EM_COGE:
|
|
|
d1bbc4 |
+ return "Cognitive Smart Memory Processor";
|
|
|
d1bbc4 |
+ case EM_COOL:
|
|
|
d1bbc4 |
+ return "Bluechip CoolEngine";
|
|
|
d1bbc4 |
+ case EM_NORC:
|
|
|
d1bbc4 |
+ return "Nanoradio Optimized RISC";
|
|
|
d1bbc4 |
+ case EM_CSR_KALIMBA:
|
|
|
d1bbc4 |
+ return "CSR Kalimba";
|
|
|
d1bbc4 |
+ case EM_Z80:
|
|
|
d1bbc4 |
+ return "Zilog Z80";
|
|
|
d1bbc4 |
+ case EM_VISIUM:
|
|
|
d1bbc4 |
+ return "CDS VISIUMcore";
|
|
|
d1bbc4 |
+ case EM_FT32:
|
|
|
d1bbc4 |
+ return "FTDI Chip FT32";
|
|
|
d1bbc4 |
+ case EM_MOXIE:
|
|
|
d1bbc4 |
+ return "Moxie";
|
|
|
d1bbc4 |
+ case EM_AMDGPU:
|
|
|
d1bbc4 |
+ return "AMD GPU";
|
|
|
d1bbc4 |
+ case EM_RISCV:
|
|
|
d1bbc4 |
+ return "RISC-V";
|
|
|
d1bbc4 |
+ case EM_BPF:
|
|
|
d1bbc4 |
+ return "BPF";
|
|
|
d1bbc4 |
+
|
|
|
d1bbc4 |
+ case EM_ALPHA:
|
|
|
d1bbc4 |
+ return "Alpha";
|
|
|
d1bbc4 |
+
|
|
|
d1bbc4 |
+ default:
|
|
|
d1bbc4 |
+ return NULL;
|
|
|
d1bbc4 |
+ }
|
|
|
d1bbc4 |
+}
|
|
|
d1bbc4 |
diff --git a/src/Makefile.am b/src/Makefile.am
|
|
|
d1bbc4 |
index 2b1c0dcb..0bb20804 100644
|
|
|
d1bbc4 |
--- a/src/Makefile.am
|
|
|
d1bbc4 |
+++ b/src/Makefile.am
|
|
|
d1bbc4 |
@@ -67,6 +67,8 @@ ranlib_no_Wstack_usage = yes
|
|
|
d1bbc4 |
ar_no_Wstack_usage = yes
|
|
|
d1bbc4 |
unstrip_no_Wstack_usage = yes
|
|
|
d1bbc4 |
|
|
|
d1bbc4 |
+readelf_SOURCES = readelf.c ../libdwelf/dwelf_elf_e_machine_string.c
|
|
|
d1bbc4 |
+
|
|
|
d1bbc4 |
readelf_LDADD = $(libdw) $(libebl) $(libelf) $(libeu) $(argp_LDADD) -ldl
|
|
|
d1bbc4 |
nm_LDADD = $(libdw) $(libebl) $(libelf) $(libeu) $(argp_LDADD) -ldl \
|
|
|
d1bbc4 |
$(demanglelib)
|
|
|
d1bbc4 |
diff --git a/src/readelf.c b/src/readelf.c
|
|
|
d1bbc4 |
index 33706bde..1db88393 100644
|
|
|
d1bbc4 |
--- a/src/readelf.c
|
|
|
d1bbc4 |
+++ b/src/readelf.c
|
|
|
d1bbc4 |
@@ -57,6 +57,8 @@
|
|
|
d1bbc4 |
|
|
|
d1bbc4 |
#include "../libdw/known-dwarf.h"
|
|
|
d1bbc4 |
|
|
|
d1bbc4 |
+extern const char *dwelf_elf_e_machine_string (int machine);
|
|
|
d1bbc4 |
+
|
|
|
d1bbc4 |
#ifdef __linux__
|
|
|
d1bbc4 |
#define CORE_SIGILL SIGILL
|
|
|
d1bbc4 |
#define CORE_SIGBUS SIGBUS
|
|
|
d1bbc4 |
@@ -1070,7 +1072,12 @@ print_ehdr (Ebl *ebl, GElf_Ehdr *ehdr)
|
|
|
d1bbc4 |
fputs_unlocked (gettext (" Type: "), stdout);
|
|
|
d1bbc4 |
print_file_type (ehdr->e_type);
|
|
|
d1bbc4 |
|
|
|
d1bbc4 |
- printf (gettext (" Machine: %s\n"), ebl->name);
|
|
|
d1bbc4 |
+ const char *machine = dwelf_elf_e_machine_string (ehdr->e_machine);
|
|
|
d1bbc4 |
+ if (machine != NULL)
|
|
|
d1bbc4 |
+ printf (gettext (" Machine: %s\n"), machine);
|
|
|
d1bbc4 |
+ else
|
|
|
d1bbc4 |
+ printf (gettext (" Machine: <unknown>: 0x%x\n"),
|
|
|
d1bbc4 |
+ ehdr->e_machine);
|
|
|
d1bbc4 |
|
|
|
d1bbc4 |
printf (gettext (" Version: %d %s\n"),
|
|
|
d1bbc4 |
ehdr->e_version,
|
|
|
d1bbc4 |
diff --git a/tests/dwelf_elf_e_machine_string_test.c b/tests/dwelf_elf_e_machine_string_test.c
|
|
|
d1bbc4 |
new file mode 100644
|
|
|
d1bbc4 |
index 00000000..2f14d704
|
|
|
d1bbc4 |
--- /dev/null
|
|
|
d1bbc4 |
+++ b/tests/dwelf_elf_e_machine_string_test.c
|
|
|
d1bbc4 |
@@ -0,0 +1,66 @@
|
|
|
d1bbc4 |
+/* Test program for dwelf_elf_e_machine_string
|
|
|
d1bbc4 |
+ Copyright (C) 2019 Red Hat, Inc.
|
|
|
d1bbc4 |
+ This file is part of elfutils.
|
|
|
d1bbc4 |
+
|
|
|
d1bbc4 |
+ This file is free software; you can redistribute it and/or modify
|
|
|
d1bbc4 |
+ it under the terms of the GNU General Public License as published by
|
|
|
d1bbc4 |
+ the Free Software Foundation; either version 3 of the License, or
|
|
|
d1bbc4 |
+ (at your option) any later version.
|
|
|
d1bbc4 |
+
|
|
|
d1bbc4 |
+ elfutils is distributed in the hope that it will be useful, but
|
|
|
d1bbc4 |
+ WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
d1bbc4 |
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
d1bbc4 |
+ GNU General Public License for more details.
|
|
|
d1bbc4 |
+
|
|
|
d1bbc4 |
+ You should have received a copy of the GNU General Public License
|
|
|
d1bbc4 |
+ along with this program. If not, see <http://www.gnu.org/licenses/>. */
|
|
|
d1bbc4 |
+
|
|
|
d1bbc4 |
+#ifdef HAVE_CONFIG_H
|
|
|
d1bbc4 |
+# include <config.h>
|
|
|
d1bbc4 |
+#endif
|
|
|
d1bbc4 |
+
|
|
|
d1bbc4 |
+#include <assert.h>
|
|
|
d1bbc4 |
+#include <errno.h>
|
|
|
d1bbc4 |
+#include <inttypes.h>
|
|
|
d1bbc4 |
+#include <stdio.h>
|
|
|
d1bbc4 |
+#include <stdlib.h>
|
|
|
d1bbc4 |
+#include <limits.h>
|
|
|
d1bbc4 |
+#include <string.h>
|
|
|
d1bbc4 |
+#include <unistd.h>
|
|
|
d1bbc4 |
+
|
|
|
d1bbc4 |
+#include ELFUTILS_HEADER(dwelf)
|
|
|
d1bbc4 |
+
|
|
|
d1bbc4 |
+extern const char *dwelf_elf_e_machine_string (int machine);
|
|
|
d1bbc4 |
+
|
|
|
d1bbc4 |
+int
|
|
|
d1bbc4 |
+main (int argc, char **argv)
|
|
|
d1bbc4 |
+{
|
|
|
d1bbc4 |
+ int i;
|
|
|
d1bbc4 |
+ for (i = 1; i < argc; i++)
|
|
|
d1bbc4 |
+ {
|
|
|
d1bbc4 |
+ long val;
|
|
|
d1bbc4 |
+ int em;
|
|
|
d1bbc4 |
+ const char *machine;
|
|
|
d1bbc4 |
+
|
|
|
d1bbc4 |
+ if (strncmp ("0x", argv[i], 2) == 0)
|
|
|
d1bbc4 |
+ val = strtol (&argv[i][2], NULL, 16);
|
|
|
d1bbc4 |
+ else
|
|
|
d1bbc4 |
+ val = strtol (argv[i], NULL, 10);
|
|
|
d1bbc4 |
+
|
|
|
d1bbc4 |
+ if ((errno == ERANGE && (val == LONG_MAX || val == LONG_MIN))
|
|
|
d1bbc4 |
+ || (errno != 0 && val == 0))
|
|
|
d1bbc4 |
+ {
|
|
|
d1bbc4 |
+ perror ("strtol");
|
|
|
d1bbc4 |
+ exit (EXIT_FAILURE);
|
|
|
d1bbc4 |
+ }
|
|
|
d1bbc4 |
+
|
|
|
d1bbc4 |
+ em = val;
|
|
|
d1bbc4 |
+ assert (em == val);
|
|
|
d1bbc4 |
+
|
|
|
d1bbc4 |
+ machine = dwelf_elf_e_machine_string (em);
|
|
|
d1bbc4 |
+ printf ("0x%x %s\n", em, machine);
|
|
|
d1bbc4 |
+ assert (machine != NULL);
|
|
|
d1bbc4 |
+ }
|
|
|
d1bbc4 |
+
|
|
|
d1bbc4 |
+ return 0;
|
|
|
d1bbc4 |
+}
|
|
|
d1bbc4 |
diff --git a/tests/run-dwelf_elf_e_machine_string.sh b/tests/run-dwelf_elf_e_machine_string.sh
|
|
|
d1bbc4 |
new file mode 100755
|
|
|
d1bbc4 |
index 00000000..ba6d0e63
|
|
|
d1bbc4 |
--- /dev/null
|
|
|
d1bbc4 |
+++ b/tests/run-dwelf_elf_e_machine_string.sh
|
|
|
d1bbc4 |
@@ -0,0 +1,31 @@
|
|
|
d1bbc4 |
+#! /bin/bash
|
|
|
d1bbc4 |
+# Test to make sure all EM values in elf.h are recognized
|
|
|
d1bbc4 |
+# Copyright (C) 2019 Red Hat, Inc.
|
|
|
d1bbc4 |
+# This file is part of elfutils.
|
|
|
d1bbc4 |
+#
|
|
|
d1bbc4 |
+# This file is free software; you can redistribute it and/or modify
|
|
|
d1bbc4 |
+# it under the terms of the GNU General Public License as published by
|
|
|
d1bbc4 |
+# the Free Software Foundation; either version 3 of the License, or
|
|
|
d1bbc4 |
+# (at your option) any later version.
|
|
|
d1bbc4 |
+#
|
|
|
d1bbc4 |
+# elfutils is distributed in the hope that it will be useful, but
|
|
|
d1bbc4 |
+# WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
d1bbc4 |
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
d1bbc4 |
+# GNU General Public License for more details.
|
|
|
d1bbc4 |
+#
|
|
|
d1bbc4 |
+# You should have received a copy of the GNU General Public License
|
|
|
d1bbc4 |
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
d1bbc4 |
+
|
|
|
d1bbc4 |
+. $srcdir/test-subr.sh
|
|
|
d1bbc4 |
+
|
|
|
d1bbc4 |
+# Get all known EM values from elf.h and pass them through the
|
|
|
d1bbc4 |
+# preprocessor to get the numbers. Call dwelf_elf_e_machine_string on
|
|
|
d1bbc4 |
+# all of them.
|
|
|
d1bbc4 |
+EM_VALUES=$(grep ^\#define\ EM_ ${abs_srcdir}/../libelf/elf.h \
|
|
|
d1bbc4 |
+ | cut -f2 -d\ | cut -f1 | grep -v ^EM_NUM$ | xargs echo)
|
|
|
d1bbc4 |
+# echo "EM_VALUES: $EM_VALUES"
|
|
|
d1bbc4 |
+EM_NUMBERS=$((cat ${abs_srcdir}/../libelf/elf.h; echo "$EM_VALUES") \
|
|
|
d1bbc4 |
+ | gcc -E - | tail -1)
|
|
|
d1bbc4 |
+# echo "EM_NUMBERS: $EM_NUMBERS"
|
|
|
d1bbc4 |
+
|
|
|
d1bbc4 |
+testrun ${abs_top_builddir}/tests/dwelf_elf_e_machine_string $EM_NUMBERS
|
|
|
d1bbc4 |
--
|
|
|
d1bbc4 |
2.18.1
|
|
|
d1bbc4 |
|
|
|
d1bbc4 |
--- elfutils-0.176/src/Makefile.in 2019-02-15 16:46:53.000000000 +0100
|
|
|
d1bbc4 |
+++ elfutils-0.176.e_machine/src/Makefile.in 2019-08-06 18:47:51.447720727 +0200
|
|
|
d1bbc4 |
@@ -165,8 +165,9 @@
|
|
|
d1bbc4 |
ranlib_OBJECTS = ranlib.$(OBJEXT)
|
|
|
d1bbc4 |
ranlib_DEPENDENCIES = libar.a $(am__DEPENDENCIES_2) $(libeu) \
|
|
|
d1bbc4 |
$(am__DEPENDENCIES_1)
|
|
|
d1bbc4 |
-readelf_SOURCES = readelf.c
|
|
|
d1bbc4 |
-readelf_OBJECTS = readelf.$(OBJEXT)
|
|
|
d1bbc4 |
+am_readelf_OBJECTS = readelf.$(OBJEXT) \
|
|
|
d1bbc4 |
+ dwelf_elf_e_machine_string.$(OBJEXT)
|
|
|
d1bbc4 |
+readelf_OBJECTS = $(am_readelf_OBJECTS)
|
|
|
d1bbc4 |
readelf_DEPENDENCIES = $(am__DEPENDENCIES_3) $(libebl) \
|
|
|
d1bbc4 |
$(am__DEPENDENCIES_2) $(libeu) $(am__DEPENDENCIES_1)
|
|
|
d1bbc4 |
size_SOURCES = size.c
|
|
|
d1bbc4 |
@@ -235,14 +236,19 @@
|
|
|
d1bbc4 |
am__maybe_remake_depfiles = depfiles
|
|
|
d1bbc4 |
am__depfiles_remade = ./$(DEPDIR)/addr2line.Po ./$(DEPDIR)/ar.Po \
|
|
|
d1bbc4 |
./$(DEPDIR)/arlib-argp.Po ./$(DEPDIR)/arlib.Po \
|
|
|
d1bbc4 |
- ./$(DEPDIR)/arlib2.Po ./$(DEPDIR)/elfcmp.Po \
|
|
|
d1bbc4 |
- ./$(DEPDIR)/elfcompress.Po ./$(DEPDIR)/elflint.Po \
|
|
|
d1bbc4 |
- ./$(DEPDIR)/findtextrel.Po ./$(DEPDIR)/nm.Po \
|
|
|
d1bbc4 |
- ./$(DEPDIR)/objdump.Po ./$(DEPDIR)/ranlib.Po \
|
|
|
d1bbc4 |
+ ./$(DEPDIR)/arlib2.Po \
|
|
|
d1bbc4 |
+ ./$(DEPDIR)/dwelf_elf_e_machine_string.Po \
|
|
|
d1bbc4 |
+ ./$(DEPDIR)/elfcmp.Po ./$(DEPDIR)/elfcompress.Po \
|
|
|
d1bbc4 |
+ ./$(DEPDIR)/elflint.Po ./$(DEPDIR)/findtextrel.Po \
|
|
|
d1bbc4 |
+ ./$(DEPDIR)/nm.Po ./$(DEPDIR)/objdump.Po ./$(DEPDIR)/ranlib.Po \
|
|
|
d1bbc4 |
./$(DEPDIR)/readelf.Po ./$(DEPDIR)/size.Po \
|
|
|
d1bbc4 |
./$(DEPDIR)/stack.Po ./$(DEPDIR)/strings.Po \
|
|
|
d1bbc4 |
./$(DEPDIR)/strip.Po ./$(DEPDIR)/unstrip.Po
|
|
|
d1bbc4 |
am__mv = mv -f
|
|
|
d1bbc4 |
+AM_V_lt = $(am__v_lt_@AM_V@)
|
|
|
d1bbc4 |
+am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@)
|
|
|
d1bbc4 |
+am__v_lt_0 = --silent
|
|
|
d1bbc4 |
+am__v_lt_1 =
|
|
|
d1bbc4 |
COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
|
|
|
d1bbc4 |
$(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
|
|
|
d1bbc4 |
AM_V_CC = $(am__v_CC_@AM_V@)
|
|
|
d1bbc4 |
@@ -256,11 +262,11 @@
|
|
|
d1bbc4 |
am__v_CCLD_0 = @echo " CCLD " $@;
|
|
|
d1bbc4 |
am__v_CCLD_1 =
|
|
|
d1bbc4 |
SOURCES = $(libar_a_SOURCES) addr2line.c ar.c elfcmp.c elfcompress.c \
|
|
|
d1bbc4 |
- elflint.c findtextrel.c nm.c objdump.c ranlib.c readelf.c \
|
|
|
d1bbc4 |
- size.c stack.c strings.c strip.c unstrip.c
|
|
|
d1bbc4 |
+ elflint.c findtextrel.c nm.c objdump.c ranlib.c \
|
|
|
d1bbc4 |
+ $(readelf_SOURCES) size.c stack.c strings.c strip.c unstrip.c
|
|
|
d1bbc4 |
DIST_SOURCES = $(libar_a_SOURCES) addr2line.c ar.c elfcmp.c \
|
|
|
d1bbc4 |
elfcompress.c elflint.c findtextrel.c nm.c objdump.c ranlib.c \
|
|
|
d1bbc4 |
- readelf.c size.c stack.c strings.c strip.c unstrip.c
|
|
|
d1bbc4 |
+ $(readelf_SOURCES) size.c stack.c strings.c strip.c unstrip.c
|
|
|
d1bbc4 |
am__can_run_installinfo = \
|
|
|
d1bbc4 |
case $$AM_UPDATE_INFO_DIR in \
|
|
|
d1bbc4 |
n|no|NO) false;; \
|
|
|
d1bbc4 |
@@ -490,6 +496,7 @@
|
|
|
d1bbc4 |
ranlib_no_Wstack_usage = yes
|
|
|
d1bbc4 |
ar_no_Wstack_usage = yes
|
|
|
d1bbc4 |
unstrip_no_Wstack_usage = yes
|
|
|
d1bbc4 |
+readelf_SOURCES = readelf.c ../libdwelf/dwelf_elf_e_machine_string.c
|
|
|
d1bbc4 |
readelf_LDADD = $(libdw) $(libebl) $(libelf) $(libeu) $(argp_LDADD) -ldl
|
|
|
d1bbc4 |
nm_LDADD = $(libdw) $(libebl) $(libelf) $(libeu) $(argp_LDADD) -ldl \
|
|
|
d1bbc4 |
$(demanglelib)
|
|
|
d1bbc4 |
@@ -713,6 +720,7 @@
|
|
|
d1bbc4 |
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/arlib-argp.Po@am__quote@ # am--include-marker
|
|
|
d1bbc4 |
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/arlib.Po@am__quote@ # am--include-marker
|
|
|
d1bbc4 |
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/arlib2.Po@am__quote@ # am--include-marker
|
|
|
d1bbc4 |
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dwelf_elf_e_machine_string.Po@am__quote@ # am--include-marker
|
|
|
d1bbc4 |
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/elfcmp.Po@am__quote@ # am--include-marker
|
|
|
d1bbc4 |
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/elfcompress.Po@am__quote@ # am--include-marker
|
|
|
d1bbc4 |
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/elflint.Po@am__quote@ # am--include-marker
|
|
|
d1bbc4 |
@@ -747,6 +755,20 @@
|
|
|
d1bbc4 |
@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
|
|
d1bbc4 |
@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
|
|
|
d1bbc4 |
|
|
|
d1bbc4 |
+dwelf_elf_e_machine_string.o: ../libdwelf/dwelf_elf_e_machine_string.c
|
|
|
d1bbc4 |
+@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT dwelf_elf_e_machine_string.o -MD -MP -MF $(DEPDIR)/dwelf_elf_e_machine_string.Tpo -c -o dwelf_elf_e_machine_string.o `test -f '../libdwelf/dwelf_elf_e_machine_string.c' || echo '$(srcdir)/'`../libdwelf/dwelf_elf_e_machine_string.c
|
|
|
d1bbc4 |
+@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/dwelf_elf_e_machine_string.Tpo $(DEPDIR)/dwelf_elf_e_machine_string.Po
|
|
|
d1bbc4 |
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='../libdwelf/dwelf_elf_e_machine_string.c' object='dwelf_elf_e_machine_string.o' libtool=no @AMDEPBACKSLASH@
|
|
|
d1bbc4 |
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
|
|
d1bbc4 |
+@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o dwelf_elf_e_machine_string.o `test -f '../libdwelf/dwelf_elf_e_machine_string.c' || echo '$(srcdir)/'`../libdwelf/dwelf_elf_e_machine_string.c
|
|
|
d1bbc4 |
+
|
|
|
d1bbc4 |
+dwelf_elf_e_machine_string.obj: ../libdwelf/dwelf_elf_e_machine_string.c
|
|
|
d1bbc4 |
+@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT dwelf_elf_e_machine_string.obj -MD -MP -MF $(DEPDIR)/dwelf_elf_e_machine_string.Tpo -c -o dwelf_elf_e_machine_string.obj `if test -f '../libdwelf/dwelf_elf_e_machine_string.c'; then $(CYGPATH_W) '../libdwelf/dwelf_elf_e_machine_string.c'; else $(CYGPATH_W) '$(srcdir)/../libdwelf/dwelf_elf_e_machine_string.c'; fi`
|
|
|
d1bbc4 |
+@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/dwelf_elf_e_machine_string.Tpo $(DEPDIR)/dwelf_elf_e_machine_string.Po
|
|
|
d1bbc4 |
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='../libdwelf/dwelf_elf_e_machine_string.c' object='dwelf_elf_e_machine_string.obj' libtool=no @AMDEPBACKSLASH@
|
|
|
d1bbc4 |
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
|
|
d1bbc4 |
+@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o dwelf_elf_e_machine_string.obj `if test -f '../libdwelf/dwelf_elf_e_machine_string.c'; then $(CYGPATH_W) '../libdwelf/dwelf_elf_e_machine_string.c'; else $(CYGPATH_W) '$(srcdir)/../libdwelf/dwelf_elf_e_machine_string.c'; fi`
|
|
|
d1bbc4 |
+
|
|
|
d1bbc4 |
ID: $(am__tagged_files)
|
|
|
d1bbc4 |
$(am__define_uniq_tagged_files); mkid -fID $$unique
|
|
|
d1bbc4 |
tags: tags-am
|
|
|
d1bbc4 |
@@ -881,6 +903,7 @@
|
|
|
d1bbc4 |
-rm -f ./$(DEPDIR)/arlib-argp.Po
|
|
|
d1bbc4 |
-rm -f ./$(DEPDIR)/arlib.Po
|
|
|
d1bbc4 |
-rm -f ./$(DEPDIR)/arlib2.Po
|
|
|
d1bbc4 |
+ -rm -f ./$(DEPDIR)/dwelf_elf_e_machine_string.Po
|
|
|
d1bbc4 |
-rm -f ./$(DEPDIR)/elfcmp.Po
|
|
|
d1bbc4 |
-rm -f ./$(DEPDIR)/elfcompress.Po
|
|
|
d1bbc4 |
-rm -f ./$(DEPDIR)/elflint.Po
|
|
|
d1bbc4 |
@@ -944,6 +967,7 @@
|
|
|
d1bbc4 |
-rm -f ./$(DEPDIR)/arlib-argp.Po
|
|
|
d1bbc4 |
-rm -f ./$(DEPDIR)/arlib.Po
|
|
|
d1bbc4 |
-rm -f ./$(DEPDIR)/arlib2.Po
|
|
|
d1bbc4 |
+ -rm -f ./$(DEPDIR)/dwelf_elf_e_machine_string.Po
|
|
|
d1bbc4 |
-rm -f ./$(DEPDIR)/elfcmp.Po
|
|
|
d1bbc4 |
-rm -f ./$(DEPDIR)/elfcompress.Po
|
|
|
d1bbc4 |
-rm -f ./$(DEPDIR)/elflint.Po
|
|
|
d1bbc4 |
diff -ur elfutils-0.176/tests/Makefile.am elfutils-0.176.e_machine/tests/Makefile.am
|
|
|
d1bbc4 |
--- elfutils-0.176/tests/Makefile.am 2019-08-06 18:55:16.684204039 +0200
|
|
|
d1bbc4 |
+++ elfutils-0.176.e_machine/tests/Makefile.am 2019-08-06 18:46:41.154676407 +0200
|
|
|
d1bbc4 |
@@ -60,7 +60,8 @@
|
|
|
d1bbc4 |
fillfile dwarf_default_lower_bound dwarf-die-addr-die \
|
|
|
d1bbc4 |
get-units-invalid get-units-split attr-integrate-skel \
|
|
|
d1bbc4 |
all-dwarf-ranges unit-info next_cfi \
|
|
|
d1bbc4 |
- elfcopy addsections xlate_notes elfrdwrnop
|
|
|
d1bbc4 |
+ elfcopy addsections xlate_notes elfrdwrnop \
|
|
|
d1bbc4 |
+ dwelf_elf_e_machine_string
|
|
|
d1bbc4 |
|
|
|
d1bbc4 |
asm_TESTS = asm-tst1 asm-tst2 asm-tst3 asm-tst4 asm-tst5 \
|
|
|
d1bbc4 |
asm-tst6 asm-tst7 asm-tst8 asm-tst9
|
|
|
d1bbc4 |
@@ -160,7 +161,8 @@
|
|
|
d1bbc4 |
run-reverse-sections.sh run-reverse-sections-self.sh \
|
|
|
d1bbc4 |
run-copyadd-sections.sh run-copymany-sections.sh \
|
|
|
d1bbc4 |
run-typeiter-many.sh run-strip-test-many.sh \
|
|
|
d1bbc4 |
- run-strip-version.sh run-xlate-note.sh
|
|
|
d1bbc4 |
+ run-strip-version.sh run-xlate-note.sh \
|
|
|
d1bbc4 |
+ run-dwelf_elf_e_machine_string.sh
|
|
|
d1bbc4 |
|
|
|
d1bbc4 |
if !BIARCH
|
|
|
d1bbc4 |
export ELFUTILS_DISABLE_BIARCH = 1
|
|
|
d1bbc4 |
@@ -426,7 +428,8 @@
|
|
|
d1bbc4 |
testfile-debug-rel-ppc64-z.o.bz2 \
|
|
|
d1bbc4 |
testfile-debug-rel-ppc64.o.bz2 \
|
|
|
d1bbc4 |
run-strip-version.sh testfile-version.bz2 \
|
|
|
d1bbc4 |
- run-xlate-note.sh
|
|
|
d1bbc4 |
+ run-xlate-note.sh \
|
|
|
d1bbc4 |
+ run-dwelf_elf_e_machine_string.sh
|
|
|
d1bbc4 |
|
|
|
d1bbc4 |
if USE_VALGRIND
|
|
|
d1bbc4 |
valgrind_cmd='valgrind -q --leak-check=full --error-exitcode=1'
|
|
|
d1bbc4 |
@@ -599,6 +602,10 @@
|
|
|
d1bbc4 |
xlate_notes_LDADD = $(libelf)
|
|
|
d1bbc4 |
elfrdwrnop_LDADD = $(libelf)
|
|
|
d1bbc4 |
|
|
|
d1bbc4 |
+dwelf_elf_e_machine_string_SOURCES = dwelf_elf_e_machine_string_test.c \
|
|
|
d1bbc4 |
+ ../libdwelf/dwelf_elf_e_machine_string.c
|
|
|
d1bbc4 |
+dwelf_elf_e_machine_string_LDADD = $(libelf) $(libdw)
|
|
|
d1bbc4 |
+
|
|
|
d1bbc4 |
# We want to test the libelf header against the system elf.h header.
|
|
|
d1bbc4 |
# Don't include any -I CPPFLAGS. Except when we install our own elf.h.
|
|
|
d1bbc4 |
if !INSTALL_ELFH
|
|
|
d1bbc4 |
diff -ur elfutils-0.176/tests/Makefile.in elfutils-0.176.e_machine/tests/Makefile.in
|
|
|
d1bbc4 |
--- elfutils-0.176/tests/Makefile.in 2019-08-06 18:55:16.689203989 +0200
|
|
|
d1bbc4 |
+++ elfutils-0.176.e_machine/tests/Makefile.in 2019-08-06 18:47:51.876714894 +0200
|
|
|
d1bbc4 |
@@ -132,7 +132,8 @@
|
|
|
d1bbc4 |
attr-integrate-skel$(EXEEXT) all-dwarf-ranges$(EXEEXT) \
|
|
|
d1bbc4 |
unit-info$(EXEEXT) next_cfi$(EXEEXT) elfcopy$(EXEEXT) \
|
|
|
d1bbc4 |
addsections$(EXEEXT) xlate_notes$(EXEEXT) elfrdwrnop$(EXEEXT) \
|
|
|
d1bbc4 |
- $(am__EXEEXT_1) $(am__EXEEXT_2) $(am__EXEEXT_4)
|
|
|
d1bbc4 |
+ dwelf_elf_e_machine_string$(EXEEXT) $(am__EXEEXT_1) \
|
|
|
d1bbc4 |
+ $(am__EXEEXT_2) $(am__EXEEXT_4)
|
|
|
d1bbc4 |
@BIARCH_TRUE@am__append_5 = backtrace-child-biarch
|
|
|
d1bbc4 |
TESTS = run-arextract.sh run-arsymtest.sh run-ar.sh newfile$(EXEEXT) \
|
|
|
d1bbc4 |
test-nlist$(EXEEXT) update1$(EXEEXT) update2$(EXEEXT) \
|
|
|
d1bbc4 |
@@ -213,7 +214,8 @@
|
|
|
d1bbc4 |
run-reverse-sections-self.sh run-copyadd-sections.sh \
|
|
|
d1bbc4 |
run-copymany-sections.sh run-typeiter-many.sh \
|
|
|
d1bbc4 |
run-strip-test-many.sh run-strip-version.sh run-xlate-note.sh \
|
|
|
d1bbc4 |
- $(am__EXEEXT_2) $(am__append_8) $(am__EXEEXT_5)
|
|
|
d1bbc4 |
+ run-dwelf_elf_e_machine_string.sh $(am__EXEEXT_2) \
|
|
|
d1bbc4 |
+ $(am__append_8) $(am__EXEEXT_5)
|
|
|
d1bbc4 |
@STANDALONE_FALSE@am__append_6 = msg_tst system-elf-libelf-test
|
|
|
d1bbc4 |
@STANDALONE_FALSE@am__append_7 = msg_tst system-elf-libelf-test
|
|
|
d1bbc4 |
@LZMA_TRUE@am__append_8 = run-readelf-s.sh run-dwflsyms.sh
|
|
|
d1bbc4 |
@@ -389,6 +391,13 @@
|
|
|
d1bbc4 |
dwarfcfi_SOURCES = dwarfcfi.c
|
|
|
d1bbc4 |
dwarfcfi_OBJECTS = dwarfcfi.$(OBJEXT)
|
|
|
d1bbc4 |
dwarfcfi_DEPENDENCIES = $(am__DEPENDENCIES_4) $(am__DEPENDENCIES_2)
|
|
|
d1bbc4 |
+am_dwelf_elf_e_machine_string_OBJECTS = \
|
|
|
d1bbc4 |
+ dwelf_elf_e_machine_string_test.$(OBJEXT) \
|
|
|
d1bbc4 |
+ dwelf_elf_e_machine_string.$(OBJEXT)
|
|
|
d1bbc4 |
+dwelf_elf_e_machine_string_OBJECTS = \
|
|
|
d1bbc4 |
+ $(am_dwelf_elf_e_machine_string_OBJECTS)
|
|
|
d1bbc4 |
+dwelf_elf_e_machine_string_DEPENDENCIES = $(am__DEPENDENCIES_2) \
|
|
|
d1bbc4 |
+ $(am__DEPENDENCIES_4)
|
|
|
d1bbc4 |
dwelfgnucompressed_SOURCES = dwelfgnucompressed.c
|
|
|
d1bbc4 |
dwelfgnucompressed_OBJECTS = dwelfgnucompressed.$(OBJEXT)
|
|
|
d1bbc4 |
dwelfgnucompressed_DEPENDENCIES = $(am__DEPENDENCIES_2) \
|
|
|
d1bbc4 |
@@ -653,7 +662,10 @@
|
|
|
d1bbc4 |
./$(DEPDIR)/dwarf-getmacros.Po ./$(DEPDIR)/dwarf-getstring.Po \
|
|
|
d1bbc4 |
./$(DEPDIR)/dwarf-ranges.Po \
|
|
|
d1bbc4 |
./$(DEPDIR)/dwarf_default_lower_bound.Po \
|
|
|
d1bbc4 |
- ./$(DEPDIR)/dwarfcfi.Po ./$(DEPDIR)/dwelfgnucompressed.Po \
|
|
|
d1bbc4 |
+ ./$(DEPDIR)/dwarfcfi.Po \
|
|
|
d1bbc4 |
+ ./$(DEPDIR)/dwelf_elf_e_machine_string.Po \
|
|
|
d1bbc4 |
+ ./$(DEPDIR)/dwelf_elf_e_machine_string_test.Po \
|
|
|
d1bbc4 |
+ ./$(DEPDIR)/dwelfgnucompressed.Po \
|
|
|
d1bbc4 |
./$(DEPDIR)/dwfl-addr-sect.Po \
|
|
|
d1bbc4 |
./$(DEPDIR)/dwfl-bug-addr-overflow.Po \
|
|
|
d1bbc4 |
./$(DEPDIR)/dwfl-bug-fd-leak.Po \
|
|
|
d1bbc4 |
@@ -717,15 +729,15 @@
|
|
|
d1bbc4 |
backtrace-dwarf.c buildid.c debugaltlink.c debuglink.c \
|
|
|
d1bbc4 |
deleted.c deleted-lib.c dwarf-die-addr-die.c dwarf-getmacros.c \
|
|
|
d1bbc4 |
dwarf-getstring.c dwarf-ranges.c dwarf_default_lower_bound.c \
|
|
|
d1bbc4 |
- dwarfcfi.c dwelfgnucompressed.c dwfl-addr-sect.c \
|
|
|
d1bbc4 |
- dwfl-bug-addr-overflow.c dwfl-bug-fd-leak.c \
|
|
|
d1bbc4 |
- dwfl-bug-getmodules.c dwfl-bug-report.c dwfl-proc-attach.c \
|
|
|
d1bbc4 |
- dwfl-report-elf-align.c dwfllines.c dwflmodtest.c dwflsyms.c \
|
|
|
d1bbc4 |
- early-offscn.c ecp.c elfcopy.c elfgetchdr.c elfgetzdata.c \
|
|
|
d1bbc4 |
- elfputzdata.c elfrdwrnop.c elfshphehdr.c elfstrmerge.c \
|
|
|
d1bbc4 |
- elfstrtab.c emptyfile.c fillfile.c find-prologues.c \
|
|
|
d1bbc4 |
- funcretval.c funcscopes.c get-aranges.c get-files.c \
|
|
|
d1bbc4 |
- get-lines.c get-pubnames.c get-units-invalid.c \
|
|
|
d1bbc4 |
+ dwarfcfi.c $(dwelf_elf_e_machine_string_SOURCES) \
|
|
|
d1bbc4 |
+ dwelfgnucompressed.c dwfl-addr-sect.c dwfl-bug-addr-overflow.c \
|
|
|
d1bbc4 |
+ dwfl-bug-fd-leak.c dwfl-bug-getmodules.c dwfl-bug-report.c \
|
|
|
d1bbc4 |
+ dwfl-proc-attach.c dwfl-report-elf-align.c dwfllines.c \
|
|
|
d1bbc4 |
+ dwflmodtest.c dwflsyms.c early-offscn.c ecp.c elfcopy.c \
|
|
|
d1bbc4 |
+ elfgetchdr.c elfgetzdata.c elfputzdata.c elfrdwrnop.c \
|
|
|
d1bbc4 |
+ elfshphehdr.c elfstrmerge.c elfstrtab.c emptyfile.c fillfile.c \
|
|
|
d1bbc4 |
+ find-prologues.c funcretval.c funcscopes.c get-aranges.c \
|
|
|
d1bbc4 |
+ get-files.c get-lines.c get-pubnames.c get-units-invalid.c \
|
|
|
d1bbc4 |
get-units-split.c getsrc_die.c hash.c line2addr.c \
|
|
|
d1bbc4 |
low_high_pc.c msg_tst.c newdata.c newfile.c newscn.c \
|
|
|
d1bbc4 |
next-files.c next-lines.c next_cfi.c peel_type.c rdwrmmap.c \
|
|
|
d1bbc4 |
@@ -744,15 +756,15 @@
|
|
|
d1bbc4 |
backtrace-dwarf.c buildid.c debugaltlink.c debuglink.c \
|
|
|
d1bbc4 |
deleted.c deleted-lib.c dwarf-die-addr-die.c dwarf-getmacros.c \
|
|
|
d1bbc4 |
dwarf-getstring.c dwarf-ranges.c dwarf_default_lower_bound.c \
|
|
|
d1bbc4 |
- dwarfcfi.c dwelfgnucompressed.c dwfl-addr-sect.c \
|
|
|
d1bbc4 |
- dwfl-bug-addr-overflow.c dwfl-bug-fd-leak.c \
|
|
|
d1bbc4 |
- dwfl-bug-getmodules.c dwfl-bug-report.c dwfl-proc-attach.c \
|
|
|
d1bbc4 |
- dwfl-report-elf-align.c dwfllines.c dwflmodtest.c dwflsyms.c \
|
|
|
d1bbc4 |
- early-offscn.c ecp.c elfcopy.c elfgetchdr.c elfgetzdata.c \
|
|
|
d1bbc4 |
- elfputzdata.c elfrdwrnop.c elfshphehdr.c elfstrmerge.c \
|
|
|
d1bbc4 |
- elfstrtab.c emptyfile.c fillfile.c find-prologues.c \
|
|
|
d1bbc4 |
- funcretval.c funcscopes.c get-aranges.c get-files.c \
|
|
|
d1bbc4 |
- get-lines.c get-pubnames.c get-units-invalid.c \
|
|
|
d1bbc4 |
+ dwarfcfi.c $(dwelf_elf_e_machine_string_SOURCES) \
|
|
|
d1bbc4 |
+ dwelfgnucompressed.c dwfl-addr-sect.c dwfl-bug-addr-overflow.c \
|
|
|
d1bbc4 |
+ dwfl-bug-fd-leak.c dwfl-bug-getmodules.c dwfl-bug-report.c \
|
|
|
d1bbc4 |
+ dwfl-proc-attach.c dwfl-report-elf-align.c dwfllines.c \
|
|
|
d1bbc4 |
+ dwflmodtest.c dwflsyms.c early-offscn.c ecp.c elfcopy.c \
|
|
|
d1bbc4 |
+ elfgetchdr.c elfgetzdata.c elfputzdata.c elfrdwrnop.c \
|
|
|
d1bbc4 |
+ elfshphehdr.c elfstrmerge.c elfstrtab.c emptyfile.c fillfile.c \
|
|
|
d1bbc4 |
+ find-prologues.c funcretval.c funcscopes.c get-aranges.c \
|
|
|
d1bbc4 |
+ get-files.c get-lines.c get-pubnames.c get-units-invalid.c \
|
|
|
d1bbc4 |
get-units-split.c getsrc_die.c hash.c line2addr.c \
|
|
|
d1bbc4 |
low_high_pc.c msg_tst.c newdata.c newfile.c newscn.c \
|
|
|
d1bbc4 |
next-files.c next-lines.c next_cfi.c peel_type.c rdwrmmap.c \
|
|
|
d1bbc4 |
@@ -1416,7 +1428,8 @@
|
|
|
d1bbc4 |
testfile-debug-rel-ppc64-z.o.bz2 \
|
|
|
d1bbc4 |
testfile-debug-rel-ppc64.o.bz2 \
|
|
|
d1bbc4 |
run-strip-version.sh testfile-version.bz2 \
|
|
|
d1bbc4 |
- run-xlate-note.sh
|
|
|
d1bbc4 |
+ run-xlate-note.sh \
|
|
|
d1bbc4 |
+ run-dwelf_elf_e_machine_string.sh
|
|
|
d1bbc4 |
|
|
|
d1bbc4 |
@USE_VALGRIND_TRUE@valgrind_cmd = 'valgrind -q --leak-check=full --error-exitcode=1'
|
|
|
d1bbc4 |
installed_TESTS_ENVIRONMENT = libdir=$(DESTDIR)$(libdir); \
|
|
|
d1bbc4 |
@@ -1572,6 +1585,10 @@
|
|
|
d1bbc4 |
addsections_LDADD = $(libelf)
|
|
|
d1bbc4 |
xlate_notes_LDADD = $(libelf)
|
|
|
d1bbc4 |
elfrdwrnop_LDADD = $(libelf)
|
|
|
d1bbc4 |
+dwelf_elf_e_machine_string_SOURCES = dwelf_elf_e_machine_string_test.c \
|
|
|
d1bbc4 |
+ ../libdwelf/dwelf_elf_e_machine_string.c
|
|
|
d1bbc4 |
+
|
|
|
d1bbc4 |
+dwelf_elf_e_machine_string_LDADD = $(libelf) $(libdw)
|
|
|
d1bbc4 |
|
|
|
d1bbc4 |
# We want to test the libelf header against the system elf.h header.
|
|
|
d1bbc4 |
# Don't include any -I CPPFLAGS. Except when we install our own elf.h.
|
|
|
d1bbc4 |
@@ -1760,6 +1777,10 @@
|
|
|
d1bbc4 |
@rm -f dwarfcfi$(EXEEXT)
|
|
|
d1bbc4 |
$(AM_V_CCLD)$(LINK) $(dwarfcfi_OBJECTS) $(dwarfcfi_LDADD) $(LIBS)
|
|
|
d1bbc4 |
|
|
|
d1bbc4 |
+dwelf_elf_e_machine_string$(EXEEXT): $(dwelf_elf_e_machine_string_OBJECTS) $(dwelf_elf_e_machine_string_DEPENDENCIES) $(EXTRA_dwelf_elf_e_machine_string_DEPENDENCIES)
|
|
|
d1bbc4 |
+ @rm -f dwelf_elf_e_machine_string$(EXEEXT)
|
|
|
d1bbc4 |
+ $(AM_V_CCLD)$(LINK) $(dwelf_elf_e_machine_string_OBJECTS) $(dwelf_elf_e_machine_string_LDADD) $(LIBS)
|
|
|
d1bbc4 |
+
|
|
|
d1bbc4 |
dwelfgnucompressed$(EXEEXT): $(dwelfgnucompressed_OBJECTS) $(dwelfgnucompressed_DEPENDENCIES) $(EXTRA_dwelfgnucompressed_DEPENDENCIES)
|
|
|
d1bbc4 |
@rm -f dwelfgnucompressed$(EXEEXT)
|
|
|
d1bbc4 |
$(AM_V_CCLD)$(LINK) $(dwelfgnucompressed_OBJECTS) $(dwelfgnucompressed_LDADD) $(LIBS)
|
|
|
d1bbc4 |
@@ -2079,6 +2100,8 @@
|
|
|
d1bbc4 |
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dwarf-ranges.Po@am__quote@ # am--include-marker
|
|
|
d1bbc4 |
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dwarf_default_lower_bound.Po@am__quote@ # am--include-marker
|
|
|
d1bbc4 |
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dwarfcfi.Po@am__quote@ # am--include-marker
|
|
|
d1bbc4 |
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dwelf_elf_e_machine_string.Po@am__quote@ # am--include-marker
|
|
|
d1bbc4 |
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dwelf_elf_e_machine_string_test.Po@am__quote@ # am--include-marker
|
|
|
d1bbc4 |
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dwelfgnucompressed.Po@am__quote@ # am--include-marker
|
|
|
d1bbc4 |
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dwfl-addr-sect.Po@am__quote@ # am--include-marker
|
|
|
d1bbc4 |
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dwfl-bug-addr-overflow.Po@am__quote@ # am--include-marker
|
|
|
d1bbc4 |
@@ -2211,6 +2234,20 @@
|
|
|
d1bbc4 |
@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
|
|
d1bbc4 |
@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(deleted_lib_so_CFLAGS) $(CFLAGS) -c -o deleted_lib_so-deleted-lib.obj `if test -f 'deleted-lib.c'; then $(CYGPATH_W) 'deleted-lib.c'; else $(CYGPATH_W) '$(srcdir)/deleted-lib.c'; fi`
|
|
|
d1bbc4 |
|
|
|
d1bbc4 |
+dwelf_elf_e_machine_string.o: ../libdwelf/dwelf_elf_e_machine_string.c
|
|
|
d1bbc4 |
+@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT dwelf_elf_e_machine_string.o -MD -MP -MF $(DEPDIR)/dwelf_elf_e_machine_string.Tpo -c -o dwelf_elf_e_machine_string.o `test -f '../libdwelf/dwelf_elf_e_machine_string.c' || echo '$(srcdir)/'`../libdwelf/dwelf_elf_e_machine_string.c
|
|
|
d1bbc4 |
+@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/dwelf_elf_e_machine_string.Tpo $(DEPDIR)/dwelf_elf_e_machine_string.Po
|
|
|
d1bbc4 |
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='../libdwelf/dwelf_elf_e_machine_string.c' object='dwelf_elf_e_machine_string.o' libtool=no @AMDEPBACKSLASH@
|
|
|
d1bbc4 |
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
|
|
d1bbc4 |
+@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o dwelf_elf_e_machine_string.o `test -f '../libdwelf/dwelf_elf_e_machine_string.c' || echo '$(srcdir)/'`../libdwelf/dwelf_elf_e_machine_string.c
|
|
|
d1bbc4 |
+
|
|
|
d1bbc4 |
+dwelf_elf_e_machine_string.obj: ../libdwelf/dwelf_elf_e_machine_string.c
|
|
|
d1bbc4 |
+@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT dwelf_elf_e_machine_string.obj -MD -MP -MF $(DEPDIR)/dwelf_elf_e_machine_string.Tpo -c -o dwelf_elf_e_machine_string.obj `if test -f '../libdwelf/dwelf_elf_e_machine_string.c'; then $(CYGPATH_W) '../libdwelf/dwelf_elf_e_machine_string.c'; else $(CYGPATH_W) '$(srcdir)/../libdwelf/dwelf_elf_e_machine_string.c'; fi`
|
|
|
d1bbc4 |
+@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/dwelf_elf_e_machine_string.Tpo $(DEPDIR)/dwelf_elf_e_machine_string.Po
|
|
|
d1bbc4 |
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='../libdwelf/dwelf_elf_e_machine_string.c' object='dwelf_elf_e_machine_string.obj' libtool=no @AMDEPBACKSLASH@
|
|
|
d1bbc4 |
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
|
|
|
d1bbc4 |
+@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o dwelf_elf_e_machine_string.obj `if test -f '../libdwelf/dwelf_elf_e_machine_string.c'; then $(CYGPATH_W) '../libdwelf/dwelf_elf_e_machine_string.c'; else $(CYGPATH_W) '$(srcdir)/../libdwelf/dwelf_elf_e_machine_string.c'; fi`
|
|
|
d1bbc4 |
+
|
|
|
d1bbc4 |
system_elf_libelf_test-system-elf-libelf-test.o: system-elf-libelf-test.c
|
|
|
d1bbc4 |
@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(system_elf_libelf_test_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT system_elf_libelf_test-system-elf-libelf-test.o -MD -MP -MF $(DEPDIR)/system_elf_libelf_test-system-elf-libelf-test.Tpo -c -o system_elf_libelf_test-system-elf-libelf-test.o `test -f 'system-elf-libelf-test.c' || echo '$(srcdir)/'`system-elf-libelf-test.c
|
|
|
d1bbc4 |
@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/system_elf_libelf_test-system-elf-libelf-test.Tpo $(DEPDIR)/system_elf_libelf_test-system-elf-libelf-test.Po
|
|
|
d1bbc4 |
@@ -3776,6 +3813,13 @@
|
|
|
d1bbc4 |
--log-file $$b.log --trs-file $$b.trs \
|
|
|
d1bbc4 |
$(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
|
|
|
d1bbc4 |
"$$tst" $(AM_TESTS_FD_REDIRECT)
|
|
|
d1bbc4 |
+run-dwelf_elf_e_machine_string.sh.log: run-dwelf_elf_e_machine_string.sh
|
|
|
d1bbc4 |
+ @p='run-dwelf_elf_e_machine_string.sh'; \
|
|
|
d1bbc4 |
+ b='run-dwelf_elf_e_machine_string.sh'; \
|
|
|
d1bbc4 |
+ $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
|
|
|
d1bbc4 |
+ --log-file $$b.log --trs-file $$b.trs \
|
|
|
d1bbc4 |
+ $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \
|
|
|
d1bbc4 |
+ "$$tst" $(AM_TESTS_FD_REDIRECT)
|
|
|
d1bbc4 |
msg_tst.log: msg_tst$(EXEEXT)
|
|
|
d1bbc4 |
@p='msg_tst$(EXEEXT)'; \
|
|
|
d1bbc4 |
b='msg_tst'; \
|
|
|
d1bbc4 |
@@ -4005,6 +4049,8 @@
|
|
|
d1bbc4 |
-rm -f ./$(DEPDIR)/dwarf-ranges.Po
|
|
|
d1bbc4 |
-rm -f ./$(DEPDIR)/dwarf_default_lower_bound.Po
|
|
|
d1bbc4 |
-rm -f ./$(DEPDIR)/dwarfcfi.Po
|
|
|
d1bbc4 |
+ -rm -f ./$(DEPDIR)/dwelf_elf_e_machine_string.Po
|
|
|
d1bbc4 |
+ -rm -f ./$(DEPDIR)/dwelf_elf_e_machine_string_test.Po
|
|
|
d1bbc4 |
-rm -f ./$(DEPDIR)/dwelfgnucompressed.Po
|
|
|
d1bbc4 |
-rm -f ./$(DEPDIR)/dwfl-addr-sect.Po
|
|
|
d1bbc4 |
-rm -f ./$(DEPDIR)/dwfl-bug-addr-overflow.Po
|
|
|
d1bbc4 |
@@ -4156,6 +4202,8 @@
|
|
|
d1bbc4 |
-rm -f ./$(DEPDIR)/dwarf-ranges.Po
|
|
|
d1bbc4 |
-rm -f ./$(DEPDIR)/dwarf_default_lower_bound.Po
|
|
|
d1bbc4 |
-rm -f ./$(DEPDIR)/dwarfcfi.Po
|
|
|
d1bbc4 |
+ -rm -f ./$(DEPDIR)/dwelf_elf_e_machine_string.Po
|
|
|
d1bbc4 |
+ -rm -f ./$(DEPDIR)/dwelf_elf_e_machine_string_test.Po
|
|
|
d1bbc4 |
-rm -f ./$(DEPDIR)/dwelfgnucompressed.Po
|
|
|
d1bbc4 |
-rm -f ./$(DEPDIR)/dwfl-addr-sect.Po
|
|
|
d1bbc4 |
-rm -f ./$(DEPDIR)/dwfl-bug-addr-overflow.Po
|