Using standard hardening options like PIC, Stack Protection ... does a mere recompilation make a program more secure against attacks?
You have the source code of a program, compile it two times with the same options. One of the binaries you give your attacker. Does it help him/not help him if you give him the same binary you will use or the other binary?
Reproducible builds are obviously out of question.
Before modern hardening options were used it maybe made a difference because recompilation produced a different layout but today, when the binary is loaded into memory (all?) parts are randomized anyways. So is there any point in recompiling programs from source considering build options are the same?