https://sourceware.org/bugzilla/show_bug.cgi?id=24156
--- Comment #3 from Alan Modra <amodra at gmail dot com> --- -nostdlib is a gcc flag, not a ld flag. You will probably find that gcc is passing -pie to ld. PIEs usually have dynamic relocations, so ld adds PT_INTERP to specify a dynamic linker. This is done in ld before it is known whether any dynamic relocations (or other dynamic sections which imply PT_INTERP) are needed. -- You are receiving this mail because: You are on the CC list for the bug.