Re: why won't this PIE run?
Posted: Sat Mar 16, 2019 12:19 pm
That is a very stupid question, but does "gcc -pie hello.o" work? What is your hello.lds?
EDIT: The offset 0 R/W segment is quite strange - your linker script maps the file header as R/W?
EDIT2: The linker (or kernel) might also just refuse to map something as RWE.
EDIT: The offset 0 R/W segment is quite strange - your linker script maps the file header as R/W?
EDIT2: The linker (or kernel) might also just refuse to map something as RWE.