Full relro and DSOs

Erwan Legrand lists@erwanlegrand.com
Tue Jun 14 09:11:22 GMT 2022


Hi all,

Quick question: in order to fully prevent addresses being overwritten
in .got.plt in a Linux AMD64 process, all binaries must be linked with
-z relro and -z now, right?

What happens if the executable was linked with these flags but the
libraries were not? Does the loader perform lazy binding when loading
DSOs in this case? I think it is what the man page suggests, but it is
not crystal clear. (To me at least.)

Thanks,

-Erwan


More information about the Binutils mailing list