[Bug libstdc++/85705] Initializing cout in a dynamically loaded position-independent executable

2018-05-08 Thread gcc at foxcub dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85705 --- Comment #5 from gcc at foxcub dot org --- Is there a way to make the constructors happen? For example, adding std::ios_base::Init initalizer; at the beginning of main() in puppet.cpp doesn't fix the problem. How can I get the constructors

[Bug libstdc++/85705] Initializing cout in a dynamically loaded position-independent executable

2018-05-08 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85705 --- Comment #4 from Andrew Pinski --- I doubt this is supported. The main reason is constructors is not happening the way you think they should be happening. That is the constructor needed for cout is not happening.

[Bug libstdc++/85705] Initializing cout in a dynamically loaded position-independent executable

2018-05-08 Thread gcc at foxcub dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85705 --- Comment #3 from gcc at foxcub dot org --- Created attachment 44094 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=44094=edit Makefile

[Bug libstdc++/85705] Initializing cout in a dynamically loaded position-independent executable

2018-05-08 Thread gcc at foxcub dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85705 --- Comment #2 from gcc at foxcub dot org --- Created attachment 44093 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=44093=edit puppet-lib.cpp

[Bug libstdc++/85705] Initializing cout in a dynamically loaded position-independent executable

2018-05-08 Thread gcc at foxcub dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85705 --- Comment #1 from gcc at foxcub dot org --- Created attachment 44092 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=44092=edit puppet.cpp