public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH 0/3] picolibc: Add picolibc linking help
@ 2022-08-24 18:04 Keith Packard
  2022-08-24 18:04 ` [PATCH 1/3] picolibc: Allow default libc to be specified to configure Keith Packard
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Keith Packard @ 2022-08-24 18:04 UTC (permalink / raw)
  To: gcc; +Cc: gcc-patches, Keith Packard

Picolibc is a C library for embedded systems based on code from newlib
and avr libc. To connect some system-dependent picolibc functions
(like stdio) to an underlying platform, the platform may provide an OS
library.

This OS library must follow the C library in the link command line. In
current picolibc, that is done by providing an alternate .specs file
which can rewrite the *lib spec to insert the OS library in the right
spot.

This patch series adds the ability to specify the OS library on the
gcc command line when GCC is configured to us picolibc as the default
C library, and then hooks that up for arm, nds32, riscv and sh targets.

Keith Packard (3):
  Allow default libc to be specified to configure
  Add newlib and picolibc as default C library choices
  Add '--oslib=' option when default C library is picolibc

 gcc/config.gcc            | 56 ++++++++++++++++++++++++++++++++-------
 gcc/config/arm/elf.h      |  5 ++++
 gcc/config/nds32/elf.h    |  4 +++
 gcc/config/picolibc.opt   | 26 ++++++++++++++++++
 gcc/config/riscv/elf.h    |  4 +++
 gcc/config/sh/embed-elf.h |  5 ++++
 gcc/configure.ac          |  4 +++
 7 files changed, 95 insertions(+), 9 deletions(-)
 create mode 100644 gcc/config/picolibc.opt

-- 
2.36.1


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2022-09-03  6:02 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-24 18:04 [PATCH 0/3] picolibc: Add picolibc linking help Keith Packard
2022-08-24 18:04 ` [PATCH 1/3] picolibc: Allow default libc to be specified to configure Keith Packard
2022-08-24 18:04   ` [PATCH 2/3] picolibc: Add newlib and picolibc as default C library choices Keith Packard
2022-08-24 18:04     ` [PATCH 3/3] picolibc: Add '--oslib=' option when default C library is picolibc Keith Packard
2022-08-24 18:24 ` [PATCH 0/3] picolibc: Add picolibc linking help Andrew Pinski
2022-09-02 12:36 ` Richard Sandiford
2022-09-03  6:02   ` Keith Packard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).