From owner-svn-src-all@FreeBSD.ORG Wed Apr 3 16:31:31 2013 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 56995FCD; Wed, 3 Apr 2013 16:31:31 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) by mx1.freebsd.org (Postfix) with ESMTP id 304D7E9E; Wed, 3 Apr 2013 16:31:31 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.6/8.14.6) with ESMTP id r33GVVN0095853; Wed, 3 Apr 2013 16:31:31 GMT (envelope-from dim@svn.freebsd.org) Received: (from dim@localhost) by svn.freebsd.org (8.14.6/8.14.5/Submit) id r33GVUQc095851; Wed, 3 Apr 2013 16:31:30 GMT (envelope-from dim@svn.freebsd.org) Message-Id: <201304031631.r33GVUQc095851@svn.freebsd.org> From: Dimitry Andric Date: Wed, 3 Apr 2013 16:31:30 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-7@freebsd.org Subject: svn commit: r249059 - in stable/7/contrib/binutils: bfd binutils X-SVN-Group: stable-7 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.14 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: Wed, 03 Apr 2013 16:31:31 -0000 Author: dim Date: Wed Apr 3 16:31:30 2013 New Revision: 249059 URL: http://svnweb.freebsd.org/changeset/base/249059 Log: MFC r248802: Similar to r239870 and r239872, teach the other binutils tools about the DW_FORM_flag_present dwarf attribute, so they do not print errors or warnings on files that contain it. (This attribute can be emitted by newer versions of clang and gcc.) Modified: stable/7/contrib/binutils/bfd/dwarf2.c stable/7/contrib/binutils/binutils/readelf.c Directory Properties: stable/7/contrib/binutils/ (props changed) Modified: stable/7/contrib/binutils/bfd/dwarf2.c ============================================================================== --- stable/7/contrib/binutils/bfd/dwarf2.c Wed Apr 3 16:26:58 2013 (r249058) +++ stable/7/contrib/binutils/bfd/dwarf2.c Wed Apr 3 16:31:30 2013 (r249059) @@ -617,6 +617,9 @@ read_attribute_value (struct attribute * attr->u.val = read_1_byte (abfd, info_ptr); info_ptr += 1; break; + case DW_FORM_flag_present: + attr->u.val = 1; + break; case DW_FORM_sdata: attr->u.sval = read_signed_leb128 (abfd, info_ptr, &bytes_read); info_ptr += bytes_read; Modified: stable/7/contrib/binutils/binutils/readelf.c ============================================================================== --- stable/7/contrib/binutils/binutils/readelf.c Wed Apr 3 16:26:58 2013 (r249058) +++ stable/7/contrib/binutils/binutils/readelf.c Wed Apr 3 16:31:30 2013 (r249059) @@ -6997,6 +6997,7 @@ get_FORM_name (unsigned long form) case DW_FORM_ref8: return "DW_FORM_ref8"; case DW_FORM_ref_udata: return "DW_FORM_ref_udata"; case DW_FORM_indirect: return "DW_FORM_indirect"; + case DW_FORM_flag_present: return "DW_FORM_flag_present"; default: { static char buffer[100]; @@ -7888,6 +7889,10 @@ read_and_display_attr_value (unsigned lo data += offset_size; break; + case DW_FORM_flag_present: + uvalue = 1; + break; + case DW_FORM_ref1: case DW_FORM_flag: case DW_FORM_data1: @@ -7943,6 +7948,7 @@ read_and_display_attr_value (unsigned lo printf (" %#lx", uvalue); break; + case DW_FORM_flag_present: case DW_FORM_flag: case DW_FORM_data1: case DW_FORM_data2: