[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug ld/5323] Assignment of grouped sections in linker script ignored

From: timb at bluearc dot com
Subject: [Bug ld/5323] Assignment of grouped sections in linker script ignored
Date: 9 Jan 2008 12:26:36 -0000

------- Additional Comments From timb at bluearc dot com  2008-01-09 12:26 
gcc's naming is quite reasonable: the names of section groups (and the sections
in them) clash because the corresponding symbol names do. We are deliberately
using partial linking and localization of symbols in order to violate the one
definition rule. The section groups emitted by newer versions of gcc threw a
spanner in the works because although we could make the symbols local we
couldn't hide the section groups. The old-style linkonce sections could just be
folded into the desired output sections, whereas ld was stubbornly refusing to
let us have any say in what it does with grouped sections.

The option added by my patch doesn't break section groups apart, it eliminates
them in just the same way as a final link normally does. It's certainly crude,
but it does what we need it to, and is about the best we could manage with our
limited knowledge of ld internals. It may be useful for people doing something
similar, but not for anyone wanting finer control over section groups.



------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]