|
@@ -26,7 +26,7 @@
|
|
# which will also be the location of that section after final link.
|
|
# which will also be the location of that section after final link.
|
|
# e.g.
|
|
# e.g.
|
|
#
|
|
#
|
|
-# .section ".text.sched"
|
|
|
|
|
|
+# .section ".sched.text", "ax"
|
|
# .globl my_func
|
|
# .globl my_func
|
|
# my_func:
|
|
# my_func:
|
|
# [...]
|
|
# [...]
|
|
@@ -39,7 +39,7 @@
|
|
# [...]
|
|
# [...]
|
|
#
|
|
#
|
|
# Both relocation offsets for the mcounts in the above example will be
|
|
# Both relocation offsets for the mcounts in the above example will be
|
|
-# offset from .text.sched. If we make another file called tmp.s with:
|
|
|
|
|
|
+# offset from .sched.text. If we make another file called tmp.s with:
|
|
#
|
|
#
|
|
# .section __mcount_loc
|
|
# .section __mcount_loc
|
|
# .quad my_func + 0x5
|
|
# .quad my_func + 0x5
|
|
@@ -51,7 +51,7 @@
|
|
# But this gets hard if my_func is not globl (a static function).
|
|
# But this gets hard if my_func is not globl (a static function).
|
|
# In such a case we have:
|
|
# In such a case we have:
|
|
#
|
|
#
|
|
-# .section ".text.sched"
|
|
|
|
|
|
+# .section ".sched.text", "ax"
|
|
# my_func:
|
|
# my_func:
|
|
# [...]
|
|
# [...]
|
|
# call mcount (offset: 0x5)
|
|
# call mcount (offset: 0x5)
|