(CALL_MCOUNT): Replace @got notation with @toc.
authordrepper <drepper>
Thu, 12 Jun 2003 22:29:25 +0000 (22:29 +0000)
committerdrepper <drepper>
Thu, 12 Jun 2003 22:29:25 +0000 (22:29 +0000)
sysdeps/powerpc/powerpc64/sysdep.h

index 0af2b0a..203484c 100644 (file)
   .pushsection;          \
   .section ".data";      \
   .align ALIGNARG(2);    \
-0:  .long  0;            \
+__mcount:            \
+  .long  0;            \
+  .previous;              \
+       .section        ".toc","aw";  \
+.LC__mcount:; \
+       .tc __mcount[TC],__mcount; \
   .previous;              \
   mflr  r0;              \
   std   r0,16(r1);        \
-  ld    r0,0b@got(r2);    \
+  ld    r0,.LC__mcount@toc(r2);    \
   bl    JUMPTARGET(_mcount);
 #else /* SYSV_ELF_PROFILING */
 #define CALL_MCOUNT      \
   .pushsection;          \
   .section ".data";      \
   .align ALIGNARG(2);    \
-0:  .long  0;            \
+__mcount:            \
+  .long  0;            \
+  .previous;              \
+       .section        ".toc","aw";  \
+.LC__mcount:; \
+       .tc __mcount[TC],__mcount; \
   .previous;              \
   mflr  r0;              \
   std   r0,16(r1);        \
-  ld    r0,0b@got(r2);    \
+  ld    r0,.LC__mcount@toc(r2);    \
   bl    JUMPTARGET(_mcount);
 #else /* SYSV_ELF_PROFILING */
 #define CALL_MCOUNT  \