[Bug ld/31482] The first definition in shared object and archive is ignored
https://sourceware.org/bugzilla/show_bug.cgi?id=31482 H.J. Lu changed: What|Removed |Added Summary|fail to link static |The first definition in |jemalloc with -flto |shared object and archive ||is ignored --- Comment #6 from H.J. Lu --- A new patch: https://sourceware.org/pipermail/binutils/2024-March/133027.html -- You are receiving this mail because: You are on the CC list for the bug.
[Bug ld/31489] --as-needed doesn't work with references to builtin functions
https://sourceware.org/bugzilla/show_bug.cgi?id=31489 H.J. Lu changed: What|Removed |Added Status|NEW |RESOLVED Resolution|--- |DUPLICATE --- Comment #1 from H.J. Lu --- Dup. *** This bug has been marked as a duplicate of bug 31482 *** -- You are receiving this mail because: You are on the CC list for the bug.
[Bug ld/31482] fail to link static jemalloc with -flto
https://sourceware.org/bugzilla/show_bug.cgi?id=31482 --- Comment #5 from H.J. Lu --- *** Bug 31489 has been marked as a duplicate of this bug. *** -- You are receiving this mail because: You are on the CC list for the bug.
[Bug ld/31489] --as-needed doesn't work with references to builtin functions
https://sourceware.org/bugzilla/show_bug.cgi?id=31489 Sam James changed: What|Removed |Added CC||sam at gentoo dot org -- You are receiving this mail because: You are on the CC list for the bug.
[Bug ld/31482] fail to link static jemalloc with -flto
https://sourceware.org/bugzilla/show_bug.cgi?id=31482 Sam James changed: What|Removed |Added CC||sam at gentoo dot org -- You are receiving this mail because: You are on the CC list for the bug.
[Bug binutils/2958] FAIL: copy with setting section flags 3
https://sourceware.org/bugzilla/show_bug.cgi?id=2958 John David Anglin changed: What|Removed |Added Resolution|--- |FIXED Status|NEW |RESOLVED --- Comment #1 from John David Anglin --- Fixed. -- You are receiving this mail because: You are on the CC list for the bug.
[Bug ld/31482] fail to link static jemalloc with -flto
https://sourceware.org/bugzilla/show_bug.cgi?id=31482 H.J. Lu changed: What|Removed |Added Blocks||31489 Referenced Bugs: https://sourceware.org/bugzilla/show_bug.cgi?id=31489 [Bug 31489] --as-needed doesn't work with references to builtin functions -- You are receiving this mail because: You are on the CC list for the bug.
[Bug ld/31489] --as-needed doesn't work with references to builtin functions
https://sourceware.org/bugzilla/show_bug.cgi?id=31489 H.J. Lu changed: What|Removed |Added Depends on||31482 Referenced Bugs: https://sourceware.org/bugzilla/show_bug.cgi?id=31482 [Bug 31482] fail to link static jemalloc with -flto -- You are receiving this mail because: You are on the CC list for the bug.
[Bug ld/31489] New: --as-needed doesn't work with references to builtin functions
https://sourceware.org/bugzilla/show_bug.cgi?id=31489 Bug ID: 31489 Summary: --as-needed doesn't work with references to builtin functions Product: binutils Version: 2.43 (HEAD) Status: NEW Severity: normal Priority: P2 Component: ld Assignee: unassigned at sourceware dot org Reporter: hjl.tools at gmail dot com Target Milestone: --- GCC doesn't put builtin function symbol references, which are defined in the shared C library, in the IR symbol table. As the result, --as-needed doesn't work with references to builtin functions: [hjl@gnu-cfl-3 as-needed]$ cat x.c #include int main() { abort (); return 0; } [hjl@gnu-cfl-3 as-needed]$ cat bar.c #include #include void abort (void) { printf ("PASS\n"); exit (0); } [hjl@gnu-cfl-3 as-needed]$ make gcc -B./ -g -flto -c -o x.o x.c gcc -B./ -g -fPIC -c -o bar.o bar.c gcc -B./ -shared -o libbar.so bar.o gcc -B./ -Wl,--as-needed -o x x.o libbar.so -Wl,-R,. ./x make: *** [Makefile:12: all] Aborted (core dumped) [hjl@gnu-cfl-3 as-needed]$ -- You are receiving this mail because: You are on the CC list for the bug.
[Bug ld/31482] fail to link static jemalloc with -flto
https://sourceware.org/bugzilla/show_bug.cgi?id=31482 --- Comment #4 from H.J. Lu --- The v2 patch is at https://sourceware.org/pipermail/binutils/2024-March/133022.html with some test fixes. -- You are receiving this mail because: You are on the CC list for the bug.
[Bug ld/31482] fail to link static jemalloc with -flto
https://sourceware.org/bugzilla/show_bug.cgi?id=31482 H.J. Lu changed: What|Removed |Added Assignee|unassigned at sourceware dot org |hjl.tools at gmail dot com Version|unspecified |2.43 (HEAD) Status|REOPENED|NEW --- Comment #3 from H.J. Lu --- A patch is posted at https://sourceware.org/pipermail/binutils/2024-March/133020.html -- You are receiving this mail because: You are on the CC list for the bug.
[Bug ld/31482] fail to link static jemalloc with -flto
https://sourceware.org/bugzilla/show_bug.cgi?id=31482 H.J. Lu changed: What|Removed |Added Status|RESOLVED|REOPENED Resolution|MOVED |--- --- Comment #2 from H.J. Lu --- [hjl@gnu-cfl-3 pr31482-a]$ cat x.c #include int main() { abort (); return 0; } [hjl@gnu-cfl-3 pr31482-a]$ cat foo.c #include void abort (void) { _exit (0); } [hjl@gnu-cfl-3 pr31482-a]$ make gcc -B./ -g -flto -c -o x.o x.c gcc -B./ -g -o x x.o libfoo.a ./x make: *** [Makefile:8: all] Aborted (core dumped) [hjl@gnu-cfl-3 pr31482-a]$ -- You are receiving this mail because: You are on the CC list for the bug.
[Bug ld/31482] fail to link static jemalloc with -flto
https://sourceware.org/bugzilla/show_bug.cgi?id=31482 H.J. Lu changed: What|Removed |Added See Also||https://gcc.gnu.org/bugzill ||a/show_bug.cgi?id=114337 Status|NEW |RESOLVED Resolution|--- |MOVED --- Comment #1 from H.J. Lu --- This is a GCC bug: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114337 -- You are receiving this mail because: You are on the CC list for the bug.
[Bug ld/31482] fail to link static jemalloc with -flto
https://sourceware.org/bugzilla/show_bug.cgi?id=31482 xionghuluo changed: What|Removed |Added CC||nickc at redhat dot com -- You are receiving this mail because: You are on the CC list for the bug.
[Bug ld/31482] fail to link static jemalloc with -flto
https://sourceware.org/bugzilla/show_bug.cgi?id=31482 xionghuluo changed: What|Removed |Added CC||hjl.tools at gmail dot com -- You are receiving this mail because: You are on the CC list for the bug.