From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1062) id 41D123858CDA; Mon, 26 Sep 2022 05:25:07 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 41D123858CDA Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Alan Modra To: bfd-cvs@sourceware.org Subject: [binutils-gdb] PR29542, PowerPC gold internal error in get_output_view, X-Act-Checkin: binutils-gdb X-Git-Author: Alan Modra X-Git-Refname: refs/heads/master X-Git-Oldrev: f3bc603561c993cdb8811c361ec5e9e484628cdc X-Git-Newrev: c21736aed1d4877e090df60362413669dbdc391d Message-Id: <20220926052507.41D123858CDA@sourceware.org> Date: Mon, 26 Sep 2022 05:25:07 +0000 (GMT) X-BeenThere: binutils-cvs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Binutils-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Sep 2022 05:25:07 -0000 https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3Dc21736aed1d4= 877e090df60362413669dbdc391d commit c21736aed1d4877e090df60362413669dbdc391d Author: Alan Modra Date: Sun Sep 25 12:07:36 2022 +0930 PR29542, PowerPC gold internal error in get_output_view, =20 We were attempting to set a BSS style section contents. =20 PR 29542 * powerpc.cc (Output_data_plt_powerpc::do_write): Don't set .pl= t, .iplt or .lplt section contents when position independent. Diff: --- gold/powerpc.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gold/powerpc.cc b/gold/powerpc.cc index 22c0462326d..b950869d0b6 100644 --- a/gold/powerpc.cc +++ b/gold/powerpc.cc @@ -4338,7 +4338,8 @@ template void Output_data_plt_powerpc::do_write(Output_file* of) { - if (!this->sym_ents_.empty()) + if (!this->sym_ents_.empty() + && !parameters->options().output_is_position_independent()) { const section_size_type offset =3D this->offset(); const section_size_type oview_size