From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6388 invoked by alias); 2 Jan 2017 13:31:52 -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 5838 invoked by uid 89); 2 Jan 2017 13:31:51 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy=sh_info, *sec, asection, indx X-HELO: mail-pg0-f65.google.com Received: from mail-pg0-f65.google.com (HELO mail-pg0-f65.google.com) (74.125.83.65) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 02 Jan 2017 13:31:50 +0000 Received: by mail-pg0-f65.google.com with SMTP id b1so30481690pgc.1 for ; Mon, 02 Jan 2017 05:31:50 -0800 (PST) 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:subject:message-id:mime-version :content-disposition:user-agent; bh=1wp5BUgno+EIKVAN3rn42RDtIcaTHxcWJZ1h+DwbZTM=; b=Od6heIkL88yw89olHrCSaSeAF2jjBt4LeVOkB2CQNxZ88y0Mu9smtvF/lgmvR+4nSt Rd/IPsvtpOdQYbqIJkiAlMsfZoTigFsOjlNAMtJ2Xwi+E3LPBW7mIc8nbTKkKRafb44f 3SvI0H7wD7sx0ooj1/6IzFMLLnw2jhWmMLJFSn4A8+uLLTb5HkoZoEkP6xnLmqJe449A BOP1NfCJAApdBT/7wH01LSLrf6Nbn9ySiP6kyldN6gRsLnqKah2IiVvXeGAfp8YXmD6D vIf90pXBrf32/VfuS7YkBc/5I6TldNp4mWZ2OnDHq847eZc69SPSWj7fuUyvNA88sGDx Ik/A== X-Gm-Message-State: AIkVDXLyN8rE4kzIhkMD6cYhxbcibhiCk0lIVBCJUiuY2o6quefEWckbCcSrQ5UoAvbyPQ== X-Received: by 10.98.212.87 with SMTP id u23mr53413725pfl.35.1483363908615; Mon, 02 Jan 2017 05:31:48 -0800 (PST) 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 s2sm132587626pfi.10.2017.01.02.05.31.47 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 02 Jan 2017 05:31:48 -0800 (PST) Received: by bubble.grove.modra.org (Postfix, from userid 1000) id ED525C1A41; Tue, 3 Jan 2017 00:01:43 +1030 (ACDT) Date: Mon, 02 Jan 2017 13:31:00 -0000 From: Alan Modra To: binutils@sourceware.org Subject: Set SHF_INFO_LINK for .PARISC.unwind Message-ID: <20170102133143.GL29355@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-01/txt/msg00014.txt.bz2 This flag should be set for any section header using sh_info to point to another section. Fixes a readelf warning about an unexpected value in info field, resulting in FAIL: Build warn libbar.so * elf-hppa.h (elf_hppa_fake_sections): Set SHF_INFO_LINK for .PARISC.unwind section. diff --git a/bfd/elf-hppa.h b/bfd/elf-hppa.h index 3871980..b1c959e 100644 --- a/bfd/elf-hppa.h +++ b/bfd/elf-hppa.h @@ -1117,6 +1117,7 @@ elf_hppa_fake_sections (bfd *abfd, Elf_Internal_Shdr *hdr, asection *sec) if (asec->name && strcmp (asec->name, ".text") == 0) { hdr->sh_info = indx; + hdr->sh_flags |= SHF_INFO_LINK; break; } } -- Alan Modra Australia Development Lab, IBM