]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
[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 03:00:22 +0000 (13:30 +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.

(cherry picked from commit a75a6a416477915b7d236537c9170ced3064df11)

gold/ChangeLog
gold/powerpc.cc

index 8fbf514956ecef8f504ddabe8074ea2721cd0f7f..09f70f766da9a25bcbfd155a60df6d826ba6a9b7 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-18  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