Ryan Mansfield(deleted)
|
Re: GCC for powerpc-unknown-nto-qnx6.5.0
|
Ryan Mansfield(deleted)
06/17/2015 9:59 AM
post113964
|
Re: GCC for powerpc-unknown-nto-qnx6.5.0
On 15-06-17 04:23 AM, Maxim Kuzmin wrote:
> I've successfully built binutils and updated /opt/qnx650/host/linux/x86/usr/bin/ntoppc-as, but unfortunately, I've got
same error. This is output from gcc with "--verbose" flag:
>
> /opt/qnx650/host/linux/x86/usr/bin/ntoppc-as --gdwarf2 -v -I. -I. -I../.././gcc -I/home/max/gcc/gcc_4_6_branch/libgcc
-I/home/max/gcc/gcc_4_6_branch/libgcc/. -I/home/max/gcc/gcc_4_6_branch/libgcc/../gcc -I/home/max/gcc/gcc_4_6_branch/
libgcc/../include -mppc -many -V -Qy -mbig -o crtsavfpr.o /tmp/ccR7N05D.s
> GNU assembler version 2.25 (powerpc-unknown-nto-qnx6.5.0) using BFD version (GNU Binutils) 2.25
> ../.././gcc/crtsavfpr.S: Assembler messages:
> ../.././gcc/crtsavfpr.S:41: Error: unrecognized opcode: cfi_endproc'
> ../.././gcc/crtsavfpr.S:79: Error: unrecognized opcode: cfi_startproc'
>
> Am I need to update other executables from binutils?
Did you reconfigure and rebuild against the updated binutils?
i.e. config/rs6000/ppc-asm.h has
#ifdef HAVE_GAS_CFI_DIRECTIVE
# define CFI_STARTPROC .cfi_startproc
# define CFI_ENDPROC .cfi_endproc
# define CFI_OFFSET(reg, off) .cfi_offset reg, off
# define CFI_DEF_CFA_REGISTER(reg) .cfi_def_cfa_register reg
# define CFI_RESTORE(reg) .cfi_restore reg
#else
# define CFI_STARTPROC
# define CFI_ENDPROC
# define CFI_OFFSET(reg, off)
# define CFI_DEF_CFA_REGISTER(reg)
# define CFI_RESTORE(reg)
#endif
and HAVE_HAS_CFI_DIRECTIVE will be defined by configure. The binutils
2.25 that you just build should support the .cfi directives.
Regards,
Ryan Mansfield
|
|
|