search for: libc_init

Displaying 8 results from an estimated 8 matches for "libc_init".

Did you mean: lib_init
2014 Jan 25
0
[klibc:master] auxv: convert auxiliary vector into an array; define getauxval()
...into an array; define getauxval() Convert the ELF auxiliary vector into an array. Define getauxval() as an inline accessor to that array. Signed-off-by: H. Peter Anvin <hpa at zytor.com> --- usr/include/sys/auxv.h | 16 ++++++++++++++++ usr/include/sys/elfcommon.h | 2 ++ usr/klibc/libc_init.c | 25 ++++++++++++------------- 3 files changed, 30 insertions(+), 13 deletions(-) diff --git a/usr/include/sys/auxv.h b/usr/include/sys/auxv.h new file mode 100644 index 0000000..08fcfcf --- /dev/null +++ b/usr/include/sys/auxv.h @@ -0,0 +1,16 @@ +#ifndef _SYS_AUXV_H +#define _SYS_AUXV_H...
2014 Jan 25
0
[klibc:master] i386: use the vdso for system calls on i386
.... The vdso can provide either int $0x80, sysenter or syscall depending on the CPU. Signed-off-by: H. Peter Anvin <hpa at zytor.com> --- usr/klibc/arch/i386/socketcall.S | 2 +- usr/klibc/arch/i386/syscall.S | 16 +++++++++++++++- usr/klibc/arch/i386/vfork.S | 7 +++++-- usr/klibc/libc_init.c | 9 +++++++++ 4 files changed, 30 insertions(+), 4 deletions(-) diff --git a/usr/klibc/arch/i386/socketcall.S b/usr/klibc/arch/i386/socketcall.S index a40cc02..44e2004 100644 --- a/usr/klibc/arch/i386/socketcall.S +++ b/usr/klibc/arch/i386/socketcall.S @@ -32,7 +32,7 @@ __socketcall...
2015 Nov 05
0
[klibc:master] Inline __arch_libcinit()
...d3575948b3d0de28daee38261 Author: H. Peter Anvin <hpa at zytor.com> AuthorDate: Thu, 5 Nov 2015 08:52:33 -0800 Committer: H. Peter Anvin <hpa at zytor.com> CommitDate: Thu, 5 Nov 2015 14:22:01 -0800 [klibc] Inline __arch_libcinit() __arch_libcinit() is only ever used as part of __libc_init(), so we might as well make it an inline function. Signed-off-by: H. Peter Anvin <hpa at zytor.com> --- scripts/Kbuild.klibc.include | 11 +++++++++++ usr/include/arch/i386/klibc/archconfig.h | 2 +- .../i386/archinit.c => include/a...
2014 Apr 09
0
[klibc:master] Move architecture-specific initialization to arch/
...:01 -0700 [klibc] Move architecture-specific initialization to arch/ Move out architecture-specific initialization code (currently only for i386) into the arch/ directory and define a configuration variable _KLIBC_HAS_ARCHINIT to indicate its presence. For consistency, change __init_stdio() to __libc_init_stdio(). Signed-off-by: H. Peter Anvin <hpa at linux.intel.com> --- usr/include/arch/i386/klibc/archconfig.h | 3 +++ usr/include/klibc/sysconfig.h | 9 +++++++++ usr/klibc/arch/i386/Kbuild | 2 +- usr/klibc/arch/i386/archinit.c | 18 ++++++++++++++++++...
2020 Jun 18
1
[PATCH] Kbuild for klibc and nfsmount: fix multiple definitions
...nymore, with GCC 10 you get the following failure without it: KLIBCLD usr/klibc/libc.so ppc-linux-ld: usr/klibc/globals.o:/root/packages/klibc-2.0.7/usr/klibc/../include/unistd.h:15: multiple definition of `environ'; usr/klibc/__shared_init.o:/root/ldb_base/ofl/packages/klibc-2.0.7/usr/klibc/libc_init.c:42: first defined here ppc-linux-ld: usr/klibc/sbrk.o:(.sbss+0x0): multiple definition of `__current_brk'; usr/klibc/brk.o:(.sbss+0x0): first defined here ppc-linux-ld: usr/klibc/getopt_long.o:(.sbss+0x8): multiple definition of `optind'; usr/klibc/getopt.o:(.sbss+0x8): first defined here...
2012 Jan 29
5
[PATCH 0/2 v3] mkstemp() and m68k support
Hi, after a year, I decided to hack on klibc again. I?ve reworked both the patch to add mkstemp(), discussing to use AT_RANDOM as cheap entropy source on IRC (if there will ever be another entropy consumer, I can quickly write a minimal arc4random() seeded from it, as it has only 16 octets), capable of making a working mksh (static and shared) on amd64/xen, and the m68k support code, leading to
2020 Jun 17
1
[PATCH] Kbuild for klibc and nfsmount: add -fcommon
...nymore, with GCC 10 you get the following failure without it: KLIBCLD usr/klibc/libc.so ppc-linux-ld: usr/klibc/globals.o:/root/packages/klibc-2.0.7/usr/klibc/../include/unistd.h:15: multiple definition of `environ'; usr/klibc/__shared_init.o:/root/ldb_base/ofl/packages/klibc-2.0.7/usr/klibc/libc_init.c:42: first defined here ppc-linux-ld: usr/klibc/sbrk.o:(.sbss+0x0): multiple definition of `__current_brk'; usr/klibc/brk.o:(.sbss+0x0): first defined here ppc-linux-ld: usr/klibc/getopt_long.o:(.sbss+0x8): multiple definition of `optind'; usr/klibc/getopt.o:(.sbss+0x8): first defined here...
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: