I really want to help you but I think I can't solve the full issue.
For the sake of being kind I checked what this flag is:
980 /* Flag value in in the DT_FLAGS_1 .dynamic entry. */ 981 #define DF_1_NOW»···0x00000001 982 #define DF_1_GLOBAL»0x00000002 983 #define DF_1_GROUP»·0x00000004 984 #define DF_1_NODELETE»··0x00000008 985 #define DF_1_LOADFLTR»··0x00000010 986 #define DF_1_INITFIRST»·0x00000020 987 #define DF_1_NOOPEN»0x00000040 988 #define DF_1_ORIGIN»0x00000080 989 #define DF_1_DIRECT»0x00000100 990 #define DF_1_TRANS»·0x00000200 991 #define DF_1_INTERPOSE»·0x00000400 992 #define DF_1_NODEFLIB»··0x00000800 993 #define DF_1_NODUMP»0x00001000 994 #define DF_1_CONFALT»···0x00002000 995 #define DF_1_ENDFILTEE»·0x00004000 996 #define»DF_1_DISPRELDNE»0x00008000 997 #define»DF_1_DISPRELPND»0x00010000 998 #define»DF_1_NODIRECT»··0x00020000 999 #define»DF_1_IGNMULDEF»·0x00040000 1000 #define»DF_1_NOKSYMS»···0x00080000 1001 #define»DF_1_NOHDR»·0x00100000 1002 #define»DF_1_EDITED»0x00200000 1003 #define»DF_1_NORELOC»···0x00400000 1004 #define»DF_1_SYMINTPOSE»0x00800000 1005 #define»DF_1_GLOBAUDIT»·0x01000000 1006 #define»DF_1_SINGLETON»·0x02000000 1007 #define»DF_1_STUB»··0x04000000 1008 #define»DF_1_PIE»···0x08000000
So the assumption is that one binary is build with and one without PIE.
You'd need to fixup the lib you try to insert to match (much) better. See also https://stackoverflow.com/questions/2463150/what-is-the-fpie-option-for-position-independent-executables-in-gcc-and-ld https://gcc.gnu.org/onlinedocs/gcc/Code-Gen-Options.html
I really want to help you but I think I can't solve the full issue.
For the sake of being kind I checked what this flag is:
980 /* Flag value in in the DT_FLAGS_1 .dynamic entry. */ ···0x00000001 0x00000002 ·0x00000004 ··0x00000008 ··0x00000010 ·0x00000020 0x00000040 0x00000080 0x00000100 ·0x00000200 ·0x00000400 ··0x00000800 0x00001000 ···0x00002000 ·0x00004000 DF_1_DISPRELDNE »0x00008000 DF_1_DISPRELPND »0x00010000 DF_1_NODIRECT» ··0x00020000 DF_1_IGNMULDEF» ·0x00040000 DF_1_NOKSYMS» ···0x00080000 DF_1_NOHDR» ·0x00100000 DF_1_EDITED» 0x00200000 DF_1_NORELOC» ···0x00400000 DF_1_SYMINTPOSE »0x00800000 DF_1_GLOBAUDIT» ·0x01000000 DF_1_SINGLETON» ·0x02000000 DF_1_STUB» ··0x04000000 DF_1_PIE» ···0x08000000
981 #define DF_1_NOW»
982 #define DF_1_GLOBAL»
983 #define DF_1_GROUP»
984 #define DF_1_NODELETE»
985 #define DF_1_LOADFLTR»
986 #define DF_1_INITFIRST»
987 #define DF_1_NOOPEN»
988 #define DF_1_ORIGIN»
989 #define DF_1_DIRECT»
990 #define DF_1_TRANS»
991 #define DF_1_INTERPOSE»
992 #define DF_1_NODEFLIB»
993 #define DF_1_NODUMP»
994 #define DF_1_CONFALT»
995 #define DF_1_ENDFILTEE»
996 #define»
997 #define»
998 #define»
999 #define»
1000 #define»
1001 #define»
1002 #define»
1003 #define»
1004 #define»
1005 #define»
1006 #define»
1007 #define»
1008 #define»
So the assumption is that one binary is build with and one without PIE.
You'd need to fixup the lib you try to insert to match (much) better. /stackoverflow. com/questions/ 2463150/ what-is- the-fpie- option- for-position- independent- executables- in-gcc- and-ld /gcc.gnu. org/onlinedocs/ gcc/Code- Gen-Options. html
See also
https:/
https:/