On 22/06/2022 07:24, Alexandre Oliva via Gcc-patches wrote:
+    } elseif { [istarget *-*-rtems*] } {
+       # Adding -Wl,--gc-sections would enable a few more tests to
+       # link, but all of them fail at runtime anyway, because the
+       # io_context ctor calls pipe(), which always fails, and thus
+       # the ctor throws a system error.
+       return "$flags -lbsd"

Using -Wl,--gc-sections is mandatory if you want to link against libbsd.a. In general, it is recommended for RTEMS applications.

For pipe() support in RTEMS, you currently need the

#define CONFIGURE_IMFS_ENABLE_MKFIFO

application configuration option.

--
embedded brains GmbH
Herr Sebastian HUBER
Dornierstr. 4
82178 Puchheim
Germany
email: sebastian.hu...@embedded-brains.de
phone: +49-89-18 94 741 - 16
fax:   +49-89-18 94 741 - 08

Registergericht: Amtsgericht München
Registernummer: HRB 157899
Vertretungsberechtigte Geschäftsführer: Peter Rasmussen, Thomas Dörfler
Unsere Datenschutzerklärung finden Sie hier:
https://embedded-brains.de/datenschutzerklaerung/

Reply via email to