[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug ld/31956] -Wl,--wrap broken with LTO?
From: |
hjl.tools at gmail dot com |
Subject: |
[Bug ld/31956] -Wl,--wrap broken with LTO? |
Date: |
Wed, 17 Jul 2024 07:06:08 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=31956
--- Comment #15 from H.J. Lu <hjl.tools at gmail dot com> ---
(In reply to Sam James from comment #14)
> Sorry, one more question: richi's comment at
> https://sourceware.org/bugzilla/show_bug.cgi?id=24406#c10 made me wonder.
>
> If I modify https://sourceware.org/bugzilla/show_bug.cgi?id=31956#c6 to have
> noipa or noinline for buffer_write_file, the status is the same (just the
> hashes change):
> ```
> --- a/tls_crypt_testdriver.res
> +++ b/tls_crypt_testdriver.res
> @@ -1,11 +1,11 @@
> 3
> tls_crypt_testdriver-tls_crypt_testdriver-test_tls_crypt.o 4
> 194 [-648e684371714953-]{+cc01d97532c69e30+} PREVAILING_DEF
> __wrap_buffer_write_file
> 196 [-648e684371714953-]{+cc01d97532c69e30+} PREVAILING_DEF_IRONLY
> test_tls_crypt_v2_write_server_key_file
> 200 [-648e684371714953-]{+cc01d97532c69e30+} PREVAILING_DEF main
> 220 [-648e684371714953-]{+cc01d97532c69e30+} RESOLVED_IR write_pem_key_file
> tls_crypt_testdriver-tls_crypt_testdriver-buffer.o 1
> 202 [-cdf5ef9747252c01-]{+a5f22943180ec17d+} PREVAILING_DEF_IRONLY
> buffer_write_file
> tls_crypt_testdriver-tls_crypt_testdriver-crypto.o 2
> 204 [-a3abc8ef456eac42-]{+e3adb2154884903b+} PREVAILING_DEF_IRONLY
> write_pem_key_file
> 207 [-a3abc8ef456eac42-]{+e3adb2154884903b+} RESOLVED_IR buffer_write_file
> ```
>
> should it be PREVAILING_DEF instead for buffer_write_file, not
> PREVAILING_DEF_IRONLY if I've forced a real definition?
No, since there are non-IR references. If there are non-IR references,
PREVAILING_DEF will be generated.
--
You are receiving this mail because:
You are on the CC list for the bug.
- [Bug ld/31956] -Wl,--wrap broken with LTO?, (continued)
- [Bug ld/31956] -Wl,--wrap broken with LTO?, sam at gentoo dot org, 2024/07/07
- [Bug ld/31956] -Wl,--wrap broken with LTO?, sam at gentoo dot org, 2024/07/07
- [Bug ld/31956] -Wl,--wrap broken with LTO?, hjl.tools at gmail dot com, 2024/07/08
- [Bug ld/31956] -Wl,--wrap broken with LTO?, sam at gentoo dot org, 2024/07/08
- [Bug ld/31956] -Wl,--wrap broken with LTO?, hjl.tools at gmail dot com, 2024/07/08
- [Bug ld/31956] -Wl,--wrap broken with LTO?, hjl.tools at gmail dot com, 2024/07/08
- [Bug ld/31956] -Wl,--wrap broken with LTO?, sam at gentoo dot org, 2024/07/09
- [Bug ld/31956] -Wl,--wrap broken with LTO?, cvs-commit at gcc dot gnu.org, 2024/07/09
- [Bug ld/31956] -Wl,--wrap broken with LTO?, hjl.tools at gmail dot com, 2024/07/09
- [Bug ld/31956] -Wl,--wrap broken with LTO?, sam at gentoo dot org, 2024/07/17
- [Bug ld/31956] -Wl,--wrap broken with LTO?,
hjl.tools at gmail dot com <=
- [Bug ld/31956] -Wl,--wrap broken with LTO?, rguenth at gcc dot gnu.org, 2024/07/17
- [Bug ld/31956] -Wl,--wrap broken with LTO?, hjl.tools at gmail dot com, 2024/07/17
- [Bug ld/31956] -Wl,--wrap broken with LTO?, rguenther at suse dot de, 2024/07/17