newlib-cygwin/libgloss
Torbjörn SVENSSON b9e867d088 Add stub for getentropy
Example test case that fails with undefined reference to getentropy:

Testing g++.robertl/eb77.C,  -std=c++20
doing compile
Executing on host: /build/gcc-13-2709-g9ac9fde961f/bin/arm-none-eabi-g++  /build/src/gcc/gcc/testsuite/g++.old-deja/g++.robertl/eb77.C  -mthumb -march=armv6s-m -mcpu=cortex-m0 -mfloat-abi=soft -fdiagnostics-plain-output   -fmessage-length=0  -std=c++20 -pedantic-errors -Wno-long-long        -Wl,--start-group -lc -lm -Wl,--end-group --specs=nosys.specs -Wl,--allow-multiple-definition -Wl,-u,_isatty,-u,_fstat   -Wl,-wrap,exit -Wl,-wrap,_exit -Wl,-wrap,main -Wl,-wrap,abort -Wl,g++_tg.o -lm -o ./eb77.exe    (timeout = 800)
spawn -ignore SIGHUP /build/gcc-13-2709-g9ac9fde961f/bin/arm-none-eabi-g++ /build/src/gcc/gcc/testsuite/g++.old-deja/g++.robertl/eb77.C -mthumb -march=armv6s-m -mcpu=cortex-m0 -mfloat-abi=soft -fdiagnostics-plain-output -fmessage-length=0 -std=c++20 -pedantic-errors -Wno-long-long -Wl,--start-group -lc -lm -Wl,--end-group --specs=nosys.specs -Wl,--allow-multiple-definition -Wl,-u,_isatty,-u,_fstat -Wl,-wrap,exit -Wl,-wrap,_exit -Wl,-wrap,main -Wl,-wrap,abort -Wl,g++_tg.o -lm -o ./eb77.exe
pid is 28414 -28414
/build/gcc-13-2709-g9ac9fde961f/bin/../lib/gcc/arm-none-eabi/13.0.0/../../../../arm-none-eabi/bin/ld: /build/gcc-13-2709-g9ac9fde961f/bin/../lib/gcc/arm-none-eabi/13.0.0/../../../../arm-none-eabi/lib/thumb/v6-m/nofp/libstdc++.a(random.o): in function `std::(anonymous namespace)::__libc_getentropy(void*)':
(.text._ZNSt12_GLOBAL__N_117__libc_getentropyEPv+0x8): undefined reference to `getentropy'
/build/gcc-13-2709-g9ac9fde961f/bin/../lib/gcc/arm-none-eabi/13.0.0/../../../../arm-none-eabi/bin/ld: /build/gcc-13-2709-g9ac9fde961f/bin/../lib/gcc/arm-none-eabi/13.0.0/../../../../arm-none-eabi/lib/thumb/v6-m/nofp/libstdc++.a(random.o): in function `std::random_device::_M_init(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)':
(.text._ZNSt13random_device7_M_initERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE+0x58): undefined reference to `getentropy'
/build/gcc-13-2709-g9ac9fde961f/bin/../lib/gcc/arm-none-eabi/13.0.0/../../../../arm-none-eabi/bin/ld: /build/gcc-13-2709-g9ac9fde961f/bin/../lib/gcc/arm-none-eabi/13.0.0/../../../../arm-none-eabi/lib/thumb/v6-m/nofp/libc.a(libc_a-arc4random.o): in function `_rs_stir':
(.text._rs_stir+0x8): undefined reference to `getentropy'
collect2: error: ld returned 1 exit status
pid is -1
close result is 28414 exp6 0 1
output is /build/gcc-13-2709-g9ac9fde961f/bin/../lib/gcc/arm-none-eabi/13.0.0/../../../../arm-none-eabi/bin/ld: /build/gcc-13-2709-g9ac9fde961f/bin/../lib/gcc/arm-none-eabi/13.0.0/../../../../arm-none-eabi/lib/thumb/v6-m/nofp/libstdc++.a(random.o): in function `std::(anonymous namespace)::__libc_getentropy(void*)':
(.text._ZNSt12_GLOBAL__N_117__libc_getentropyEPv+0x8): undefined reference to `getentropy'
/build/gcc-13-2709-g9ac9fde961f/bin/../lib/gcc/arm-none-eabi/13.0.0/../../../../arm-none-eabi/bin/ld: /build/gcc-13-2709-g9ac9fde961f/bin/../lib/gcc/arm-none-eabi/13.0.0/../../../../arm-none-eabi/lib/thumb/v6-m/nofp/libstdc++.a(random.o): in function `std::random_device::_M_init(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)':
(.text._ZNSt13random_device7_M_initERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE+0x58): undefined reference to `getentropy'
/build/gcc-13-2709-g9ac9fde961f/bin/../lib/gcc/arm-none-eabi/13.0.0/../../../../arm-none-eabi/bin/ld: /build/gcc-13-2709-g9ac9fde961f/bin/../lib/gcc/arm-none-eabi/13.0.0/../../../../arm-none-eabi/lib/thumb/v6-m/nofp/libc.a(libc_a-arc4random.o): in function `_rs_stir':
(.text._rs_stir+0x8): undefined reference to `getentropy'
collect2: error: ld returned 1 exit status
 status 1
