Displaying 20 results from an estimated 96 matches for "balign".
Did you mean:
align
2006 Jun 26
0
[klibc 22/43] arm support for klibc
...pp_pr3:
diff --git a/usr/klibc/arch/arm/crt0.S b/usr/klibc/arch/arm/crt0.S
new file mode 100644
index 0000000..1e81f8e
--- /dev/null
+++ b/usr/klibc/arch/arm/crt0.S
@@ -0,0 +1,23 @@
+#
+# arch/arm/crt0.S
+#
+# void _start(void)
+# {
+# __libc_init(elf_structure, atexit_ptr);
+# }
+#
+
+ .text
+ .balign 4
+ .type _start,#function
+ .globl _start
+
+#ifdef __thumb__
+ .thumb_func
+#endif
+
+_start: mov r0, sp
+ mov r1, #0
+ bl __libc_init
+
+ .size _start,.-_start
diff --git a/usr/klibc/arch/arm/setjmp.S b/usr/klibc/arch/arm/setjmp.S
new file mode 100644
index 0000000..1841bc7
--- /dev/null
+++ b/u...
2013 Dec 03
0
[klibc:master] ppc64: Add ppc64le support
...le
diff --git a/usr/klibc/arch/ppc64/crt0.S b/usr/klibc/arch/ppc64/crt0.S
index c976d5c..ed14534 100644
--- a/usr/klibc/arch/ppc64/crt0.S
+++ b/usr/klibc/arch/ppc64/crt0.S
@@ -9,25 +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...
2013 Dec 03
2
[PATCH 1/2] ppc64: Add ppc64le support
...le
diff --git a/usr/klibc/arch/ppc64/crt0.S b/usr/klibc/arch/ppc64/crt0.S
index c976d5c..250a84a 100644
--- a/usr/klibc/arch/ppc64/crt0.S
+++ b/usr/klibc/arch/ppc64/crt0.S
@@ -9,25 +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...
2010 Jan 25
5
[LLVMdev] ambiguity of .align
I just got this error message from the GNU assembler:
Error: alignment too large: 15 assumed
Which made me laugh at first. The corresponding input line was:
.align 16
Apparently what's going on here is that ".align 16" is ambiguous: on
some architectures it means ".balign 16", and on some it means ".p2align
16", which would mean ".balign 65536" if it were allowed. See:
http://ftp.gnu.org/pub/old-gnu/Manuals/gas-2.9.1/html_node/as_68.html
I'm not sure what the best way is to fix this. If LLVM wants to support
other assemblers presumably...
2007 Apr 18
1
[PATCH] Translate asm version of ELFNOTE macro into preprocessor macro
Hi,
I've come across some problems with the assembly version of the ELFNOTE
macro currently in -mm. (in
x86-put-note-sections-into-a-pt_note-segment-in-vmlinux.patch)
The first is that older gas does not support :varargs in .macro
definitions (in my testing 2.17 does while 2.15 does not, I don't know
when it became supported). The Changes file says binutils >= 2.12 so I
think we need
2011 Feb 16
2
fwd: fix up ARM assembly to use 'bx lr' in place of 'mov pc, lr'.
...bug/527720
--- klibc-1.5.20.orig/usr/klibc/arch/arm/vfork.S
+++ klibc-1.5.20/usr/klibc/arch/arm/vfork.S
@@ -25,7 +25,11 @@ vfork:
ldrcs r3, 1f
mvncs r0, #0
strcs r2, [r3]
+#if defined (___ARM_ARCH_4T__) || defined (__ARM_ARCH_4__)
mov pc, lr
+#else
+ bx lr
+#endif
.balign 4
1:
@@ -49,7 +53,11 @@ vfork:
str r2, [r1]
neg r0, r0
1:
+#if defined (___ARM_ARCH_4T__) || defined (__ARM_ARCH_4__)
mov pc, lr
+#else
+ bx lr
+#endif
.balign 4
2:
--- klibc-1.5.20.orig/usr/klibc/arch/arm/setjmp.S
+++ klibc-1.5.20/usr/klibc/arch/arm/setjmp.S
@@ -29,7 +29,11 @@
setjmp...
2013 Nov 12
0
[klibc:master] arm64: Add arm64 support
...index 62%
copy from usr/klibc/arch/arm/crt0.S
copy to usr/klibc/arch/arm64/crt0.S
index 1e81f8e..0b2dd32 100644
--- a/usr/klibc/arch/arm/crt0.S
+++ b/usr/klibc/arch/arm64/crt0.S
@@ -1,5 +1,5 @@
#
-# arch/arm/crt0.S
+# arch/arm64/crt0.S
#
# void _start(void)
# {
@@ -8,16 +8,12 @@
#
.text
- .balign 4
+ .balign 8
.type _start,#function
.globl _start
-#ifdef __thumb__
- .thumb_func
-#endif
-
-_start: mov r0, sp
- mov r1, #0
+_start:
+ mov x0, sp
+ mov x1, #0
bl __libc_init
-
.size _start,.-_start
diff --git a/usr/klibc/arch/arm64/setjmp.S b/usr/klibc/arch/arm64/setjmp.S
new file mode...
2006 Jun 26
0
[klibc 23/43] cris support for klibc
...c/arch/cris/__negdi2.S
@@ -0,0 +1,25 @@
+/*
+ * arch/cris/__negdi2.c
+ */
+
+/*
+ * In 2's complement arithmetric, -x == (~x + 1), so
+ * -{h,l} = (~{h,l} + {0,1)
+ * -{h,l} = {~h,~l} + {0,1}
+ * -{h,l} = {~h + cy, ~l + 1}
+ * ... where cy = (l == 0)
+ * -{h,l} = {~h + cy, -l}
+ */
+
+ .text
+ .balign 4
+ .type __negdi2, at function
+ .globl __negdi2
+__negdi2:
+ neg.d $r10,$r10
+ seq $r12
+ not $r11
+ ret
+ add.d $r12,$r11
+
+ .size __negdi2, .-__negdi2
diff --git a/usr/klibc/arch/cris/crt0.S b/usr/klibc/arch/cris/crt0.S
new file mode 100644
index 0000000..22cb9b4
--- /dev/null
+++ b/usr/klib...
2020 Apr 30
0
[klibc:master] arch: Remove cris port
...negdi2.S
+++ /dev/null
@@ -1,25 +0,0 @@
-/*
- * arch/cris/__negdi2.c
- */
-
-/*
- * In 2's complement arithmetric, -x == (~x + 1), so
- * -{h,l} = (~{h,l} + {0,1)
- * -{h,l} = {~h,~l} + {0,1}
- * -{h,l} = {~h + cy, ~l + 1}
- * ... where cy = (l == 0)
- * -{h,l} = {~h + cy, -l}
- */
-
- .text
- .balign 4
- .type __negdi2, at function
- .globl __negdi2
-__negdi2:
- neg.d $r10,$r10
- seq $r12
- not $r11
- ret
- add.d $r12,$r11
-
- .size __negdi2, .-__negdi2
diff --git a/usr/klibc/arch/cris/crt0.S b/usr/klibc/arch/cris/crt0.S
deleted file mode 100644
index 22cb9b4e..00000000
--- a/usr/klibc/arch/c...
2019 Jan 18
0
[klibc:master] arch: Remove m32r port
...ndex 568e5d8..0000000
--- a/usr/klibc/arch/m32r/crt0.S
+++ /dev/null
@@ -1,24 +0,0 @@
-#
-# arch/m32r/crt0.S
-#
-# Does arch-specific initialization and invokes __libc_init
-# with the appropriate arguments.
-#
-# See __static_init.c or __shared_init.c for the expected
-# arguments.
-#
-
- .text
- .balign 4
- .type _start, at function
- .globl _start
-_start:
- /* Save the address of the ELF argument array */
- mv r0, sp
-
- /* atexit() function (assume null) */
- xor r1, r1
-
- bl __libc_init
-
- .size _start, .-_start
diff --git a/usr/klibc/arch/m32r/setjmp.S b/usr/klibc/arch/m32r/setjmp.S
deleted...
2006 Jun 26
0
[klibc 26/43] m32r support for klibc
...ndex 0000000..568e5d8
--- /dev/null
+++ b/usr/klibc/arch/m32r/crt0.S
@@ -0,0 +1,24 @@
+#
+# arch/m32r/crt0.S
+#
+# Does arch-specific initialization and invokes __libc_init
+# with the appropriate arguments.
+#
+# See __static_init.c or __shared_init.c for the expected
+# arguments.
+#
+
+ .text
+ .balign 4
+ .type _start, at function
+ .globl _start
+_start:
+ /* Save the address of the ELF argument array */
+ mv r0, sp
+
+ /* atexit() function (assume null) */
+ xor r1, r1
+
+ bl __libc_init
+
+ .size _start, .-_start
diff --git a/usr/klibc/arch/m32r/setjmp.S b/usr/klibc/arch/m32r/setjmp.S
new fil...
2013 Nov 08
0
[PATCH 3/3] arm64: Introduce arm64 support
...diff --git a/usr/klibc/arch/arm64/crt0.S b/usr/klibc/arch/arm64/crt0.S
new file mode 100644
index 0000000..0b2dd32
--- /dev/null
+++ b/usr/klibc/arch/arm64/crt0.S
@@ -0,0 +1,19 @@
+#
+# arch/arm64/crt0.S
+#
+# void _start(void)
+# {
+# __libc_init(elf_structure, atexit_ptr);
+# }
+#
+
+ .text
+ .balign 8
+ .type _start,#function
+ .globl _start
+
+_start:
+ mov x0, sp
+ mov x1, #0
+ bl __libc_init
+ .size _start,.-_start
diff --git a/usr/klibc/arch/arm64/pipe.c b/usr/klibc/arch/arm64/pipe.c
new file mode 100644
index 0000000..f10a69e
--- /dev/null
+++ b/usr/klibc/arch/arm64/pipe.c
@@ -0,0 +1,10 @...
2012 Jul 03
13
[PATCH] various Xen fixes for v3.6 (v1).
I am working on some other bugs and perf issues - and while working I noticed
that both sparse and Coverity have reported some issues with Xen drivers.
Please see attached various bug-fixes that I am proposing for 3.6.
2004 Jun 23
4
CRIS port of klibc
...+ libgcc/__negdi2.o \
+ libgcc/crisarith.o
archclean:
diff -urN ./klibc/arch/cris/crt0.S
../klibc-0.146-modified/klibc/arch/cris/crt0.S
--- ./klibc/arch/cris/crt0.S Thu Jun 10 08:59:15 2004
+++ ../klibc-0.146-modified/klibc/arch/cris/crt0.S Wed Jun 23 09:21:00
2004
@@ -10,9 +10,9 @@
.text
.balign 4
- .type __start,@function
- .globl __start
-__start:
+ .type _start,@function
+ .globl _start
+_start:
/* Save the address of the ELF argument array */
move.d $sp,$r10 /* Address of ELF arguments */
@@ -21,8 +21,8 @@
/* Set up a dummy stack frame to keep gcc from getting confused */...
2010 Jan 25
0
[LLVMdev] ambiguity of .align
...GNU assembler:
>
> Error: alignment too large: 15 assumed
>
> Which made me laugh at first. The corresponding input line was:
>
> .align 16
>
> Apparently what's going on here is that ".align 16" is ambiguous: on
> some architectures it means ".balign 16", and on some it means ".p2align
> 16", which would mean ".balign 65536" if it were allowed. See:
>
> http://ftp.gnu.org/pub/old-gnu/Manuals/gas-2.9.1/html_node/as_68.html
>
> I'm not sure what the best way is to fix this. If LLVM wants to support
>...
2006 Jun 21
2
Theora MMX and Mac OS X Intel
hi,
i was trying to enable the mmx code on mac os x.
to get to that point one has to replace some inline assembler code:
.balign 16 -> .p2align 4
and replace .rept .. .endr with #defines.
but to makes things more complicated apple's GAS does not support
movsx instructions and thus the following line does not work:
" movsx %%di, %%edi \n\t"
[ more details at https://trac.xiph.org/browser/trunk/...
2018 May 23
0
[PATCH v3 18/27] xen: Adapt assembly for PIE support
...4 expects boot_params in %rsi. */
- mov $_pa(pvh_bootparams), %rsi
- mov $_pa(startup_64), %rax
+ movabs $_pa(pvh_bootparams), %rsi
+ movabs $_pa(startup_64), %rax
jmp *%rax
#else /* CONFIG_X86_64 */
@@ -137,10 +137,15 @@ END(pvh_start_xen)
.section ".init.data","aw"
.balign 8
+ /*
+ * Use a quad for _pa(gdt_start) because PIE does not understand a
+ * long is enough. The resulting value will still be in the lower long
+ * part.
+ */
gdt:
.word gdt_end - gdt_start
- .long _pa(gdt_start)
- .word 0
+ .quad _pa(gdt_start)
+ .balign 8
gdt_start:
.quad 0x000000000...
2010 Jan 26
0
[LLVMdev] ambiguity of .align
...GNU assembler:
>
> Error: alignment too large: 15 assumed
>
> Which made me laugh at first. The corresponding input line was:
>
> .align 16
>
> Apparently what's going on here is that ".align 16" is ambiguous: on
> some architectures it means ".balign 16", and on some it means ".p2align
> 16", which would mean ".balign 65536" if it were allowed. See:
>
> http://ftp.gnu.org/pub/old-gnu/Manuals/gas-2.9.1/html_node/as_68.html
>
> I'm not sure what the best way is to fix this. If LLVM wants to support
>...
2004 Aug 24
5
MMX/mmxext optimisations
quite some speed improvement indeed.
attached the updated patch to apply to svn/trunk.
j
-------------- next part --------------
A non-text attachment was scrubbed...
Name: theora-mmx.patch.gz
Type: application/x-gzip
Size: 8648 bytes
Desc: not available
Url : http://lists.xiph.org/pipermail/theora-dev/attachments/20040824/5a5f2731/theora-mmx.patch-0001.bin
2014 Sep 09
3
[PATCH] ppc64: ELFv2: Load TOC value in system call stub
...pc64/sysstub.ph
+++ b/usr/klibc/arch/ppc64/sysstub.ph
@@ -18,6 +18,9 @@ sub make_sysstub($$$$$@) {
#if _CALL_ELF == 2
.type ${fname},\@function
${fname}:
+0: addis 2,12,(.TOC.-0b)\@ha
+ addi 2,2,(.TOC.-0b)\@l
+ .localentry ${fname},.-${fname}
#else
.section ".opd","aw"
.balign 8
--
1.7.1