c++ - Un-fortifying rippled -


i want compile rippled without source code hardening (specifically, want avoid *_chk functions).

as far have been able determine, gcc/g++ hardening fortify_source , -fstack-protector, , in order disable it, either -u_fortify_source or -d_fortify_source=0 , -fno-stack-protector should used.

however, reason not working me rippled. have modified sconstruct file above mentioned defines , switches added, , see during build process being passed compiler , linker. however, when run readelf -sw rippled | egrep chk, obtain several lines like:

     3: 0000000000000000     0 func    global default  und __printf_chk@glibc_2.3.4 (2)     38: 0000000000000000     0 func    global default  und __vfprintf_chk@glibc_2.3.4 (2)     96: 0000000000000000     0 func    global default  und __sprintf_chk@glibc_2.3.4 (2)    100: 0000000000000000     0 func    global default  und __snprintf_chk@glibc_2.3.4 (2)    107: 0000000000000000     0 func    global default  und __fread_chk@glibc_2.7 (14) 

so guessing problem not switches , defines. in case, may missing? why these symbols still being included in elf?

ps: aware parenthesizing calls "_chk"-able functions alternative -u_fortify_source , -fno-stack-protector, discarding option, not want modify rippled's code (and, however, affect subset of functions, far can tell).


Comments

Popular posts from this blog

sequelize.js - Sequelize group by with association includes id -

android - Robolectric "INTERNET permission is required" -

java - Android raising EPERM (Operation not permitted) when attempting to send UDP packet after network connection -