On Tue Jun 10, 2025 at 10:32 PM CEST, Michael Tokarev wrote: > On 10.06.2025 20:58, Sertonix wrote: >> >> Adding -pie to LDFLAGS caused s390-ccw.img to become dynamically linked. > > Why do you think -pie causes it to become dynamically linked? > > /mjt
The documentation (at least for gcc) states that the -pie option produces a *dynamically* linked position independent executable. (And I verified that the patch changes the resulting binary from dynamically linked to statically linked). Ref https://gcc.gnu.org/onlinedocs/gcc/Link-Options.html#index-pie
