From: Alexandre Julliard <julliard@winehq.org> Using the GCC Runtime Library exception, similar to what glibc is doing for files that get linked directly into the application. --- libs/winecrt0/arm64ec.c | 8 ++++++++ libs/winecrt0/crt_dllmain.c | 8 ++++++++ libs/winecrt0/crt_fltused.c | 8 ++++++++ libs/winecrt0/debug.c | 8 ++++++++ libs/winecrt0/delay_load.c | 8 ++++++++ libs/winecrt0/dll_canunload.c | 8 ++++++++ libs/winecrt0/dll_entry.c | 8 ++++++++ libs/winecrt0/dll_main.c | 8 ++++++++ libs/winecrt0/dll_register.c | 8 ++++++++ libs/winecrt0/dll_soinit.c | 8 ++++++++ libs/winecrt0/dll_version.c | 8 ++++++++ libs/winecrt0/exception.c | 8 ++++++++ libs/winecrt0/exe16_entry.c | 8 ++++++++ libs/winecrt0/exe_entry.c | 8 ++++++++ libs/winecrt0/exe_main.c | 8 ++++++++ libs/winecrt0/exe_wentry.c | 8 ++++++++ libs/winecrt0/exe_wmain.c | 8 ++++++++ libs/winecrt0/gcc_ctors.c | 8 ++++++++ libs/winecrt0/register.c | 8 ++++++++ libs/winecrt0/setjmp.c | 8 ++++++++ libs/winecrt0/stub.c | 8 ++++++++ libs/winecrt0/tls.c | 8 ++++++++ libs/winecrt0/unix_lib.c | 8 ++++++++ 23 files changed, 184 insertions(+) diff --git a/libs/winecrt0/arm64ec.c b/libs/winecrt0/arm64ec.c index a3af06b380d..1930a27d627 100644 --- a/libs/winecrt0/arm64ec.c +++ b/libs/winecrt0/arm64ec.c @@ -8,6 +8,14 @@ * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * + * In addition to the permissions in the GNU Lesser General Public License, + * the authors give you unlimited permission to link the compiled version + * of this file with other programs, and to distribute those programs + * without any restriction coming from the use of this file. (The GNU + * Lesser General Public License restrictions do apply in other respects; + * for example, they cover modification of the file, and distribution when + * not linked into another program.) + * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU diff --git a/libs/winecrt0/crt_dllmain.c b/libs/winecrt0/crt_dllmain.c index 02dccdec511..d14607fb0bb 100644 --- a/libs/winecrt0/crt_dllmain.c +++ b/libs/winecrt0/crt_dllmain.c @@ -8,6 +8,14 @@ * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * + * In addition to the permissions in the GNU Lesser General Public License, + * the authors give you unlimited permission to link the compiled version + * of this file with other programs, and to distribute those programs + * without any restriction coming from the use of this file. (The GNU + * Lesser General Public License restrictions do apply in other respects; + * for example, they cover modification of the file, and distribution when + * not linked into another program.) + * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU diff --git a/libs/winecrt0/crt_fltused.c b/libs/winecrt0/crt_fltused.c index 75abdfb3fa5..0803e785e76 100644 --- a/libs/winecrt0/crt_fltused.c +++ b/libs/winecrt0/crt_fltused.c @@ -6,6 +6,14 @@ * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * + * In addition to the permissions in the GNU Lesser General Public License, + * the authors give you unlimited permission to link the compiled version + * of this file with other programs, and to distribute those programs + * without any restriction coming from the use of this file. (The GNU + * Lesser General Public License restrictions do apply in other respects; + * for example, they cover modification of the file, and distribution when + * not linked into another program.) + * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU diff --git a/libs/winecrt0/debug.c b/libs/winecrt0/debug.c index a7bf864aee5..5f865711256 100644 --- a/libs/winecrt0/debug.c +++ b/libs/winecrt0/debug.c @@ -8,6 +8,14 @@ * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * + * In addition to the permissions in the GNU Lesser General Public License, + * the authors give you unlimited permission to link the compiled version + * of this file with other programs, and to distribute those programs + * without any restriction coming from the use of this file. (The GNU + * Lesser General Public License restrictions do apply in other respects; + * for example, they cover modification of the file, and distribution when + * not linked into another program.) + * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU diff --git a/libs/winecrt0/delay_load.c b/libs/winecrt0/delay_load.c index 3044fa4431f..bbd23a33898 100644 --- a/libs/winecrt0/delay_load.c +++ b/libs/winecrt0/delay_load.c @@ -8,6 +8,14 @@ * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * + * In addition to the permissions in the GNU Lesser General Public License, + * the authors give you unlimited permission to link the compiled version + * of this file with other programs, and to distribute those programs + * without any restriction coming from the use of this file. (The GNU + * Lesser General Public License restrictions do apply in other respects; + * for example, they cover modification of the file, and distribution when + * not linked into another program.) + * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU diff --git a/libs/winecrt0/dll_canunload.c b/libs/winecrt0/dll_canunload.c index 08a60c347e1..9ad7aa2ab0a 100644 --- a/libs/winecrt0/dll_canunload.c +++ b/libs/winecrt0/dll_canunload.c @@ -8,6 +8,14 @@ * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * + * In addition to the permissions in the GNU Lesser General Public License, + * the authors give you unlimited permission to link the compiled version + * of this file with other programs, and to distribute those programs + * without any restriction coming from the use of this file. (The GNU + * Lesser General Public License restrictions do apply in other respects; + * for example, they cover modification of the file, and distribution when + * not linked into another program.) + * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU diff --git a/libs/winecrt0/dll_entry.c b/libs/winecrt0/dll_entry.c index b5b6e2e6159..c6c8efa4a4e 100644 --- a/libs/winecrt0/dll_entry.c +++ b/libs/winecrt0/dll_entry.c @@ -8,6 +8,14 @@ * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * + * In addition to the permissions in the GNU Lesser General Public License, + * the authors give you unlimited permission to link the compiled version + * of this file with other programs, and to distribute those programs + * without any restriction coming from the use of this file. (The GNU + * Lesser General Public License restrictions do apply in other respects; + * for example, they cover modification of the file, and distribution when + * not linked into another program.) + * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU diff --git a/libs/winecrt0/dll_main.c b/libs/winecrt0/dll_main.c index a177438584c..3b2acab975c 100644 --- a/libs/winecrt0/dll_main.c +++ b/libs/winecrt0/dll_main.c @@ -8,6 +8,14 @@ * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * + * In addition to the permissions in the GNU Lesser General Public License, + * the authors give you unlimited permission to link the compiled version + * of this file with other programs, and to distribute those programs + * without any restriction coming from the use of this file. (The GNU + * Lesser General Public License restrictions do apply in other respects; + * for example, they cover modification of the file, and distribution when + * not linked into another program.) + * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU diff --git a/libs/winecrt0/dll_register.c b/libs/winecrt0/dll_register.c index 0adb1d716d9..c73a3ddd87e 100644 --- a/libs/winecrt0/dll_register.c +++ b/libs/winecrt0/dll_register.c @@ -8,6 +8,14 @@ * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * + * In addition to the permissions in the GNU Lesser General Public License, + * the authors give you unlimited permission to link the compiled version + * of this file with other programs, and to distribute those programs + * without any restriction coming from the use of this file. (The GNU + * Lesser General Public License restrictions do apply in other respects; + * for example, they cover modification of the file, and distribution when + * not linked into another program.) + * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU diff --git a/libs/winecrt0/dll_soinit.c b/libs/winecrt0/dll_soinit.c index 77f5db3d284..88d00d1fd3b 100644 --- a/libs/winecrt0/dll_soinit.c +++ b/libs/winecrt0/dll_soinit.c @@ -8,6 +8,14 @@ * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * + * In addition to the permissions in the GNU Lesser General Public License, + * the authors give you unlimited permission to link the compiled version + * of this file with other programs, and to distribute those programs + * without any restriction coming from the use of this file. (The GNU + * Lesser General Public License restrictions do apply in other respects; + * for example, they cover modification of the file, and distribution when + * not linked into another program.) + * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU diff --git a/libs/winecrt0/dll_version.c b/libs/winecrt0/dll_version.c index a96976e5417..a90385aa88c 100644 --- a/libs/winecrt0/dll_version.c +++ b/libs/winecrt0/dll_version.c @@ -8,6 +8,14 @@ * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * + * In addition to the permissions in the GNU Lesser General Public License, + * the authors give you unlimited permission to link the compiled version + * of this file with other programs, and to distribute those programs + * without any restriction coming from the use of this file. (The GNU + * Lesser General Public License restrictions do apply in other respects; + * for example, they cover modification of the file, and distribution when + * not linked into another program.) + * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU diff --git a/libs/winecrt0/exception.c b/libs/winecrt0/exception.c index 193981c583f..4127312c64f 100644 --- a/libs/winecrt0/exception.c +++ b/libs/winecrt0/exception.c @@ -8,6 +8,14 @@ * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * + * In addition to the permissions in the GNU Lesser General Public License, + * the authors give you unlimited permission to link the compiled version + * of this file with other programs, and to distribute those programs + * without any restriction coming from the use of this file. (The GNU + * Lesser General Public License restrictions do apply in other respects; + * for example, they cover modification of the file, and distribution when + * not linked into another program.) + * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU diff --git a/libs/winecrt0/exe16_entry.c b/libs/winecrt0/exe16_entry.c index 02992ab049e..a1db3a2707a 100644 --- a/libs/winecrt0/exe16_entry.c +++ b/libs/winecrt0/exe16_entry.c @@ -8,6 +8,14 @@ * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * + * In addition to the permissions in the GNU Lesser General Public License, + * the authors give you unlimited permission to link the compiled version + * of this file with other programs, and to distribute those programs + * without any restriction coming from the use of this file. (The GNU + * Lesser General Public License restrictions do apply in other respects; + * for example, they cover modification of the file, and distribution when + * not linked into another program.) + * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU diff --git a/libs/winecrt0/exe_entry.c b/libs/winecrt0/exe_entry.c index def7b57c38d..f54081b0c9a 100644 --- a/libs/winecrt0/exe_entry.c +++ b/libs/winecrt0/exe_entry.c @@ -8,6 +8,14 @@ * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * + * In addition to the permissions in the GNU Lesser General Public License, + * the authors give you unlimited permission to link the compiled version + * of this file with other programs, and to distribute those programs + * without any restriction coming from the use of this file. (The GNU + * Lesser General Public License restrictions do apply in other respects; + * for example, they cover modification of the file, and distribution when + * not linked into another program.) + * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU diff --git a/libs/winecrt0/exe_main.c b/libs/winecrt0/exe_main.c index 2465c83bdf0..591a29dab3e 100644 --- a/libs/winecrt0/exe_main.c +++ b/libs/winecrt0/exe_main.c @@ -8,6 +8,14 @@ * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * + * In addition to the permissions in the GNU Lesser General Public License, + * the authors give you unlimited permission to link the compiled version + * of this file with other programs, and to distribute those programs + * without any restriction coming from the use of this file. (The GNU + * Lesser General Public License restrictions do apply in other respects; + * for example, they cover modification of the file, and distribution when + * not linked into another program.) + * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU diff --git a/libs/winecrt0/exe_wentry.c b/libs/winecrt0/exe_wentry.c index 303e9e5a69b..9c1aa46c86c 100644 --- a/libs/winecrt0/exe_wentry.c +++ b/libs/winecrt0/exe_wentry.c @@ -8,6 +8,14 @@ * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * + * In addition to the permissions in the GNU Lesser General Public License, + * the authors give you unlimited permission to link the compiled version + * of this file with other programs, and to distribute those programs + * without any restriction coming from the use of this file. (The GNU + * Lesser General Public License restrictions do apply in other respects; + * for example, they cover modification of the file, and distribution when + * not linked into another program.) + * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU diff --git a/libs/winecrt0/exe_wmain.c b/libs/winecrt0/exe_wmain.c index 4a567661ea5..2f08ddaeaa9 100644 --- a/libs/winecrt0/exe_wmain.c +++ b/libs/winecrt0/exe_wmain.c @@ -8,6 +8,14 @@ * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * + * In addition to the permissions in the GNU Lesser General Public License, + * the authors give you unlimited permission to link the compiled version + * of this file with other programs, and to distribute those programs + * without any restriction coming from the use of this file. (The GNU + * Lesser General Public License restrictions do apply in other respects; + * for example, they cover modification of the file, and distribution when + * not linked into another program.) + * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU diff --git a/libs/winecrt0/gcc_ctors.c b/libs/winecrt0/gcc_ctors.c index 21b7778d38c..ed0ab9d3335 100644 --- a/libs/winecrt0/gcc_ctors.c +++ b/libs/winecrt0/gcc_ctors.c @@ -6,6 +6,14 @@ * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * + * In addition to the permissions in the GNU Lesser General Public License, + * the authors give you unlimited permission to link the compiled version + * of this file with other programs, and to distribute those programs + * without any restriction coming from the use of this file. (The GNU + * Lesser General Public License restrictions do apply in other respects; + * for example, they cover modification of the file, and distribution when + * not linked into another program.) + * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU diff --git a/libs/winecrt0/register.c b/libs/winecrt0/register.c index 757e424fed5..73a5e726ff7 100644 --- a/libs/winecrt0/register.c +++ b/libs/winecrt0/register.c @@ -8,6 +8,14 @@ * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * + * In addition to the permissions in the GNU Lesser General Public License, + * the authors give you unlimited permission to link the compiled version + * of this file with other programs, and to distribute those programs + * without any restriction coming from the use of this file. (The GNU + * Lesser General Public License restrictions do apply in other respects; + * for example, they cover modification of the file, and distribution when + * not linked into another program.) + * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU diff --git a/libs/winecrt0/setjmp.c b/libs/winecrt0/setjmp.c index a79deebf05e..d534f08984f 100644 --- a/libs/winecrt0/setjmp.c +++ b/libs/winecrt0/setjmp.c @@ -8,6 +8,14 @@ * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * + * In addition to the permissions in the GNU Lesser General Public License, + * the authors give you unlimited permission to link the compiled version + * of this file with other programs, and to distribute those programs + * without any restriction coming from the use of this file. (The GNU + * Lesser General Public License restrictions do apply in other respects; + * for example, they cover modification of the file, and distribution when + * not linked into another program.) + * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU diff --git a/libs/winecrt0/stub.c b/libs/winecrt0/stub.c index c1198561886..2cc7f508a87 100644 --- a/libs/winecrt0/stub.c +++ b/libs/winecrt0/stub.c @@ -8,6 +8,14 @@ * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * + * In addition to the permissions in the GNU Lesser General Public License, + * the authors give you unlimited permission to link the compiled version + * of this file with other programs, and to distribute those programs + * without any restriction coming from the use of this file. (The GNU + * Lesser General Public License restrictions do apply in other respects; + * for example, they cover modification of the file, and distribution when + * not linked into another program.) + * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU diff --git a/libs/winecrt0/tls.c b/libs/winecrt0/tls.c index 67f52e0e5da..bc40a9e1018 100644 --- a/libs/winecrt0/tls.c +++ b/libs/winecrt0/tls.c @@ -6,6 +6,14 @@ * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * + * In addition to the permissions in the GNU Lesser General Public License, + * the authors give you unlimited permission to link the compiled version + * of this file with other programs, and to distribute those programs + * without any restriction coming from the use of this file. (The GNU + * Lesser General Public License restrictions do apply in other respects; + * for example, they cover modification of the file, and distribution when + * not linked into another program.) + * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU diff --git a/libs/winecrt0/unix_lib.c b/libs/winecrt0/unix_lib.c index 037a763e53b..32d8884492e 100644 --- a/libs/winecrt0/unix_lib.c +++ b/libs/winecrt0/unix_lib.c @@ -8,6 +8,14 @@ * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * + * In addition to the permissions in the GNU Lesser General Public License, + * the authors give you unlimited permission to link the compiled version + * of this file with other programs, and to distribute those programs + * without any restriction coming from the use of this file. (The GNU + * Lesser General Public License restrictions do apply in other respects; + * for example, they cover modification of the file, and distribution when + * not linked into another program.) + * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/10545