Displaying 20 results from an estimated 180 matches for "crt0".
Did you mean:
cr0
2019 Jan 18
0
[klibc:master] mips/mips64: simplify crt0 code
...ibc/klibc.git;a=commit;h=59f3f33338f371b3a30163406fbb5fe323503939
Author: James Cowgill <james.cowgill at mips.com>
AuthorDate: Fri, 2 Mar 2018 08:33:02 -0800
Committer: Ben Hutchings <ben at decadent.org.uk>
CommitDate: Wed, 2 Jan 2019 03:08:04 +0000
[klibc] mips/mips64: simplify crt0 code
Various simplifications and adjustments to the MIPS crt0 files:
- Use NESTED(__start, 0, ra) - this has no effect on the code, but is
arguably more correct since we have no real stack frame.
- Don't allocate extra stack space. We need none on 64-bit, and only 16
bytes on 32-bit.
- Ali...
2004 Aug 23
1
[PATCH] fix alpha build
alpha does not compile right now:
arch/alpha/crt0.S: Assembler messages:
arch/alpha/crt0.S:21: Warning: .ent directive without matching .end
arch/alpha/crt0.S:21: Error: can't resolve `0' {.text section} - `L0' {.text section}
make[1]: *** [arch/alpha/crt0.o] Error 1
It still doesnt work with that change, ash cant run external binarie...
2006 May 05
0
[patch] m68k build crt0
found by Christian T. Steigies <cts@debian.org>
usr/klibc/arch/m68k/crt0.o: In function `_start':
usr/klibc/arch/m68k/crt0.S:(.text+0xe): undefined reference to `___libc_init'
too many '_'.
never seen jbsr, converted that to jsr.
Signed-off-by: maximilian attems <maks@sternwelten.at>
diff --git a/usr/klibc/arch/m68k/crt0.S b/usr/klibc/arch/m68k/...
2003 Nov 28
2
[PATCH] update crt0.S on ppc32
..., but ppc was not updated.
This fixes klibc for me. I'm not sure what to do with the second arg to
__libc_init, so I set it to 0..
However, looking at other static binaries, there is more stuff todo.
diff -p -purNx linux -x '.*.d' -x syscalls -x socketcalls y/klibc-0.87/klibc/arch/ppc/crt0.S klibc-0.87/klibc/arch/ppc/crt0.S
--- y/klibc-0.87/klibc/arch/ppc/crt0.S 2002-08-10 13:28:55.000000000 +0200
+++ klibc-0.87/klibc/arch/ppc/crt0.S 2003-11-28 00:39:11.000000000 +0100
@@ -1,29 +1,14 @@
#
# arch/ppc/crt0.S
#
-# void _start(void)
-# {
-# /* Divine up argc, argv, and envp */
-#...
2005 Dec 02
0
Fix invalid operands compile error in parisc/crt0.S
The iitlbp instruction needs the space register explicitly
specified with newer toolchains. Specify sr0, but it doesn't
really matter as the insn is just used to crash the program.
Signed-off-by: Kyle McMartin <kyle@parisc-linux.org>
diff --git a/klibc/arch/parisc/crt0.S b/klibc/arch/parisc/crt0.S
index fb0bd37..7adc6c4 100644
--- a/klibc/arch/parisc/crt0.S
+++ b/klibc/arch/parisc/crt0.S
@@ -29,6 +29,6 @@ _start:
bl __libc_init,%r2
nop
/* break miserably if we ever return */
- iitlbp %r0,(%r0) /* illegal instruction */
+ iitlbp %...
2006 Jul 09
6
[PATCH/RFC] klibc/kbuild: use separate kbuild files for each klibc subdirectory
...C_ZLIB) += zlib/
+# arch specific .o files
+klib-y += arch/$(KLIBCARCHDIR)/
#####
# Add any architecture-specific rules
@@ -72,14 +68,14 @@ include $(obj)/arch/$(KLIBCARCHDIR)/Make
#####
# Shared definitions
-LIB := libc.a
+LIBC := libc.a
SOLIB := libc.so
SOHASH := klibc.so
CRT0 := arch/$(KLIBCARCHDIR)/crt0.o
INTERP_O := interp.o
-always := $(CRT0) $(LIB) $(SOLIB) $(SOHASH) $(INTERP_O)
-LIB := $(call objectify,$(LIB))
+always := $(LIBC) $(SOLIB) $(SOHASH) $(INTERP_O)
+LIBC := $(call objectify,$(LIBC))
SOLIB := $(call objectify,$(SOLIB))
SOHASH :=...
2003 Oct 04
0
klibc: kbuild improvements
...4 2003
+++ edited/Makefile Sat Oct 4 06:51:19 2003
@@ -255,7 +255,7 @@
include $(KLIBSRC)/arch/$(ARCH)/MCONFIG
-export USERLD USERCC USERAR USERSTRIP USERNM \
+export KLIBSRC USERLD USERCC USERAR USERSTRIP USERNM \
USERCFLAGS USERAFLAGS USERLIBGCC USERSHAREDFLAGS USERSTRIPFLAGS \
USERCRT0 USERLIBC
===== scripts/Makefile.user 1.3 vs edited =====
--- 1.3/scripts/Makefile.user Tue Jun 10 05:56:56 2003
+++ edited/scripts/Makefile.user Sat Oct 4 22:47:02 2003
@@ -13,7 +13,7 @@
objectify = $(foreach o,$(1),$(if $(filter /%,$(o)),$(o),$(obj)/$(o)))
-build-multi := $(foreach o,$(bu...
2020 Jul 28
1
[PATCH] mk/efi: add -znoseparate-code to LD_FLAGS for EFI builds
...nt activity is low. We still wanted to
contribute this fix in case it may be helpful to anyone.
Thanks
Johannes
Signed-off-by: Johannes Frohnhofen <jf at daedalean.ai>
--- mk/efi.mk.orig 2020-07-28 12:31:48.814356659 +0000
+++ mk/efi.mk 2020-07-28 12:37:22.292205578 +0000
@@ -37,7 +37,8 @@ CRT0 := $(LIBDIR)/crt0-efi-$(EFI_SUBARCH
LDSCRIPT := $(LIBDIR)/elf_$(EFI_SUBARCH)_efi.lds
LDFLAGS = -T $(SRC)/$(ARCH)/syslinux.ld -Bsymbolic -pie -nostdlib
-znocombreloc \
- -L$(LIBDIR) --hash-style=gnu -m elf_$(ARCH) $(CRT0) -E
+ -znoseparate-code -L$(LIBDIR) --hash-style=gnu -m elf_$(ARCH) \
+...
2006 Nov 06
0
[LLVMdev] LLVM and libc
...operate on
the serial port.
To me, the most sensible approach would be to port newlib to
the LLVM virtual machine, and use LLVM intrinsic functions
as placeholders for the actual system calls. The back end
would then emit target specific code for the intrinsics.
What I don't quite see is how crt0 fits in the picture. Am I
right in assuming that when llvm-gcc emits LLVM byte code, there
is no crt0 involved? I haven't checked how the other back ends
do it, but I assume that they rely on the host libc and crt0.
In my case, I envision libc being linked in at the bytecode
level, and crt0 bei...
2006 May 11
0
[patch] klibc: merge s390 and s390x
...26 -------------------
usr/include/arch/s390x/klibc/archsys.h | 41 ------------------------------
usr/klibc/Kbuild | 6 ++--
usr/klibc/arch/s390/MCONFIG | 7 ++++-
usr/klibc/arch/s390/Makefile.inc | 17 ++++++++++--
usr/klibc/arch/s390/crt0.S | 10 +++++++
usr/klibc/arch/s390/mmap.c | 36 ++++++++++++++++++++++++++
usr/klibc/arch/s390/setjmp.S | 34 ++++++++++++++++++++++++
usr/klibc/arch/s390/sysstub.ph | 11 +++++++-
usr/klibc/arch/s390x/MCONFIG | 13 ------...
2006 May 24
1
[patch] klibc: merge s390/s390x 2nd try
...-------------------
usr/include/arch/s390x/klibc/archsys.h | 41 ------------------------------
usr/klibc/Kbuild | 6 ++--
usr/klibc/arch/s390/MCONFIG | 12 ++++++++
usr/klibc/arch/s390/Makefile.inc | 17 ++++++++++--
usr/klibc/arch/s390/crt0.S | 10 +++++++
usr/klibc/arch/s390/mmap.c | 36 ++++++++++++++++++++++++++
usr/klibc/arch/s390/setjmp.S | 34 ++++++++++++++++++++++++
usr/klibc/arch/s390/sysstub.ph | 11 +++++++-
usr/klibc/arch/s390x/MCONFIG | 13 ------...
2006 Nov 02
4
[LLVMdev] LLVM and libc
We are going to use LLVM in a compiler project for transport
triggered processors. See Wikipedia for more on transport triggering:
<http://en.wikipedia.org/wiki/Transport_Triggered_Architectures>.
One thing we need is some sort of libc. We are targeting embedded
systems, and I have been looking at things like newlib. Are there
people out there doing something similar? Or any advice or
2004 Feb 21
1
[PATCH] sleep for klibc utils
...CFLAGS = $(MAKEDEPS) $(OPTFLAGS) $(REQFLAGS) -W -Wall
LIBS = $(KLIBC) $(LIBGCC)
-PROGS = chroot dd fstype mkdir mkfifo mount pivot_root umount true false
+PROGS = chroot dd fstype mkdir mkfifo mount pivot_root umount true false sleep
all: $(PROGS)
@@ -39,6 +39,9 @@ true: true.o $(CRT0) $(LIBS)
false: false.o $(CRT0) $(LIBS)
$(LD) $(LDFLAGS) -o $@ $(CRT0) false.o $(LIBS)
+sleep: sleep.o $(CRT0) $(LIBS)
+ $(LD) $(LDFLAGS) -o $@ $(CRT0) sleep.o $(LIBS)
+
$(CRT0) $(LIBS):
@echo '*** error: $@ not up to date' || exit 1
diff -p -purN klibc-0.111/utils/sleep.c klibc-0...
2006 Jan 08
1
[mips] doesn't compile on little-endian
When I compile klibc on little-endian mips, I get:
KLIBCLD klibc/libc.so
ld: klibc/arch/mips/crt0.o: compiled for a little endian system and target is big endian
ld: klibc/arch/mips/crt0.o: endianness incompatible with that of the selected emulation
ld: failed to merge target specific data of file klibc/arch/mips/crt0.o
When I change "elf32-tradbigmips" to "elf32-tradlittlemips&...
2023 Mar 05
0
[klibc:master] Add LoongArch64 port
...+-
.../arch/{riscv64 => loongarch64}/machine/asm.h | 4 +-
usr/klibc/SYSCALLS.def | 2 +-
usr/klibc/arch/loongarch64/Kbuild | 7 +++
usr/klibc/arch/{sparc64 => loongarch64}/MCONFIG | 17 ++++----
usr/klibc/arch/{riscv64 => loongarch64}/crt0.S | 14 +++---
usr/klibc/arch/loongarch64/setjmp.S | 50 ++++++++++++++++++++++
usr/klibc/arch/loongarch64/syscall.S | 13 ++++++
usr/klibc/arch/{riscv64 => loongarch64}/sysstub.ph | 10 ++---
11 files changed, 97 insertions(+), 35 deletions(-)
diff --git a/usr/...
2005 Feb 25
1
klibc wrapper
...0 -falign-jumps=0 -falign-loops=0 [I think they are to optimize for size]
-nostdinc -iwithprefix [include dir prefix] include -D__KLIBC__ -DBITSIZE=32
-I -I ... -DWITH_ERRLIST
-W -Wall -Wpointer-arith -Wwrite-strings -Wstrict-prototypes -Winline -c -o tests/hello.o
crt0.o tests/hello.o libc.a /usr/lib/gcc/i686-pc-linux-gnu/3.4.1/libgcc.a
ld -o tests/hello crt0.o tests/hello.o libc.a /usr/lib/gcc/i686-pc-linux-gnu/3.4.1/libgcc.a
I guess I need to do a few things here:
1. copy libc.a crt0.o somewhere fixed
2. copy klibc include dir somewhere fixed
3. figure ou...
2015 Mar 06
0
[klibc:master] add-mips64-support-arch-mips64-specific
...15 16:51:45 -0800
Committer: H. Peter Anvin <hpa at linux.intel.com>
CommitDate: Thu, 5 Mar 2015 16:51:45 -0800
add-mips64-support-arch-mips64-specific
Description: Adding mips64 specific chagnes.
Modeled on mips 32 and adapted for 64 bit ABI.
- MCONFIG: using existing klibc.ld scrpit
- crt0.S: adapted gp initialization
- setjmp.S: do not save floating-point state
---
usr/klibc/arch/mips64/MCONFIG | 2 ++
usr/klibc/arch/mips64/crt0.S | 31 ++++++++++++++++++++++++++
usr/klibc/arch/mips64/setjmp.S | 50 ++++++++++++++++++++++++++++++++++++++++++
3 files changed, 83 insertions(+...
2018 Mar 02
5
[PATCH 0/5] Various MIPS fixes
...nd fixed a few other things as well. Here are
various miscellaneous MIPS patches, although the first patch is the important
one.
Thanks,
James
*** BLURB HERE ***
James Cowgill (5):
mips64: compile with -mno-abicalls
mips: use -Ttext-segment when linking shared library
mips/mips64: simplify crt0 code
mips: don't save floating point registers in setjmp / longjmp
mips64: remove __unused from __jmp_buf
usr/include/arch/mips/klibc/archsetjmp.h | 14 --
usr/include/arch/mips64/klibc/archsetjmp.h | 1 -
usr/klibc/arch/mips/MCONFIG | 7 +-
usr/klibc/arch/mips/crt0....
2013 Nov 12
0
[klibc:master] arm64: Add arm64 support
...| 11 +++++
usr/klibc/README.klibc | 1 +
usr/klibc/SYSCALLS.def | 2 +-
usr/klibc/arch/{parisc => arm64}/Kbuild | 5 +--
usr/klibc/arch/{sparc64 => arm64}/MCONFIG | 18 +++++----
usr/klibc/arch/{arm => arm64}/crt0.S | 14 +++----
usr/klibc/arch/arm64/setjmp.S | 47 ++++++++++++++++++++++
usr/klibc/arch/arm64/syscall.S | 25 ++++++++++++
usr/klibc/arch/arm64/sysstub.ph | 25 ++++++++++++
usr/klibc/arch/arm64/vfork.S...
2004 Dec 16
1
SYSLINUX 2.20-pre1 available
After a couple of very late nights I actually have a VERY preliminary
test of the rewritten SYSLINUX available for preview.
However; don't expect it to do anything miraculous yet; the testing it
has gotten can best be described as infinitesimal. In theory, though,
it should now support EDD and FAT32, as well as FAT filesystems with
very large clusters (up to 64K).
NOTE: The Win32