Dear "V, Aneesh", In message <ff55437e1f14da4baeb721a458b6701706c5888...@dbde02.ent.ti.com> you wrote: > > > Initially I had a "done" bit to only set up page tables > > at the beginning. However, since the aligmnent requirement > > was for the whole object file, this extra integer tool 16kB > > in BSS, so I chose to remove it. > > This is rather strange. I thought the linker would have done better. > However, I could overcome this problem by making 'done' a non-zero > initialized variable. Can't you try that?
"non-zero initialized variable" means you moved the storage location from the bss into the data segment. The same can be done by using something like int done __attribute__ ((section (".data"))) = 0; This is a better approach because 1) a non-zero value will be easily misinterpreted as "already done", and 2) this clearly documents what is going on and why. Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: w...@denx.de I must follow the people. Am I not their leader? - Benjamin Disraeli _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot