diff options
author | Jeff Law <jlaw@ventanamicro.com> | 2023-12-02 22:45:48 -0700 |
---|---|---|
committer | Jeff Law <jlaw@ventanamicro.com> | 2023-12-02 22:45:48 -0700 |
commit | 4cef6daf40f4aefd748245a720955d4e52d1a81e (patch) | |
tree | a42db80a3eb23addc3e65bb135cf0e1b51937975 /libgcc | |
parent | 3da08ffa6df2634092a6292b045568fc326e28e6 (diff) | |
download | gcc-4cef6daf40f4aefd748245a720955d4e52d1a81e.zip gcc-4cef6daf40f4aefd748245a720955d4e52d1a81e.tar.gz gcc-4cef6daf40f4aefd748245a720955d4e52d1a81e.tar.bz2 |
[committed] Fix build of libgcc on ports using FDPIC
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.
Diffstat (limited to 'libgcc')
-rw-r--r-- | libgcc/unwind-pe.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libgcc/unwind-pe.h b/libgcc/unwind-pe.h index 3f98c93..d714a27 100644 --- a/libgcc/unwind-pe.h +++ b/libgcc/unwind-pe.h @@ -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. */ |