> On Thu, Jun 14, 2007 at 05:04:31PM +0200, Bernhard Fischer wrote: > > Hi, > > > > http://www.simtreas.ru/~dzo/common_bss.tgz > > > > vodz said: This is a common minimal bss method for busybox without > > malloc. I'm interrested in feedback about this approach. > > > > I didn't have a chance to look at it myself yet. > > vda, perhaps it's interresting? > > > > Eh? Why does it use magic comments and a script to calculate the size of > the structure (the common bss), when an union would give it for free?
i agree. not only are the comments magic, but they have to contain sizes that are entered by hand. this seems like a recipe for disaster to me. i've always thought that there should be a way to get common bss using linker magic, to somehow tell the final ld pass that all of the applet bss sections should be merged into one. is it possible to rename the bss section for a particular .o during compilation? then you could play games with that section for each applet, without breaking the any bss from other common files that isn't supposed to be merged. paul =--------------------- paul fox, [EMAIL PROTECTED] _______________________________________________ busybox mailing list [email protected] http://busybox.net/cgi-bin/mailman/listinfo/busybox
