Re: Bug#834096: binutils: produce unexecutable MIPS binaries with -Wl,-z,noexecstack
Aurelien Jarno <[email protected]>
| Newsgroups | gmane.linux.debian.ports.mips |
|---|---|
| Message-ID | <[email protected]> |
On 2016-08-11 23:45, Aurelien Jarno wrote: > On 2016-08-11 23:12, Aurelien Jarno wrote: > > Package: binutils > > Version: 2.27-4 > > Severity: serious > > > > Dear Maintainer, > > > > binutils 2.27 added support for non-executable PT_GNU_STACK on mips. For > > that it sets the ABI version to 5 in the ELF headers so that the glibc > > can set the stack permission accordingly. Unfortunately the glibc part > > hasn't been merged yet. This means that binaries produced with > > -Wl,-z,noexecstack can't be executed later. This is the reason why > > ffmpeg failed to build from source. > > > > I guess we should disabled non-executable PT_GNU_STACK on mips until we > > get full glibc support. I'll try to work on a patch in the next days, > > but given my time is currently a bit limited, any help would be > > appreciated. > > The attached patch should do it. It's basically a revert of the upstream > commit, so that should work. I haven't tested it yet, I will do it > tomorrow. The patch...