[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 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

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

2018-05-08 Thread gcc at foxcub dot org
: normal Priority: P3 Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: gcc at foxcub dot org Target Milestone: --- Created attachment 44091 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=44091=edit main.cpp I build a posit