[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug binutils/14009] New: gcc 4.7 conversion to init_array breaks users
From: |
igodard at pacbell dot net |
Subject: |
[Bug binutils/14009] New: gcc 4.7 conversion to init_array breaks users needing control of C++ static initialization order |
Date: |
Sun, 22 Apr 2012 19:22:17 +0000 |
http://sourceware.org/bugzilla/show_bug.cgi?id=14009
Bug #: 14009
Summary: gcc 4.7 conversion to init_array breaks users needing
control of C++ static initialization order
Product: binutils
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: binutils
AssignedTo: address@hidden
ReportedBy: address@hidden
Classification: Unclassified
gcc has moved from generating ctors to using init_array; ctors are still
available for a while under option but it's clear that they want to dump ctor
support.
Meanwhile, some of us have been using linker scripts to order the .ctors
sections so as to control initialization order. None of the alternative
solutions (such as "just say no" to statics) you see on the web are usable in
large-scale multi-platform development environments.
Converting to init_array is itself not a problem, but currently gcc/ld appears
to use command line order, so that late-appearing libraries get initialized
first. Unfortunately this is not sufficient when TUs from the same library have
relative ordering requirements with other TUs from the same library.
The scripting facilities need some way to provide fine-gran control of inter-TU
ordering, functionally equivalent to a script with a KEEP list of ctor
sections.
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
- [Bug binutils/14009] New: gcc 4.7 conversion to init_array breaks users needing control of C++ static initialization order,
igodard at pacbell dot net <=
- [Bug binutils/14009] gcc 4.7 conversion to init_array breaks users needing control of C++ static initialization order, ian at airs dot com, 2012/04/22
- [Bug binutils/14009] gcc 4.7 conversion to init_array breaks users needing control of C++ static initialization order, igodard at pacbell dot net, 2012/04/22
- [Bug binutils/14009] gcc 4.7 conversion to init_array breaks users needing control of C++ static initialization order, vapier at gentoo dot org, 2012/04/22
- [Bug binutils/14009] gcc 4.7 conversion to init_array breaks users needing control of C++ static initialization order, igodard at pacbell dot net, 2012/04/22
- [Bug binutils/14009] gcc 4.7 conversion to init_array breaks users needing control of C++ static initialization order, ian at airs dot com, 2012/04/22
- [Bug binutils/14009] gcc 4.7 conversion to init_array breaks users needing control of C++ static initialization order, igodard at pacbell dot net, 2012/04/22
- [Bug binutils/14009] gcc 4.7 conversion to init_array breaks users needing control of C++ static initialization order, ian at airs dot com, 2012/04/22
- [Bug binutils/14009] gcc 4.7 conversion to init_array breaks users needing control of C++ static initialization order, igodard at pacbell dot net, 2012/04/22