[GOLD] powerpc assertion failure
authorAlan Modra <amodra@gmail.com>
Tue, 19 Jan 2021 02:49:18 +0000 (13:19 +1030)
committerAlan Modra <amodra@gmail.com>
Tue, 19 Jan 2021 02:57:13 +0000 (13:27 +1030)
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
gold/powerpc.cc

index a1d3d3004f0bf58a88299bb7c73404203eddff2f..64f7b78a00b993738bb8755775b8bd19fbd5a46e 100644 (file)
@@ -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
index e2966ef096b0043cd40dc2f38f41f0f798abcdb7..ec6f950eb21bfeea742d4cb929bdff2689e5b5e4 100644 (file)
@@ -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
This page took 0.027724 seconds and 4 git commands to generate.