Displaying 6 results from an estimated 6 matches for "tocbase".
2013 Dec 03
0
[klibc:master] ppc64: Add ppc64le support
...5 +9,35 @@
# }
#
- .section ".toc","aw"
-.LC0: .tc environ[TC],environ
-
.text
- .align 4
-
+ .balign 4
+ .globl _start
+#if _CALL_ELF == 2
+ .type _start, at function
+_start:
+#else
.section ".opd","aw"
+ .balign 8
_start:
.quad ._start, .TOC. at tocbase, 0
.previous
- .size _start, 24
.type ._start, at function
- .globl _start
- .globl ._start
._start:
- stdu %r1,-32(%r1)
- addi %r3,%r1,32
+#endif
+
+#if _CALL_ELF == 2
+0: addis 2,12,.TOC.-0b at ha
+ addi 2,2,.TOC.-0b at l
+#endif
+
+ stdu %r1,-32(%r1)
+ addi %r3,%r1,32
li %r4,0 /* f...
2013 Dec 03
2
[PATCH 1/2] ppc64: Add ppc64le support
...5 +9,35 @@
# }
#
- .section ".toc","aw"
-.LC0: .tc environ[TC],environ
-
.text
- .align 4
-
+ .balign 4
+ .globl _start
+#if _CALL_ELF == 2
+ .type _start, at function
+_start:
+#else
.section ".opd","aw"
+ .balign 8
_start:
.quad ._start, .TOC. at tocbase, 0
.previous
- .size _start, 24
.type ._start, at function
- .globl _start
- .globl ._start
._start:
- stdu %r1,-32(%r1)
- addi %r3,%r1,32
+#endif
+
+#if _CALL_ELF == 2
+0: addis 2,12,.TOC.-0b at ha
+ addi 2,2,.TOC.-0b at l
+#endif
+
+ stdu %r1,-32(%r1)
+ addi %r3,%r1,32
li %r4,0 /* f...
2006 Jun 26
0
[klibc 32/43] ppc64 support for klibc
...+# /* Divine up argc, argv, and envp */
+# environ = envp;
+# exit(main(argc, argv, envp));
+# }
+#
+
+ .section ".toc","aw"
+.LC0: .tc environ[TC],environ
+
+ .section ".opd","aw"
+ .align 3
+ .globl _start
+_start:
+ .quad ._start
+ .quad .TOC. at tocbase, 0
+
+ .text
+ .globl ._start
+ .type ._start, at function
+._start:
+ stdu %r1,-32(%r1)
+ addi %r3,%r1,32
+ li %r4,0 /* fini (unused) */
+ b .__libc_init
+ nop
+
+ .size _start,.-_start
diff --git a/usr/klibc/arch/ppc64/setjmp.S b/usr/klibc/arch/ppc64/setjmp.S
new file mode 100644
index 00...
2003 Dec 12
2
[PATCH] ppc64 support
...rch/ppc64/setjmp.S 2003-11-25 05:49:26.000000000 +0000
@@ -0,0 +1,46 @@
+#
+# arch/ppc64/setjmp.S
+#
+# Basic setjmp/longjmp implementation
+# This file was derived from the equivalent file in NetBSD
+#
+
+ .text
+ .align 4
+
+ .section ".opd","aw"
+setjmp:
+ .quad .setjmp,.TOC.@tocbase,0
+ .previous
+ .size setjmp,24
+ .type .setjmp,@function
+ .globl setjmp
+ .globl .setjmp
+.setjmp:
+ mflr %r11 /* save return address */
+ mfcr %r12 /* save condition register */
+ mr %r10,%r1 /* save stack point...
2011 Sep 17
0
[LLVMdev] Problem with Linux PPC64 assembly output.
The latest binutils (2.21.2) assembler for the PPC64 complains about the .size
directive emitted by LLVM as not containing an absolute expression.
An example:
__umodsi3:
.quad .L.__umodsi3,.TOC. at tocbase
.previous
.L.__umodsi3:
mflr 0
[snip]
mtlr 0
blr
.Ltmp0:
.size __umodsi3, .Ltmp0-__umodsi3
The correct size expression should be .Ltmp0-.L.__umodsi3
The code which does this is in AsmPrinter.cpp:
// If the target wants a .size directive for the size o...
2006 Jun 28
35
[klibc 00/31] klibc as a historyless patchset (updated and reorganized)
I have updated the klibc patchset based on feedback received. In
particular, the patchset has been reorganized so as not to break
git-bisect.
Additionally, this updates the patch base to 2.6.17-git12
(d38b69689c349f35502b92e20dafb30c62d49d63) and klibc 1.4.8; the main
difference on the klibc side is removal of obsolete code.
This is also available as a git tree at: