|
|
On Fri, Sep 4, 2009 at 12:58 PM, Arnaud Patard<arnaud.patard@xxxxxxxxxxx> wrote:
> "Kirill A. Shutemov" <kirill@xxxxxxxxxxxxx> writes:
>
> Hi,
>
> [...]
>
>> +cat > $TMPC <<EOF
>> +int main() {
>> + Â Â static __thread int i = 0;
>> + Â Â i++;
>> + Â Â return 0;
>> +}
>> +EOF
>> +
>> +if test "$user_pie" != "no" ; then
>> + Â Âif compile_prog "-fpie" "-pie -Wl,--fatal-warnings
>> -Wl,--warn-shared-textrel"; then
>> + Â Â Â Âuser_pie="yes"
>> + Â Âelse
>> + Â Â Â Âif test "$user_pie" = "yes"; then
>> + Â Â Â Â Â Âecho "Toolchain has no proper PIE support"
>> + Â Â Â Â Â Âexit 1
>> + Â Â Â Âelse
>> + Â Â Â Â Â Âuser_pie="no"
>> + Â Â Â Âfi
>> + Â Âfi
>> +fi
>
> Unfortunately, the broken mips toolchain pass this test. When you
> compile, you're getting no warning at all. Moreover, the failure is
> triggered at run-time (and this test doesn't trigger it). See
> http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=526961 if you want
> something which segfault with pie.
> I don't know if there are some other non-mips toolchains with broken pie
> and what's their behaviour. I hope it's crashing too...
Where can I get a mips cross-compiler with this issue to play?
|
|