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/ChangeLog | 6 ++++++ gold/powerpc.cc | 1 - 2 files changed, 6 insertions(+), 1 deletion(-) (limited to 'gold') diff --git a/gold/ChangeLog b/gold/ChangeLog index a1d3d30..64f7b78 100644 --- a/gold/ChangeLog +++ b/gold/ChangeLog @@ -1,3 +1,9 @@ +2021-01-19 Alan Modra + + PR 27203 + * powerpc.cc (do_plt_fde_location): Remove doing_static_link + assertion. + 2021-01-17 H.J. Lu * testsuite/ifuncmain6pie.c: Remove non-JUMP_SLOT relocations 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