~ubuntu-branches/ubuntu/raring/libav/raring-security

« back to all changes in this revision

Viewing changes to libavcodec/ppc/asm.S

  • Committer: Package Import Robot
  • Author(s): Reinhard Tartler
  • Date: 2011-09-28 09:18:34 UTC
  • mfrom: (1.3.7 sid)
  • Revision ID: package-import@ubuntu.com-20110928091834-w415mnuh06h4zpvc
Tags: 4:0.7.1-7ubuntu2
Revert "Convert package to include multiarch support."

Show diffs side-by-side

added added

removed removed

Lines of Context:
44
44
L(\name):
45
45
.endm
46
46
 
47
 
.macro movrel rd, sym
 
47
.macro movrel rd, sym, gp
48
48
    ld      \rd, \sym@got(r2)
49
49
.endm
50
50
 
 
51
.macro get_got rd
 
52
.endm
 
53
 
51
54
#else /* ARCH_PPC64 */
52
55
 
53
56
#define PTR  .int
65
68
\name:
66
69
.endm
67
70
 
68
 
.macro movrel rd, sym
 
71
.macro movrel rd, sym, gp
69
72
#if CONFIG_PIC
70
 
    lwz     \rd, \sym@got(r2)
 
73
    lwz     \rd, \sym@got(\gp)
71
74
#else
72
75
    lis     \rd, \sym@ha
73
76
    la      \rd, \sym@l(\rd)
74
77
#endif
75
78
.endm
76
79
 
 
80
.macro get_got rd
 
81
#if CONFIG_PIC
 
82
    bcl     20, 31, .Lgot\@
 
83
.Lgot\@:
 
84
    mflr    \rd
 
85
    addis   \rd, \rd, _GLOBAL_OFFSET_TABLE_ - .Lgot\@@ha
 
86
    addi    \rd, \rd, _GLOBAL_OFFSET_TABLE_ - .Lgot\@@l
 
87
#endif
 
88
.endm
 
89
 
77
90
#endif /* ARCH_PPC64 */
78
91
 
79
92
#if HAVE_IBM_ASM