libgcc_s: expose __divmoddi4 on i386

GCC has used this for some time (since 7.0) and apparently we were
getting away with using the hidden symbol, but when linking with
--no-undefined-version we get an error unless it's properly exported.
(For anyone who wonders at the assymetry, __udivmoddi4 is indeed much
older and was introduced with GCC 3.0.)

MFC after:	3 days
Reviewed by:	dim
Differential Revision:	https://reviews.freebsd.org/D44878
This commit is contained in:
Brooks Davis 2024-04-19 22:52:42 +01:00
parent 0b9e358580
commit 44e89340fe
2 changed files with 9 additions and 0 deletions

View File

@ -221,3 +221,9 @@ GCC_4.6.0 {
__unordtf2;
};
#endif
GCC_7.0.0 {
#ifdef __i386__
__divmoddi4;
#endif
};

View File

@ -31,3 +31,6 @@ GCC_4.3.0 {
GCC_4.6.0 {
} GCC_4.3.0;
GCC_7.0.0 {
} GCC_4.6.0;