Skip to content
  • Philippe Gerum's avatar
    copperplate, scripts/xeno-config: introduce auto-init feature · 24e3b7c1
    Philippe Gerum authored
    By default or when --auto-init is passed to xeno-config, executables
    which depend on Copperplate will call copperplate_init()
    automatically, before main() runs, hiding such requirement from the
    application code.
    
    This mechanism is implemented via ld's --wrap trick, interposing on
    the application's main() routine for performing the Copperplate inits
    first.
    
    Conversely, passing --no-auto-init to xeno-config disables this
    feature.
    24e3b7c1