Discussion:
LTO and r17
Andrey Alekseenko
2018-03-10 17:39:31 UTC
Permalink
I've noticed that in r17 (at least beta1) there is an issue that gold
linker emits broken debug info.
On the other side LTO does not work with bfd linker, but only with gold.

So, what can you recommend? Not using LTO with r17, or the issue will be
resolved before r17 release?

We're using debug information to generate breakpad symbols for production
builds and for ndk-stack which is invoked on testing stand if crash occurs.
--
You received this message because you are subscribed to the Google Groups "android-ndk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-ndk+***@googlegroups.com.
To post to this group, send email to android-***@googlegroups.com.
Visit this group at https://groups.google.com/group/android-ndk.
To view this discussion on the web visit https://groups.google.com/d/msgid/android-ndk/a382600d-224c-4d6b-8730-278148a665bf%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
'Dan Albert' via android-ndk
2018-03-10 18:23:42 UTC
Permalink
Last I checked LTO works with bfd.
Post by Andrey Alekseenko
I've noticed that in r17 (at least beta1) there is an issue that gold
linker emits broken debug info.
On the other side LTO does not work with bfd linker, but only with gold.
So, what can you recommend? Not using LTO with r17, or the issue will be
resolved before r17 release?
We're using debug information to generate breakpad symbols for production
builds and for ndk-stack which is invoked on testing stand if crash occurs.
--
You received this message because you are subscribed to the Google Groups
"android-ndk" group.
To unsubscribe from this group and stop receiving emails from it, send an
Visit this group at https://groups.google.com/group/android-ndk.
To view this discussion on the web visit
https://groups.google.com/d/msgid/android-ndk/a382600d-224c-4d6b-8730-278148a665bf%40googlegroups.com
<https://groups.google.com/d/msgid/android-ndk/a382600d-224c-4d6b-8730-278148a665bf%40googlegroups.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "android-ndk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-ndk+***@googlegroups.com.
To post to this group, send email to android-***@googlegroups.com.
Visit this group at https://groups.google.com/group/android-ndk.
To view this discussion on the web visit https://groups.google.com/d/msgid/android-ndk/CAFVaGhsJnMYcHAMQNDv7yL3G1TntZEPeh%3D0LO%2BQtTE2eh5NZ0g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Andrey Alekseenko
2018-03-11 12:06:12 UTC
Permalink
Post by 'Dan Albert' via android-ndk
Last I checked LTO works with bfd.
Oh, thank you!
It really works with bfd & r17-beta1, I'm already used to that it only
works with -fuse-ld=gold.
--
You received this message because you are subscribed to the Google Groups "android-ndk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-ndk+***@googlegroups.com.
To post to this group, send email to android-***@googlegroups.com.
Visit this group at https://groups.google.com/group/android-ndk.
To view this discussion on the web visit https://groups.google.com/d/msgid/android-ndk/5ff354ba-f14b-46cd-b142-3e7a4aa796a2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
'Dan Albert' via android-ndk
2018-03-12 18:09:20 UTC
Permalink
Yeah, clang used to require gold for LTO. I think bfd gas worked only since
r16.
Post by Andrey Alekseenko
Post by 'Dan Albert' via android-ndk
Last I checked LTO works with bfd.
Oh, thank you!
It really works with bfd & r17-beta1, I'm already used to that it only
works with -fuse-ld=gold.
--
You received this message because you are subscribed to the Google Groups
"android-ndk" group.
To unsubscribe from this group and stop receiving emails from it, send an
Visit this group at https://groups.google.com/group/android-ndk.
To view this discussion on the web visit
https://groups.google.com/d/msgid/android-ndk/5ff354ba-f14b-46cd-b142-3e7a4aa796a2%40googlegroups.com
<https://groups.google.com/d/msgid/android-ndk/5ff354ba-f14b-46cd-b142-3e7a4aa796a2%40googlegroups.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "android-ndk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-ndk+***@googlegroups.com.
To post to this group, send email to android-***@googlegroups.com.
Visit this group at https://groups.google.com/group/android-ndk.
To view this discussion on the web visit https://groups.google.com/d/msgid/android-ndk/CAFVaGhuNRk9qEW2rA85vxRHJXU8OCRe3O96tsDHDFd-xiXvX%2BQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Loading...