]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
[committed] Fix build of libgcc on ports using FDPIC
authorJeff Law <jlaw@ventanamicro.com>
Sun, 3 Dec 2023 05:45:48 +0000 (22:45 -0700)
committerJeff Law <jlaw@ventanamicro.com>
Sun, 3 Dec 2023 05:45:48 +0000 (22:45 -0700)
read_encoded_value_with_base has an ifdef'd code path conditional on __FDPIC__
which was calling _Unwind_gnu_Find_got without a prototype.  This naturally
caused various build failures.

This adds a suitable prototype.

Pushed to the trunk.

libgcc

* unwind-pe.h (_Unwind_gnu_Find_got): Add prototype.

libgcc/unwind-pe.h

index 3f98c93589a80698896b92a89f9586f0afc8549d..d714a27a935edcb3611d64c08e17ffff20586b12 100644 (file)
@@ -173,6 +173,8 @@ read_sleb128 (const unsigned char *p, _sleb128_t *val)
   return p;
 }
 
+extern _Unwind_Ptr _Unwind_gnu_Find_got (_Unwind_Ptr);
+
 /* Load an encoded value from memory at P.  The value is returned in VAL;
    The function returns P incremented past the value.  BASE is as given
    by base_of_encoded_value for this encoding in the appropriate context.  */