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 | |
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.
-rw-r--r-- | gold/ChangeLog | 6 | ||||
-rw-r--r-- | gold/powerpc.cc | 1 |
2 files changed, 6 insertions, 1 deletions
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 <amodra@gmail.com> + + PR 27203 + * powerpc.cc (do_plt_fde_location): Remove doing_static_link + assertion. + 2021-01-17 H.J. Lu <hongjiu.lu@intel.com> * 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<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 |