compiler exited with status 1
FAIL: g++.old-deja/g++.robertl/eb77.C  -std=c++20 (test for excess errors)
Excess errors:
(.text._ZNSt12_GLOBAL__N_117__libc_getentropyEPv+0x8): undefined reference to `getentropy'
(.text._ZNSt13random_device7_M_initERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE+0x58): undefined reference to `getentropy'
(.text._rs_stir+0x8): undefined reference to `getentropy'
UNRESOLVED: g++.old-deja/g++.robertl/eb77.C  -std=c++20 compilation failed to produce executable

Contributed by STMicroelectronics

Signed-off-by: Torbjörn SVENSSON <torbjorn.svensson@foss.st.com>
2023-08-09 11:38:03 +02:00
..
aarch64 libgloss: merge aarch64 into top-level Makefile 2023-01-09 21:49:50 -05:00
arc libgloss: merge arc into top-level Makefile 2023-01-11 08:42:16 -05:00
arm arm: Restrict processor mode change when in hypervisor mode 2023-03-03 13:27:31 +00:00
bfin libgloss: bfin: switch to CPPASCOMPILE for .S->.o 2022-12-14 04:14:50 -05:00
config Fix libgloss/newlib build to conditionally use top include dir 2023-02-22 14:53:05 -05:00
cr16 libgloss: fix more missing dir with parallel install 2022-01-29 01:33:49 -05:00
cris libgloss: merge epiphany & libnosys & or1k configure scripts up a level 2022-02-01 21:53:22 -05:00
crx libgloss: fix more missing dir with parallel install 2022-01-29 01:33:49 -05:00
csky libgloss: csky: fix pointer-to-integer warning 2023-01-13 17:24:17 -05:00
d30v libgloss: merge d30v into top-level Makefile 2023-01-11 08:42:19 -05:00
doc libgloss: drop unused multi-build logic 2022-12-19 19:07:38 -05:00
epiphany libgloss/epiphany: Fix move instruction in crt0.S 2023-03-08 14:27:52 -05:00
fr30 libgloss: fix more missing dir with parallel install 2022-01-29 01:33:49 -05:00
frv libgloss: fix more missing dir with parallel install 2022-01-29 01:33:49 -05:00
ft32 libgloss: fix more missing dir with parallel install 2022-01-29 01:33:49 -05:00
hp74x libgloss: fix more missing dir with parallel install 2022-01-29 01:33:49 -05:00
i386 libgloss: merge i386 configure script up a level 2022-02-16 20:08:55 -05:00
i960 libgloss: fix more missing dir with parallel install 2022-01-29 01:33:49 -05:00
iq2000 libgloss: iq2000: fix prototype 2022-02-25 23:08:45 -05:00
libnosys Add stub for getentropy 2023-08-09 11:38:03 +02:00
lm32 libgloss: merge lm32 into top-level Makefile 2022-03-01 20:29:07 -05:00
m32c libgloss: fix more missing dir with parallel install 2022-01-29 01:33:49 -05:00
m32r libgloss: merge stub arch configure scripts up a level 2022-01-26 04:32:54 -05:00
m68hc11 libgloss: fix more missing dir with parallel install 2022-01-29 01:33:49 -05:00
m68k libgloss: merge m68k configure script up a level 2022-02-16 20:14:55 -05:00
mcore libgloss: merge mcore configure script up a level 2022-02-16 20:11:55 -05:00
mep libgloss: fix more missing dir with parallel install 2022-01-29 01:33:49 -05:00
microblaze libgloss: fix more missing dir with parallel install 2022-01-29 01:33:49 -05:00
mips libgloss: merge mips configure script up a level 2022-02-17 20:36:41 -05:00
mn10200 libgloss: merge mn10200 configure script up a level 2022-02-16 20:16:05 -05:00
mn10300 libgloss: merge mn10300 configure script up a level 2022-02-16 20:20:14 -05:00
moxie libgloss: merge moxie configure script up a level 2022-02-16 20:10:48 -05:00
msp430 libgloss: merge stub arch configure scripts up a level 2022-01-26 04:32:54 -05:00
mt libgloss: fix more missing dir with parallel install 2022-01-29 01:33:49 -05:00
nds32 libgloss: merge stub arch configure scripts up a level 2022-01-26 04:32:54 -05:00
nios2 libgloss: merge nios2 into top-level Makefile 2023-01-12 05:26:57 -05:00
or1k libgloss: merge epiphany & libnosys & or1k configure scripts up a level 2022-02-01 21:53:22 -05:00
pa libgloss: fix more missing dir with parallel install 2022-01-29 01:33:49 -05:00
pru libgloss: pru: Fix _open syscal arguments 2022-04-27 11:43:08 +02:00
riscv libgloss: riscv: Install machine/syscall.h 2022-10-20 16:53:06 +02:00
rl78 libgloss: fix more missing dir with parallel install 2022-01-29 01:33:49 -05:00
rs6000 libgloss: rs6000: fix incorrect install dir for xil files 2022-12-19 20:19:31 -05:00
rx libgloss: fix more missing dir with parallel install 2022-01-29 01:33:49 -05:00
sh * arm/elf-redboot.ld, iq2000/sim.ld, m68hc11/sim-valid-m68hc11.ld, 2005-05-20 15:45:45 +00:00
sparc libgloss: merge sparc configure script up a level 2022-02-23 19:44:10 -05:00
sparc_leon Use global atexit data for all configurations 2022-05-18 07:45:09 +02:00
spu libgloss: merge subdirs that have unique makefile_frags up a level 2022-02-01 23:06:21 -05:00
testsuite newlib/libgloss: drop unused $(CROSS_CFLAGS) 2022-02-15 20:02:51 -05:00
tic6x libgloss: fix more missing dir with parallel install 2022-01-29 01:33:49 -05:00
v850 Revert accidental change to v850/sim.ld 2022-03-20 10:19:45 -04:00
visium libgloss: fix more missing dir with parallel install 2022-01-29 01:33:49 -05:00
wince libgloss: merge wince configure script up a level 2022-02-17 20:35:32 -05:00
xc16x libgloss: merge subdirs that have unique makefile_frags up a level 2022-02-01 23:06:21 -05:00
xstormy16 libgloss: fix more missing dir with parallel install 2022-01-29 01:33:49 -05:00
ChangeLog Deprecate newlib and winsup ChangeLog files 2016-01-28 11:15:33 +01:00
ChangeLog-2015 Deprecate newlib and winsup ChangeLog files 2016-01-28 11:15:33 +01:00
Makefile.am Fix libgloss/newlib build to conditionally use top include dir 2023-02-22 14:53:05 -05:00
Makefile.in Add stub for getentropy 2023-08-09 11:38:03 +02:00
README libgloss: have README point to the manual 2022-02-17 20:41:53 -05:00
aclocal.m4 libgloss: switch to AM_PROG_AR 2022-02-25 23:07:20 -05:00
close.c ansification: remove _DEFUN 2018-01-17 11:47:26 -06:00
config.h.in libgloss: merge epiphany & libnosys & or1k configure scripts up a level 2022-02-01 21:53:22 -05:00
configure Fix libgloss/newlib build to conditionally use top include dir 2023-02-22 14:53:05 -05:00
configure.ac Fix libgloss/newlib build to conditionally use top include dir 2023-02-22 14:53:05 -05:00
debug.c
debug.h 2002-04-17 Joel Sherrill <joel@OARcorp.com> 2002-04-17 19:10:37 +00:00
fstat.c ansification: remove _DEFUN 2018-01-17 11:47:26 -06:00
getpid.c ansification: remove _DEFUN 2018-01-17 11:47:26 -06:00
glue.h
isatty.c ansification: remove _DEFUN 2018-01-17 11:47:26 -06:00
kill.c ansification: remove _DEFUN 2018-01-17 11:47:26 -06:00
lseek.c ansification: remove _DEFUN 2018-01-17 11:47:26 -06:00
open.c ansification: remove _DEFUN 2018-01-17 11:47:26 -06:00
print.c ansification: remove _DEFUN 2018-01-17 11:47:26 -06:00
putnum.c ansification: remove _DEFUN 2018-01-17 11:47:26 -06:00
read.c ansification: remove _DEFUN 2018-01-17 11:47:26 -06:00
sbrk.c
stat.c ansification: remove _DEFUN 2018-01-17 11:47:26 -06:00
syscall.h 2007-11-06 Dave Brolley <brolley@redhat.com> 2007-11-06 23:07:06 +00:00
unlink.c ansification: remove _DEFUN 2018-01-17 11:47:26 -06:00
write.c ansification: remove _EXFUN, _EXFUN_NOTHROW 2018-01-17 11:47:29 -06:00

README

Libgloss is a library for all the details that usually get glossed over.
This library refers to things like startup code, and usually I/O support
for GCC and the C library.

For more details, see the manual under doc/.