Skip to content
  • Xavier Leroy's avatar
    Section handling: finer control of variable initialization · ed89275c
    Xavier Leroy authored
    Distinguish between:
    - uninitialized variables, which can go in COMM if supported
    - variables initialized with fixed, numeric quantities,
      which can go in a readonly section if "const"
    - variables initialized with symbol addresses which may need relocation,
      which cannot go in a readonly section even if "const",
      but can go in a special "const_data" section.
    
    Also: on macOS, use ".const" instead of ".literal8" for literals,
    as not all literals have size 8.
    ed89275c