https://sourceware.org/bugzilla/show_bug.cgi?id=24406
H.J. Lu <hjl.tools at gmail dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED Resolution|--- |FIXED --- Comment #11 from H.J. Lu <hjl.tools at gmail dot com> --- (In reply to Richard Biener from comment #10) > Just to note with BFD ld from 2.41.0 I see > > 1 > a-t.o 3 > 194 b4b00c6ef6ad050b PREVAILING_DEF_IRONLY __wrap_cook > 198 b4b00c6ef6ad050b PREVAILING_DEF main > 214 b4b00c6ef6ad050b RESOLVED_IR cook > > when building > > int cook(void); > int __wrap_cook(void) > { > return 0; > } > int main() > { > if (cook () == -1) > __builtin_abort (); > > return 0; > } > > but an LTO link fails with > > /usr/lib64/gcc/x86_64-suse-linux/13/../../../../x86_64-suse-linux/bin/ld: > ./a.ltrans0.ltrans.o: in function `main': > <artificial>:(.text+0x10): undefined reference to `__wrap_cook' This is PR ld/31956. -- You are receiving this mail because: You are on the CC list for the bug.