bug-binutils
[Top][All Lists]
Advanced

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

[Bug gold/13314] ICF clashes with section ordering


From: tmsriram at google dot com
Subject: [Bug gold/13314] ICF clashes with section ordering
Date: Wed, 26 Oct 2011 00:08:16 +0000

http://sourceware.org/bugzilla/show_bug.cgi?id=13314

--- Comment #1 from Sriraman Tallam <tmsriram at google dot com> 2011-10-26 
00:08:16 UTC ---
This was pointed out earlier by somebody but it is not really clear to me what
the fix must be for this. In the same example, if I have the order :

.text.baz
.text.foo
.text.bak
.text.*

Then, if baz and bak are folded onto bar, should the resulting function go
before foo or after foo?

I think it is good to keep ICF and section ordering separate. One way to work
around your problem is to not fold baz into bar. You can do this by using the
--keep-unique flag in gold. --keep-unique,<symbol_name> will prevent that
symbol from being folded and so you get an unique copy for that symbol which
can be laid out appropriately.

If there are too many of these functions then using --keep-unique can be
painful, and I could add a --keep-unique-list<list_of_symbols> option to make
it easier.

Thoughts?

Thanks,
-Sri.

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



reply via email to

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