public inbox for binutils-cvs@sourceware.org
 help / color / mirror / Atom feed
* [binutils-gdb] PR29542, PowerPC gold internal error in get_output_view,
@ 2022-09-26  5:25 Alan Modra
  0 siblings, 0 replies; only message in thread
From: Alan Modra @ 2022-09-26  5:25 UTC (permalink / raw)
  To: bfd-cvs

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=c21736aed1d4877e090df60362413669dbdc391d

commit c21736aed1d4877e090df60362413669dbdc391d
Author: Alan Modra <amodra@gmail.com>
Date:   Sun Sep 25 12:07:36 2022 +0930

    PR29542, PowerPC gold internal error in get_output_view,
    
    We were attempting to set a BSS style section contents.
    
            PR 29542
            * powerpc.cc (Output_data_plt_powerpc::do_write): Don't set .plt,
            .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<int size, bool big_endian>
 void
 Output_data_plt_powerpc<size, big_endian>::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 = this->offset();
       const section_size_type oview_size

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-09-26  5:25 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-26  5:25 [binutils-gdb] PR29542, PowerPC gold internal error in get_output_view, Alan Modra

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).