bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug ld/27833] ld-plugin/pr24406-1.c fails with GCC cross-toolchain for


From: dimitar at dinux dot eu
Subject: [Bug ld/27833] ld-plugin/pr24406-1.c fails with GCC cross-toolchain for arm-none-eabi
Date: Mon, 24 May 2021 16:22:40 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=27833

--- Comment #3 from Dimitar Dimitrov <dimitar at dinux dot eu> ---
Hi Nick,

Could you clarify why read() is not part of newlib for ARM?

I tested on 3 different newlib targets and I can see that "read" function is
part of newlib libc:
$ ./bin/arm-none-eabi-nm ./arm-none-eabi/lib/libc.a | grep -w read
00000000 T read
$ ./bin/riscv32-none-elf-nm ./riscv32-none-elf/lib/libc.a | grep -w read
00000000 T read
$ ./bin/pru-nm ./pru/lib/libc.a | grep -w read
00000000 T read

read() seems to be defined here:
https://sourceware.org/git/?p=newlib-cygwin.git;a=blob;f=newlib/libc/syscalls/sysread.c

Without -flto the test case is successfully linked for all of the 3 targets
above. Which is another indication that newlib provides the "read" function.

Regards,
Dimitar

-- 
You are receiving this mail because:
You are on the CC list for the bug.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]