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.
This commit is contained in:
Alan Modra
2022-09-25 12:07:36 +09:30
parent f3bc603561
commit c21736aed1

View File

@@ -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