Map "" and ".text.unlikely" input section prefixes to separate output sections.

Alan Modra
Mon Nov 19 22:52:00 GMT 2012

On Fri, Nov 16, 2012 at 05:19:01PM -0800, Ian Lance Taylor wrote:
> On Wed, Nov 14, 2012 at 5:06 PM, Sriraman Tallam <> wrote:
> >> Ideally gold should group all input sections with the same name

I strongly disagree.  Grouping sections with the same name is a bad
idea, unless the name gives you some infomation from the compiler (as
it does with* et al).  The problem with grouping sections
with the same name is that with -ffunction-sections objects, you'll
potentially move functions away from their callers, losing cache
locality.  The canonical example is a number of object files with
static "setup" functions.  These will all have code in .text.setup,
but there is no good reason to group these sections.

Alan Modra
Australia Development Lab, IBM

More information about the Binutils mailing list