[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: |
nickc at redhat dot com |
Subject: |
[Bug ld/27833] ld-plugin/pr24406-1.c fails with GCC cross-toolchain for arm-none-eabi |
Date: |
Wed, 19 May 2021 11:37:39 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=27833
Nick Clifton <nickc at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |nickc at redhat dot com
Status|UNCONFIRMED |ASSIGNED
Last reconfirmed| |2021-05-19
Assignee|unassigned at sourceware dot org |nickc at redhat dot com
Ever confirmed|0 |1
--- Comment #2 from Nick Clifton <nickc at redhat dot com> ---
(In reply to Dimitar Dimitrov from comment #1)
Hi Dimitar,
> I'm trying to understand why "read" is not present in link_info.hash.
Simply put it is because newlib (for ARM) does not provide the read() function.
Newlib is a C library implementation and there is no read() function in the C
library specification. The function is meant to be provided by a target
specific system library. Newlib does in fact support target specific system
functions, provided by files in the libc/sys/<target>/ directories, but there
is no implementation of read() in libc/sys/arm/.
There is however an implementation of _read() in libc/sys/arm/syscalls.c so if
the test were to be changed to have pr24406-1.c call _read() and then pass
--wrap=_read on the linker command line, it should work.
But handling this in the test harness seems laborious to me. At least if it is
only for newlib supported ARM environments. But if you want to have a go,
please feel to write a patch and submit it here. I will be happy to review it.
Cheers
Nick
--
You are receiving this mail because:
You are on the CC list for the bug.
- [Bug ld/27833] New: ld-plugin/pr24406-1.c fails with GCC cross-toolchain for arm-none-eabi, dimitar at dinux dot eu, 2021/05/08
- [Bug ld/27833] ld-plugin/pr24406-1.c fails with GCC cross-toolchain for arm-none-eabi, dimitar at dinux dot eu, 2021/05/08
- [Bug ld/27833] ld-plugin/pr24406-1.c fails with GCC cross-toolchain for arm-none-eabi, dimitar at dinux dot eu, 2021/05/08
- [Bug ld/27833] ld-plugin/pr24406-1.c fails with GCC cross-toolchain for arm-none-eabi,
nickc at redhat dot com <=
- [Bug ld/27833] ld-plugin/pr24406-1.c fails with GCC cross-toolchain for arm-none-eabi, dimitar at dinux dot eu, 2021/05/24
- [Bug ld/27833] ld-plugin/pr24406-1.c fails with GCC cross-toolchain for arm-none-eabi, nickc at redhat dot com, 2021/05/25
- [Bug ld/27833] ld-plugin/pr24406-1.c fails with GCC cross-toolchain for arm-none-eabi, dimitar at dinux dot eu, 2021/05/26
- [Bug ld/27833] ld-plugin/pr24406-1.c fails with GCC cross-toolchain for arm-none-eabi, gabemarcano at yahoo dot com, 2021/05/29