Skip to content

Latest commit

 

History

History
26 lines (18 loc) · 563 Bytes

README.md

File metadata and controls

26 lines (18 loc) · 563 Bytes

gcc-nop-plugin

gcc plugin, which inserts nop instructions.

Usage

gcc \
    -o test/hello \
    -fplugin=./libgcc_nop_plugin.so \
    -fplugin-arg-libgcc_nop_plugin-main=2 \
    test/hello.c

For C++ code, use non-mangled names.

CMake settings

  • CMAKE_TARGET_C_COMPILER: compiler to build gcc-nop-plugin for.
  • SUFFIX: library name suffix. Useful when building multiple gcc-nop-plugin versions for different compilers. Do not use - character: this confuses the gcc command line parser.

Links