I use 106Micro core and Xtensa toolchain (gcc) for ESP8266 chip.
Not sure what strncpy function is used
According to map file
 .text          0x4010077c       0xfa c:/sysgcc/esp8266/bin/../lib/gcc/xtensa-lx106-elf/5.2.0/../../../../xtensa-lx106-elf/lib\libc.a(lib_a-strncpy.o)
                0x401007b4                strncpy
But also in ROM, there is a function that is already present with the same name
        0x4000c0a0                PROVIDE (strncpy, 0x4000c0a0)
Since if function from libc is present in binary, seems that the ROM one was ignored. Most likely I haven't a prototype defined for ROM one (since ESP8266 has many ROM functions not explained, without an ykind of prototype) and due to the libc was chosen.
Now how can I include the ROM version, but keep the in program?
Thanks for clarifications,
 
     
    