News for hackers. Stuff that matters.
Re:RIP ROP: CET Internals in Windows 20H1 by archgoon on Tuesday July 21, 2020 @06:46PM (#23911772)
Gcc these days compiles with -pie (Position Independent Executable) by default. This makes the text section position independent and able to be relocated, like a shared library.

You are correct that the main TEXT section used to typically not be position independent.

Re:RIP ROP: CET Internals in Windows 20H1 by saagarjha on Tuesday July 21, 2020 @11:21PM (#23913603)
Not only is the text segment relocatable, the entire binary is generally compiled as ET_DYN so it is a shared library in a sense.