From c9d082f05667bb128dd9fd26d6842b5795586089 Mon Sep 17 00:00:00 2001 From: Thomas Martitz Date: Sun, 13 May 2012 22:27:18 +0200 Subject: dsp_arm: Fix up some .section directives to fix crash on app targets. This is needed on app targets as e.g. ".section .icode" leads to the code getting linked to incorrect locations (0x0 in this case). Change-Id: Ic28c5ae6d4f8001d211d685b5ca92d5ffff0c7b2 --- lib/rbcodec/dsp/dsp_arm.S | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'lib/rbcodec/dsp') diff --git a/lib/rbcodec/dsp/dsp_arm.S b/lib/rbcodec/dsp/dsp_arm.S index cd345920a5..1674d6617a 100644 --- a/lib/rbcodec/dsp/dsp_arm.S +++ b/lib/rbcodec/dsp/dsp_arm.S @@ -24,7 +24,7 @@ * void channel_mode_proc_mono(struct dsp_proc_entry *this, * struct dsp_buffer **buf_p) */ - .section .text + .section .text, "ax",%progbits .global channel_mode_proc_mono .type channel_mode_proc_mono, %function channel_mode_proc_mono: @@ -66,7 +66,7 @@ channel_mode_proc_mono: * void channel_mode_proc_custom(struct dsp_proc_entry *this, * struct dsp_buffer **buf_p) */ - .section .text + .section .text, "ax",%progbits .global channel_mode_proc_custom .type channel_mode_proc_custom, %function channel_mode_proc_custom: @@ -141,7 +141,7 @@ channel_mode_proc_custom: * void channel_mode_proc_karaoke(struct dsp_proc_entry *this, * struct dsp_buffer **buf_p) */ - .section .text + .section .text, "ax",%progbits .global channel_mode_proc_karaoke .type channel_mode_proc_karaoke, %function channel_mode_proc_karaoke: @@ -186,7 +186,7 @@ channel_mode_proc_karaoke: * void crossfeed_process(struct dsp_proc_entry *this, * struct dsp_buffer **buf_p) */ - .section .text + .section .text, "ax",%progbits .global crossfeed_process crossfeed_process: @ input: r0 = this, r1 = buf_p @@ -251,7 +251,7 @@ crossfeed_process: * struct dsp_buffer *src, * struct dsp_buffer *dst) */ - .section .text + .section .text, "ax",%progbits .global lin_resample_resample lin_resample_resample: @input: r0 = data, r1 = src, r2 = dst @@ -358,7 +358,7 @@ lin_resample_resample: /**************************************************************************** * void pga_process(struct dsp_proc_entry *this, struct dsp_buffer **buf_p) */ - .section .text + .section .text, "ax",%progbits .global pga_process .type pga_process, %function pga_process: @@ -414,9 +414,9 @@ pga_process: #define HIGH_PRECISION 0 #if CONFIG_CPU == PP5002 - .section .icode + .section .icode,"ax",%progbits #else - .text + .section .text, "ax",%progbits #endif .global filter_process filter_process: @@ -476,7 +476,7 @@ filter_process: * struct dsp_buffer *src, * struct dsp_buffer *dst) */ - .section .icode + .section .icode,"ax",%progbits .global sample_output_mono .type sample_output_mono, %function sample_output_mono: @@ -540,7 +540,7 @@ sample_output_mono: * struct dsp_buffer *src, * struct dsp_buffer *dst) */ - .section .icode + .section .icode,"ax",%progbits .global sample_output_stereo .type sample_output_stereo, %function sample_output_stereo: -- cgit v1.2.3