[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#834096: binutils: produce unexecutable MIPS binaries with -Wl,-z,noexecstack



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.

-- 
Aurelien Jarno                          GPG: 4096R/1DDD8C9B
aurelien@aurel32.net                 http://www.aurel32.net


Reply to: