From a75a6a416477915b7d236537c9170ced3064df11 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Tue, 19 Jan 2021 13:19:18 +1030 Subject: [GOLD] powerpc assertion failure A testcase with only ifuncs can result in no plt section (ifunc plt entries might instead be in iplt), which means we can get to this code without a static link. PR 27203 * powerpc.cc (do_plt_fde_location): Remove doing_static_link assertion. --- gold/powerpc.cc | 1 - 1 file changed, 1 deletion(-) (limited to 'gold/powerpc.cc') diff --git a/gold/powerpc.cc b/gold/powerpc.cc index e2966ef..ec6f950 100644 --- a/gold/powerpc.cc +++ b/gold/powerpc.cc @@ -3946,7 +3946,6 @@ Target_powerpc::do_plt_fde_location(const Output_data* plt, // See Output_data_glink::do_write() for glink contents. if (len == 0) { - gold_assert(parameters->doing_static_link()); // Static linking may need stubs, to support ifunc and long // branches. We need to create an output section for // .eh_frame early in the link process, to have a place to -- cgit v1.1