-lstringlib -Wl, --wrap=memset
Description
This option calls the memset function in the libstring library of optimized-routines: Note the following when using this option:
- This option must be placed at the end of all libraries to be linked (except the libc library).
- This option cannot be used if you want to perform an address sanitization check.
Usage
After -lstringlib -Wl,--wrap=memset is added to the option, the memset function in libstring is automatically called when the memset function is required at runtime. If the link fails, check whether the path of the stringlib library is loaded to the default path of the system.
Parent topic: Static Compilation Optimization