kit

kit
git clone https://git.ryansepassi.com/git/kit.git
Log | Files | Refs | README

05_common_sym.c (430B)


      1 /* Exercises SHN_COMMON / STT_COMMON: a tentative definition.
      2  * With -fcommon, an uninitialized file-scope variable emits a COMMON
      3  * symbol (SHN_COMMON, st_value = alignment).  The roundtrip must
      4  * preserve the COMMON shndx and the alignment in st_value. */
      5 
      6 int tentative_var;   /* SHN_COMMON, align=4 */
      7 long tentative_long; /* SHN_COMMON, align=8 */
      8 
      9 int read_tentative(void) { return tentative_var + (int)tentative_long; }