OSDN Git Service

nptl:arm: add a wrapper for .cfi_sections pseudo-ops
authorCarmelo Amoroso <carmelo.amoroso@st.com>
Mon, 7 Feb 2011 17:03:36 +0000 (18:03 +0100)
committerCarmelo Amoroso <carmelo.amoroso@st.com>
Fri, 25 Feb 2011 08:58:13 +0000 (09:58 +0100)
commitbe88a80858ea4febcc621f87166fbf4c1753e513
treed0e5d21a0a214f24fd7a0be7704fa718e0b097a3
parent7a583ea370974998b4584595b9a4088fc070df1f
nptl:arm: add a wrapper for .cfi_sections pseudo-ops

ARM disables by default the support for ASM CFI directives.
Anyway using an old version of binutils that does not support some new
pseudo-op, the build fails as below:

  AS libpthread/nptl/sysdeps/unix/sysv/linux/close.oS
libpthread/nptl/sysdeps/unix/sysv/linux/close.S: Assembler messages:
libpthread/nptl/sysdeps/unix/sysv/linux/close.S:9: Error: unknown pseudo-op: `.cfi_sections'

The problem is that the .cfi_sections pseudo should be wrapped by a macro
that expands to nothing when the CFI is off.

Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
CC: Khem Ray <ray.khem@gmail.com>
libc/sysdeps/linux/common/sysdep.h
libpthread/nptl/sysdeps/unix/sysv/linux/arm/sysdep-cancel.h
libpthread/nptl/sysdeps/unix/sysv/linux/arm/unwind-resume.c