kit

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

15_ldst_widths.c (394B)


      1 /* Exercises load/store relocs at every supported width:
      2  *   R_AARCH64_LDST{8,16,32,64}_ABS_LO12_NC
      3  *
      4  * Each global of a different size produces a distinct LDST_LO12_NC
      5  * variant when materialized via the small-model ADRP+LDR pair. */
      6 
      7 unsigned char g_u8;
      8 unsigned short g_u16;
      9 unsigned int g_u32;
     10 unsigned long g_u64;
     11 
     12 unsigned long read_all(void) { return g_u8 + g_u16 + g_u32 + g_u64; }