Executable – S3lab http://s3lab.deusto.es S3lab Security Blog Wed, 06 May 2020 12:51:35 +0000 en-US hourly 1 https://wordpress.org/?v=5.1.5 Hardening binaries (VI) – RELRO http://s3lab.deusto.es/hardening-binaries-6/ Sat, 04 Feb 2017 15:11:25 +0000 http://s3lab.deusto.es/?p=8840 In this post we are going to talk about two options that can happen to the linker to make certain sections of our executable more secure: -Wl, -z, relro, -z, now. When a program calls a function not defined in

The post Hardening binaries (VI) – RELRO appeared first on S3lab.

]]>
In this post we are going to talk about two options that can happen to the linker to make certain sections of our executable more secure: -Wl, -z, relro, -z, now. When a program calls a function not defined in the program, which is in a shared library, the GOT (Global Shift Table) and PLT (Procedure Linking Table) sections come into play, which are responsible for specifying where that Function we need (see this link for a more detailed explanation). For example, if we use printing in a program and look at what is happening in assembly:

The post Hardening binaries (VI) – RELRO appeared first on S3lab.

]]>