[MIPS] Handle CFLAGS with -funwind-tables.
Tom de Vries
Tom_deVries@mentor.com
Wed Jan 4 11:42:00 GMT 2012
Hi,
when doing a MIPS build with CFLAGS -g -O2 -funwind-tables, we run into the
following errors:
...
/tmp/ccNETuvb.s: Assembler messages:
ccNETuvb.s: Error: open CFI at the end of file; missing .cfi_endproc directive
ccNETuvb.s: Error: open CFI at the end of file; missing .cfi_endproc directive
make[2]: *** [default/csu/crti.o] Error 1
default/csu/crtn.S: Assembler messages:
crtn.S:33: Error: CFI instruction used without previous .cfi_startproc
crtn.S:34: Error: CFI instruction used without previous .cfi_startproc
crtn.S:35: Error: .cfi_endproc without corresponding .cfi_startproc
crtn.S:56: Error: CFI instruction used without previous .cfi_startproc
crtn.S:57: Error: CFI instruction used without previous .cfi_startproc
crtn.S:58: Error: .cfi_endproc without corresponding .cfi_startproc
make[2]: *** [default/csu/crtn.o] Error 1
...
With attached patch, we manage to complete the build.
The fix is also present in glibc-ports/sysdeps/arm/eabi/Makefile.
I tested the patch on MIPS qemu (mips-linux-gnu) with host i686-pc-linux-gnu.
Thanks,
- Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: glibc-initfini.patch
Type: text/x-patch
Size: 544 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-ports/attachments/20120104/b0a6a53e/attachment.bin>
More information about the Libc-ports
mailing list