From owner-svn-src-all@freebsd.org Fri May 20 18:54:43 2016 Return-Path: Delivered-To: svn-src-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id BBD23B43B7D; Fri, 20 May 2016 18:54:43 +0000 (UTC) (envelope-from emaste@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 7BCFD1339; Fri, 20 May 2016 18:54:43 +0000 (UTC) (envelope-from emaste@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id u4KIsgBG011822; Fri, 20 May 2016 18:54:42 GMT (envelope-from emaste@FreeBSD.org) Received: (from emaste@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id u4KIsgq3011818; Fri, 20 May 2016 18:54:42 GMT (envelope-from emaste@FreeBSD.org) Message-Id: <201605201854.u4KIsgq3011818@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: emaste set sender to emaste@FreeBSD.org using -f From: Ed Maste Date: Fri, 20 May 2016 18:54:42 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r300320 - in head/contrib/elftoolchain: elfdump libdwarf libelftc readelf X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 May 2016 18:54:43 -0000 Author: emaste Date: Fri May 20 18:54:42 2016 New Revision: 300320 URL: https://svnweb.freebsd.org/changeset/base/300320 Log: elftoolchain: backwards compatability for EM_IAMCU definition It is not provided by sys/elf_common.h on older stable/10. Modified: head/contrib/elftoolchain/elfdump/elfdump.c head/contrib/elftoolchain/libdwarf/libdwarf_reloc.c head/contrib/elftoolchain/libelftc/elftc_reloc_type_str.c head/contrib/elftoolchain/readelf/readelf.c Modified: head/contrib/elftoolchain/elfdump/elfdump.c ============================================================================== --- head/contrib/elftoolchain/elfdump/elfdump.c Fri May 20 18:01:53 2016 (r300319) +++ head/contrib/elftoolchain/elfdump/elfdump.c Fri May 20 18:54:42 2016 (r300320) @@ -52,6 +52,11 @@ ELFTC_VCSID("$Id: elfdump.c 3474 2016-05-17 20:44:53Z emaste $"); +/* Backwards compatability for older FreeBSD releases. */ +#ifndef EM_IAMCU +#define EM_IAMCU 6 +#endif + #if defined(ELFTC_NEED_ELF_NOTE_DEFINITION) #include "native-elf-format.h" #if ELFTC_CLASS == ELFCLASS32 Modified: head/contrib/elftoolchain/libdwarf/libdwarf_reloc.c ============================================================================== --- head/contrib/elftoolchain/libdwarf/libdwarf_reloc.c Fri May 20 18:01:53 2016 (r300319) +++ head/contrib/elftoolchain/libdwarf/libdwarf_reloc.c Fri May 20 18:54:42 2016 (r300320) @@ -28,6 +28,11 @@ ELFTC_VCSID("$Id: libdwarf_reloc.c 3198 2015-05-14 18:36:19Z emaste $"); +/* Backwards compatability for older FreeBSD releases. */ +#ifndef EM_IAMCU +#define EM_IAMCU 6 +#endif + Dwarf_Unsigned _dwarf_get_reloc_type(Dwarf_P_Debug dbg, int is64) { Modified: head/contrib/elftoolchain/libelftc/elftc_reloc_type_str.c ============================================================================== --- head/contrib/elftoolchain/libelftc/elftc_reloc_type_str.c Fri May 20 18:01:53 2016 (r300319) +++ head/contrib/elftoolchain/libelftc/elftc_reloc_type_str.c Fri May 20 18:54:42 2016 (r300320) @@ -31,6 +31,11 @@ #include #include +/* Backwards compatability for older FreeBSD releases. */ +#ifndef EM_IAMCU +#define EM_IAMCU 6 +#endif + const char * elftc_reloc_type_str(unsigned int mach, unsigned int type) { Modified: head/contrib/elftoolchain/readelf/readelf.c ============================================================================== --- head/contrib/elftoolchain/readelf/readelf.c Fri May 20 18:01:53 2016 (r300319) +++ head/contrib/elftoolchain/readelf/readelf.c Fri May 20 18:54:42 2016 (r300320) @@ -50,6 +50,9 @@ ELFTC_VCSID("$Id: readelf.c 3469 2016-05-15 23:16:09Z emaste $"); /* Backwards compatability for older FreeBSD releases. */ +#ifndef EM_IAMCU +#define EM_IAMCU 6 +#endif #ifndef STB_GNU_UNIQUE #define STB_GNU_UNIQUE 10 #endif