[Top][All Lists]

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

Re: [Tinycc-devel] Do not put static variables into a common section.

From: Simon 'corecode' Schubert
Subject: Re: [Tinycc-devel] Do not put static variables into a common section.
Date: Mon, 27 Aug 2007 08:29:32 +0200
User-agent: Thunderbird (X11/20070627)

Rob Landley wrote:
I'm confused: it looks like (at a quick glance, which is all I'm up for at the moment with this cold) that the patch makes it put the static variables into bss, which is _not_ a common section...?

Exactly.  At least only OS (DragonFly) this is necessary.  Gcc does this on 
Linux as well, so I figured that should at least not be wrong.

I'm no expert in linking, but it occured to me that the common section is only 
for global symbols which in the end get merged to one, i.e. the same global 
symbol defined in multiple objects.  Obviously, this is never the case for 
static symbols:  they all need to be created and may never be merged.


Serve - BSD     +++  RENT this banner advert  +++    ASCII Ribbon   /"\
Work - Mac      +++  space for low €€€ NOW!1  +++      Campaign     \ /
Party Enjoy Relax   |   http://dragonflybsd.org      Against  HTML   \
Dude 2c 2 the max   !   http://golden-apple.biz       Mail + News   / \

reply via email to

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