lp:klibc

Created by Thorsten Glaser on 2012-02-17 and last modified on 2020-07-25
Get this branch:
bzr branch lp:klibc

Branch merges

Related bugs

Related blueprints

Branch information

Owner:
Thorsten Glaser
Project:
klibc
Review team:
maximilian attems
Status:
Development

Import details

Import Status: Reviewed

This branch is an import of the HEAD branch of the Git repository at git://git.kernel.org/pub/scm/libs/klibc/klibc.git.

The next import is scheduled to run in 1 hour.

Last successful import was 4 hours ago.

Import started 4 hours ago on izar and finished 4 hours ago taking 20 seconds — see the log
Import started 10 hours ago on alnitak and finished 10 hours ago taking 25 seconds — see the log
Import started 16 hours ago on izar and finished 16 hours ago taking 20 seconds — see the log
Import started 22 hours ago on izar and finished 22 hours ago taking 20 seconds — see the log
Import started on 2020-08-06 on alnitak and finished on 2020-08-06 taking 20 seconds — see the log
Import started on 2020-08-05 on izar and finished on 2020-08-05 taking 20 seconds — see the log
Import started on 2020-08-05 on alnitak and finished on 2020-08-05 taking 20 seconds — see the log
Import started on 2020-08-05 on izar and finished on 2020-08-05 taking 20 seconds — see the log
Import started on 2020-08-05 on alnitak and finished on 2020-08-05 taking 25 seconds — see the log
Import started on 2020-08-04 on izar and finished on 2020-08-04 taking 20 seconds — see the log

Recent revisions

2143. By oliver on 2020-07-25

klcc: Remove the need for bash

Currently, in the entire klibc bash is only used to identify the path of
the perl binary. It is doing so using the bash built-in 'type' function,
which is POSIX compliant according to [0], but the option -c is not.

By using `command -v` instead, we achieve the same result, in a POSIX
compliant manor [1], potentially removing the unneeded bash dependency.

0 https://www.unix.com/man-page/posix/1p/type/
1 https://www.unix.com/man-page/posix/1p/command/

Signed-off-by: Olliver Schinagl <email address hidden>
Signed-off-by: Ben Hutchings <email address hidden>

2142. By Ben Hutchings on 2020-07-25

[klibc] tests: Add a trivial test for sysconf()

Signed-off-by: Ben Hutchings <email address hidden>

2141. By Ben Hutchings on 2020-07-25

Merge remote-tracking branch 'origin/sysconf'

2140. By Ben Hutchings on 2020-07-25

[klibc] stdio: Define all the _unlocked functions and macros

Clang 9.0 can optimise stdio function calls to use the _unlocked
variants, presumably based on escape analysis. We don't define many
of them, and adding a lot of -fno-builtin-* options to inhibit this
seems like a losing battle.

Since we don't support multi-threaded programs or locking in stdio,
define the _unlocked function names as aliases.

For completeness, also define corresponding _unlocked macros for the
macro-only pseudo-functions, and for the inline functions in stdio.h.

Signed-off-by: Ben Hutchings <email address hidden>

2139. By Ben Hutchings on 2020-07-25

[klibc] stdio: Add extern definition of clearerr()

We have an inline definition, but need an extern definition too.

Signed-off-by: Ben Hutchings <email address hidden>

2138. By Bill Wendling <email address hidden> on 2020-07-25

[klibc] Clean up clang warnings

Add or remove casts of the "void *" argument of ioctl.

Signed-off-by: Bill Wendling <email address hidden>
Signed-off-by: Ben Hutchings <email address hidden>

2137. By Bill Wendling <email address hidden> on 2020-07-25

[klibc] Kbuild: Add "-fcommon" for clang builds

Clang defaults to "-fno-common" which causes linking errors because of
duplicate symbols in the BSS section.

Signed-off-by: Bill Wendling <email address hidden>
Signed-off-by: Ben Hutchings <email address hidden>

2136. By Bill Wendling <email address hidden> on 2020-07-25

[klibc] Kbuild: support clang's lld

Clang's lld prefers the use of "-image-base" instead of
"-Ttext-segment".

Signed-off-by: Stanislav Fomichev <email address hidden>
Signed-off-by: Bill Wendling <email address hidden>
Signed-off-by: Ben Hutchings <email address hidden>

2135. By Bill Wendling <email address hidden> on 2020-07-25

[klibc] Kbuild: add support for clang builds

Add cc-name to klibc/scripts/Kbuild.include.

Make optimization flags not supported by clang conditional on cc-name.

Use "--print-file-name=include" and "--print-libgcc-file-name" when
using clang.

Use cc-option to enable compiler-specific flags.

Mark "bcmp" as not a builtin to prevent clang from using it.

Signed-off-by: Bill Wendling <email address hidden>
Signed-off-by: Ben Hutchings <email address hidden>

2134. By Ben Hutchings on 2020-07-25

[klibc] Kbuild: Fix the compiler execstack option

The compiler driver does not add any dashes to the options
given to -Wa, so we need to use either -Wa,--execstack or
-Wa,--noexecstack.

(I had this working some time ago, so I don't know how I ended up
committing the broken version.)

Signed-off-by: Ben Hutchings <email address hidden>

Branch metadata

Branch format:
Branch format 7
Repository format:
Bazaar repository format 2a (needs bzr 1.16 or later)
This branch contains Public information 
Everyone can see this information.

Subscribers