diff options
author | Alan Modra <amodra@gmail.com> | 2021-01-19 13:19:18 +1030 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2021-01-19 13:27:13 +1030 |
commit | a75a6a416477915b7d236537c9170ced3064df11 (patch) | |
tree | 92bed393136f693661b7672ec519bae990da8eb8 /gold/powerpc.cc | |
parent | 0e7620dcdc4568c0a7b501c522a4b565bdc83461 (diff) | |
download | gdb-a75a6a416477915b7d236537c9170ced3064df11.zip gdb-a75a6a416477915b7d236537c9170ced3064df11.tar.gz gdb-a75a6a416477915b7d236537c9170ced3064df11.tar.bz2 |
[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.
Diffstat (limited to 'gold/powerpc.cc')
-rw-r--r-- | gold/powerpc.cc | 1 |
1 files changed, 0 insertions, 1 deletions
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<size, big_endian>::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 |