[Bug ld/31956] -Wl,--wrap broken with LTO?

2024-07-07 Thread sam at gentoo dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=31956 --- Comment #5 from Sam James --- (In reply to Sam James from comment #4) > Thank you! That fixes linking OpenVPN tests. They *do* fail at runtime which > I haven't yet investigated, but they fail in the same way with mold, so not > caused by

[Bug ld/31956] -Wl,--wrap broken with LTO?

2024-07-07 Thread sam at gentoo dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=31956 --- Comment #6 from Sam James --- (In reply to Sam James from comment #5) Here's a failing runtime test case with the patch. tls_crypt_testdriver-buffer.c: ``` void buffer_write_file(void) { __builtin_printf("Called real buffer_write_file