summaryrefslogtreecommitdiff
path: root/libc/sysdeps
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2011-05-05 09:27:15 +0200
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2011-05-05 09:27:15 +0200
commit2297e6e1e075070d6e62dfe7cccfab600de12870 (patch)
treeedb54bad6fdc3e97a7e08afb52bb1ae40abbd215 /libc/sysdeps
parent07464c3e7156f4c8dfcac673c74f19b700b1b3b5 (diff)
x86_64: fix .size of _init/_fini
binutils-2.21 barf on .size that do not evaluate to const, so use the section size and not a function that is not visible here. Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Diffstat (limited to 'libc/sysdeps')
-rw-r--r--libc/sysdeps/linux/x86_64/crtn.S4
1 files changed, 2 insertions, 2 deletions
diff --git a/libc/sysdeps/linux/x86_64/crtn.S b/libc/sysdeps/linux/x86_64/crtn.S
index 5b110d967..ec40c21d2 100644
--- a/libc/sysdeps/linux/x86_64/crtn.S
+++ b/libc/sysdeps/linux/x86_64/crtn.S
@@ -7,7 +7,7 @@
.type _init, %function
addq $8, %rsp
ret
-.size _init,.-_init
+.size _init,.-.init
.section .fini
@@ -15,4 +15,4 @@
.type _fini, %function
addq $8, %rsp
ret
-.size _fini, .-_fini
+.size _fini, .-.fini