I am currently in CM 12.1 ROM Lollipop, and I am getting PIE errors in using a app. "Error: only position independent executables are supported". So, I would like to disable PIE from my system. I tried disabling DBPie app but it didn't worked. I did some research and found that, it's somewhere inside system/bin/linker.
So now I want to replace linker file with PIE disabled linker file. Is it possible? If yes than please provide me linker file with PIE disabled else suggest some different method. My phone is Samsung Galaxy Grand 2 (SM-G7102).