On Fri, Apr 21, 2017 at 05:50:41PM +0200, Kamil Rytarowski wrote: > .section ".note.netbsd.ident", "", @note
That is missing an "a" flag: .section ".note.netbsd.ident", "a", @note Look at readelf -a output, no program header is generated for your variant, but if you add the flag, all is fine (and the file becomes executable again). Martin