[Bug ld/32854] Default versioned symbol in shared library is ignored with LTO

2025-04-09 Thread dimitar at dinux dot eu
https://sourceware.org/bugzilla/show_bug.cgi?id=32854 Dimitar Dimitrov changed: What|Removed |Added CC||dimitar at dinux dot eu -- You

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

2021-05-26 Thread dimitar at dinux dot eu
https://sourceware.org/bugzilla/show_bug.cgi?id=27833 --- Comment #5 from Dimitar Dimitrov --- Yes, same problem occurs for all 3 newlib targets. As far as I'm aware, they all support LTO. Unfortunately I don't have setup to cross-compile for glibs, since it requires either a virtual machine or

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

2021-05-24 Thread dimitar at dinux dot eu
https://sourceware.org/bugzilla/show_bug.cgi?id=27833 --- Comment #3 from Dimitar Dimitrov --- 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-no

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

2021-05-08 Thread dimitar at dinux dot eu
https://sourceware.org/bugzilla/show_bug.cgi?id=27833 Dimitar Dimitrov changed: What|Removed |Added CC||dimitar at dinux dot eu -- You

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

2021-05-08 Thread dimitar at dinux dot eu
https://sourceware.org/bugzilla/show_bug.cgi?id=27833 --- Comment #1 from Dimitar Dimitrov --- I traced the issue to unwrap_hash_lookup() returning NULL for the "__wrap_read" symbol, inside the get_symbols() function in ld/plugin.c. I'm trying to understand why "read" is not present in link_info

[Bug ld/27833] New: ld-plugin/pr24406-1.c fails with GCC cross-toolchain for arm-none-eabi

2021-05-08 Thread dimitar at dinux dot eu
Severity: normal Priority: P2 Component: ld Assignee: unassigned at sourceware dot org Reporter: dimitar at dinux dot eu Target Milestone: --- ld/testsuite/ld-plugin/pr24406-1.c test passes for x86_64-pc-linux-gnu/glibc, but fails for cross-toolchain arm-none

[Bug gold/24415] - -Wl,--wrap= incompatible with -flto

2021-05-07 Thread dimitar at dinux dot eu
https://sourceware.org/bugzilla/show_bug.cgi?id=24415 Dimitar Dimitrov changed: What|Removed |Added CC||dimitar at dinux dot eu -- You

[Bug ld/26358] --wrap: the special rule for "undefined symbol" is incompatible with -flto or relocatable links

2021-04-02 Thread dimitar at dinux dot eu
https://sourceware.org/bugzilla/show_bug.cgi?id=26358 Dimitar Dimitrov changed: What|Removed |Added CC||dimitar at dinux dot eu -- You