From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 39301 invoked by alias); 10 Apr 2017 04:15:48 -0000 Mailing-List: contact binutils-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: binutils-owner@sourceware.org Received: (qmail 39204 invoked by uid 89); 10 Apr 2017 04:15:44 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.2 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy=1065, 804 X-HELO: mail-pf0-f170.google.com Received: from mail-pf0-f170.google.com (HELO mail-pf0-f170.google.com) (209.85.192.170) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 10 Apr 2017 04:15:37 +0000 Received: by mail-pf0-f170.google.com with SMTP id s16so27172771pfs.0 for ; Sun, 09 Apr 2017 21:15:35 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:user-agent; bh=B0EiMGUvXtI9lacOf+w6En+c2vfjsLfI697Jj3diAmo=; b=NsO4559Uup73zRzuLaXFenBQvaZAlnhwafmrfqdyX7jj1WPCD/5JRPtnrtrccYJMSZ xMcGyUb9w+4upxsMdpN1g4Y+BOiV2+bBQXu1xiykzWwEo6GKludeu8fzOKQ6BL1G/Nue ZE5WJp7nZOdbOVUGprIDnKO4SDUZkjBk29nyody77wG5BNgIFxmDQVaJIzx+lT9ydIzl hD6E8uVlPz5ky1fq+BZdBLhkVantznGvDU25Ag15SRbsEnoWNBuUDhj1hpFkUUt3r3C7 XM6+J9x3P5FK4UJZnK+tozKfpsJNUaUVw2xc4OnZv19LcziY7/VIB5oPCypQYqRLkp0R maEg== X-Gm-Message-State: AFeK/H3kZWQoEDo20UCDKCaoS7TzcpOb8FWtJ3KlNC1JpCgSuOtRxu/jK3PPCBks6hpqXg== X-Received: by 10.98.198.78 with SMTP id m75mr53196200pfg.160.1491797734422; Sun, 09 Apr 2017 21:15:34 -0700 (PDT) Received: from bubble.grove.modra.org (CPE-58-160-71-80.tyqh2.lon.bigpond.net.au. [58.160.71.80]) by smtp.gmail.com with ESMTPSA id 25sm9426554pfh.19.2017.04.09.21.15.33 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 09 Apr 2017 21:15:33 -0700 (PDT) Received: by bubble.grove.modra.org (Postfix, from userid 1000) id 8D2CFC7673; Mon, 10 Apr 2017 13:45:29 +0930 (ACST) Date: Mon, 10 Apr 2017 04:15:00 -0000 From: Alan Modra To: "H.J. Lu" Cc: binutils@sourceware.org Subject: binutils testsuite pr21231b Message-ID: <20170410041529.GB16711@bubble.grove.modra.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.24 (2015-08-30) X-IsSubscribed: yes X-SW-Source: 2017-04/txt/msg00090.txt.bz2 HJ, This test is failing on x86_64-linux with --enable-targets=all. ../gas/as-new ~/src/binutils-gdb/binutils/testsuite/binutils-all/i386/pr21231b.s --32 -o tmpdir/i386temp.o ./objcopy tmpdir/i386temp.o tmpdir/i386copy.o ./objcopy: warning: tmpdir/i386temp.o: unsupported GNU_PROPERTY_TYPE (5) type: 0xc0000000 ./objcopy: warning: tmpdir/i386temp.o: unsupported GNU_PROPERTY_TYPE (5) type: 0xc0000001 echo $? 0 The problem is that the warning is being emitted during object recognition. #0 _bfd_elf_parse_gnu_properties (abfd=abfd@entry=0xc91f40, note=note@entry=0x7fffffffd620) at /home/alan/src/binutils-gdb/bfd/elf-properties.c:171 #1 0x0000000000446bed in elfobj_grok_gnu_note (note=0x7fffffffd620, abfd=0xc91f40) at /home/alan/src/binutils-gdb/bfd/elf.c:9757 #2 elf_parse_notes (abfd=abfd@entry=0xc91f40, buf=0xca29e0 "\004", size=60, offset=52) at /home/alan/src/binutils-gdb/bfd/elf.c:10893 #3 0x000000000044a8a8 in _bfd_elf_make_section_from_shdr (abfd=0xc91f40, hdr=0xc92e68, name=, shindex=) at /home/alan/src/binutils-gdb/bfd/elf.c:1065 #4 0x00000000004491f1 in bfd_section_from_shdr (abfd=abfd@entry=0xc91f40, shindex=shindex@entry=4) at /home/alan/src/binutils-gdb/bfd/elf.c:2503 #5 0x000000000048312b in bfd_elf32_object_p (abfd=0xc91f40) at /home/alan/src/binutils-gdb/bfd/elfcode.h:804 #6 0x000000000042e7af in bfd_check_format_matches (abfd=abfd@entry=0xc91f40, format=format@entry=bfd_object, matching=matching@entry=0x7fffffffda98) at /home/alan/src/binutils-gdb/bfd/format.c:311 At this point, we are checking p abfd->xvec $2 = (const struct bfd_target *) 0x826b00 That's the generic ELF target, with no bed->parse_gnu_properties. You can't emit errors/warnings in _bfd_elf_parse_gnu_properties except for those that will occur for all targets. Please fix. -- Alan Modra Australia Development Lab, IBM