Bug 2188014 - gcc-toolset-13-gcc: Revert <iostream> initialization changes for hybrid linkage
Summary: gcc-toolset-13-gcc: Revert <iostream> initialization changes for hybrid linkage
Keywords:
Status: VERIFIED
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: gcc-toolset-12-gcc
Version: 8.9
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Marek Polacek
QA Contact: Václav Kadlčík
URL:
Whiteboard:
Depends On: 2188013
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-04-19 13:28 UTC by Florian Weimer
Modified: 2023-06-30 14:42 UTC (History)
5 users (show)

Fixed In Version: gcc-toolset-13-gcc-13.1.1-4.1.el8
Doc Type: No Doc Update
Doc Text:
Clone Of: 2188013
Environment:
Last Closed:
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHELPLAN-155194 0 None None None 2023-04-19 13:30:06 UTC

Description Florian Weimer 2023-04-19 13:28:51 UTC
+++ This bug was initially created as a clone of Bug #2188013 +++

We cannot assume that libstdc++.so.6 performs std::cout etc. initialization, so the GTS header files need to keep using the old initialization model. Otherwise, things will build and link just fine, but the initialization might not happen as expected.

Note: Needs to be transitioned to the gcc-toolset-13-gcc component once that exists.

Comment 1 Florian Weimer 2023-04-19 13:32:33 UTC
Jakub suggests that we could pull in an ELF constructor in libstdc++_nonshared.a instead (with an appropriate early priority).


Note You need to log in before you can comment on or make changes to this bug.