Summary: | [4.3 only] -fstack-protector produces segfaulting binaries on arm/armel | ||
---|---|---|---|
Product: | gcc | Reporter: | Riku Voipio <riku.voipio> |
Component: | target | Assignee: | jules |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | dougkwan, gcc-bugs, pbrook, ralphs, tbm, toolchain |
Priority: | P3 | ||
Version: | 4.3.1 | ||
Target Milestone: | 4.4.0 | ||
Host: | arm-linux-gnueabi | Target: | arm-linux-gnueabi |
Build: | arm-linux-gnueabi | Known to work: | |
Known to fail: | Last reconfirmed: | 2008-06-26 10:10:47 | |
Attachments: |
working arm assembly produced from hello world
segfaulting arm assemble of hello world |
Description
Riku Voipio
2008-04-17 11:43:43 UTC
Created attachment 15489 [details]
working arm assembly produced from hello world
Created attachment 15490 [details]
segfaulting arm assemble of hello world
This is also reproducible with codesourcery 2008q1 Using built-in specs. Target: arm-none-linux-gnueabi Configured with: /scratch/sandra/lite/src/gcc-4.2/configure --build=i686-pc-linux-gnu --host=i686-pc-linux-gnu --target=arm-none-linux-gnueabi --enable-threads --disable-libmudflap --disable-libssp --disable-libgomp --disable-libstdcxx-pch --with-gnu-as --with-gnu-ld --enable-languages=c,c++ --enable-shared --enable-symvers=gnu --enable-__cxa_atexit --with-pkgversion=Sourcery G++ Lite 2008q1-126 --with-bugurl=https://support.codesourcery.com/GNUToolchain/ --disable-nls --prefix=/opt/codesourcery --with-sysroot=/opt/codesourcery/arm-none-linux-gnueabi/libc --with-build-sysroot=/scratch/sandra/lite/linux/install/arm-none-linux-gnueabi/libc --enable-poison-system-directories --with-build-time-tools=/scratch/sandra/lite/linux/install/arm-none-linux-gnueabi/bin --with-build-time-tools=/scratch/sandra/lite/linux/install/arm-none-linux-gnueabi/bin Thread model: posix gcc version 4.2.3 (Sourcery G++ Lite 2008q1-126) I've posted a candidate fix: http://gcc.gnu.org/ml/gcc-patches/2008-06/msg01641.html *** Bug 36480 has been marked as a duplicate of this bug. *** Subject: Bug 35965 Author: dougkwan Date: Wed Feb 25 07:18:01 2009 New Revision: 144424 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=144424 Log: 2009-02-24 Julian Brown <julian@codesourcery.com> PR target/35965 * config/arm/arm.c (require_pic_register): Only set cfun->machine->pic_reg once per function. Patch commited by Doug Kwan <dougkwan@google.com> Modified: trunk/gcc/ChangeLog trunk/gcc/config/arm/arm.c This is fixed in trunk and will be picked up by 4.4. However, this is broken at least in 4.3.1 and probably in all 4.3 releases. From comment #7 this appears to be only a problem with the 4.3 branch. Not a regression. Fixed for 4.4.0. |