Broken by 76e831d. Without the .type directive, SIGILL may be produced
if the C code is compiled in Thumb mode, because the compiler may assume
that the asm symbol is also Thumb and call it using a BL instruction.
The patch in 76e831d917 got us most of the way there, but
out-of-tree builds required a second Makefile.am rule, which was
missing @ARM2GNU_PARAMS@.
Also, the arm2gnu.pl was terminating argument processing on any
argument beginning with --, rather than an argument that was just
-- by itself (as is the normal convention in GNU programs).
That meant it never saw the --apple flag even when it was passed.
Thanks to Jonathan Lennox for the report and for testing.
This allows building the arm assembly for iOS.
This checks for the __APPLE__ preprocessor built-in define to
determine whether this extra handling should be enabled.
Signed-off-by: Timothy B. Terriberry <tterribe@xiph.org>