Comment 5 for bug 1891551

Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

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