Mercurial > libavcodec.hg
diff bfin/dsputil_bfin.c @ 6362:78aa57eba353 libavcodec
FLAT objects cannot have multiple sections, so using the L1 attributes breaks
linking. The FDPIC relocs also break for any other format. Thus check the
compiler environment and select the appropriate sections/relocs.
patch by Mike Frysinger, vapier.adi a gmail d com
author | diego |
---|---|
date | Sat, 16 Feb 2008 15:17:31 +0000 |
parents | 73ec16dbcbc1 |
children | f7cbb7733146 |
line wrap: on
line diff
--- a/bfin/dsputil_bfin.c Fri Feb 15 21:01:10 2008 +0000 +++ b/bfin/dsputil_bfin.c Sat Feb 16 15:17:31 2008 +0000 @@ -173,7 +173,7 @@ + ff_bfin_z_sad16x16 (blk2,blk2+stride,stride<<1,stride<<1,h); } -static uint8_t vtmp_blk[256] __attribute__((l1_data_B)); +static uint8_t vtmp_blk[256] attribute_l1_data_b; static int bfin_pix_abs16_x2 (void *c, uint8_t *blk1, uint8_t *blk2, int line_size, int h) {