This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Reduce Filling Size in RAM


Hi ClÃment,

the --sort-sections=alignement resolved almost all my filling issues thank
you :).
I won 100o in rom, 100o in ram and 300o in BSS. (Why is not enabled by
default ?)

No idea.  It is probably historical.


The linker do
*fill*         0x000000001fff8b58       0xa8
  .bss.myvar
                 0x000000001fff8c00      <<it's aligned but it's not optimal
.bss.XXX
.bss.XXY

Yeah - sorry - the linker is just not smart enough to do this. :-(

If you know exactly which object files you are going to be linking, you could always create a customized linker script that places each .bss.<foo> section in the order in which you desire them to be.

Cheers
  Nick


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]