https://codywu2010.wordpress.com/2014/11/29/about-elf-pie-pic-and-else/
The above page shows this. But I see no output when I try both commands. I am on ubuntu 20.04. Given the date this blog was written. Was it due changes in gcc?
$readelf -a libhello.so | grep -i textrel
0x00000016 (TEXTREL) 0x0
$readelf -a libhello_pic.so | grep -i textrel
User contributions licensed under CC BY-SA 3.0