[Bug ld/12291] "ld -r" doesn't work with mixed IR/non-IR objects
https://sourceware.org/bugzilla/show_bug.cgi?id=12291 Sam James changed: What|Removed |Added See Also||https://sourceware.org/bugz ||illa/show_bug.cgi?id=27122 -- You are receiving this mail because: You are on the CC list for the bug.
[Bug ld/12291] "ld -r" doesn't work with mixed IR/non-IR objects
https://sourceware.org/bugzilla/show_bug.cgi?id=12291 --- Comment #10 from H.J. Lu --- https://sourceware.org/pipermail/binutils/2020-October/113795.html -- You are receiving this mail because: You are on the CC list for the bug.
[Bug ld/12291] "ld -r" doesn't work with mixed IR/non-IR objects
https://sourceware.org/bugzilla/show_bug.cgi?id=12291 --- Comment #9 from Sam James --- (In reply to H.J. Lu from comment #8) > (In reply to Nick Clifton from comment #7) > > Hi H.J. > > > > (In reply to H.J. Lu from comment #6) > > > > > Here is the proposal: > > > > > It has been moved at: > > > > > > https://gitlab.com/x86-binutils/binutils-gdb/-/tree/users/hjl/lto-mixed/ > > > master > > > > I like the proposal. > > > > Do you think that the branch sources are ready for review and > > merging/pulling into mainline ? > > > > Yes, I will submit a patch set. Did anything happen w/ this? Thanks! -- You are receiving this mail because: You are on the CC list for the bug.
[Bug ld/12291] "ld -r" doesn't work with mixed IR/non-IR objects
https://sourceware.org/bugzilla/show_bug.cgi?id=12291 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/12291] "ld -r" doesn't work with mixed IR/non-IR objects
https://sourceware.org/bugzilla/show_bug.cgi?id=12291 law at redhat dot com changed: What|Removed |Added CC||law at redhat dot com -- You are receiving this mail because: You are on the CC list for the bug.
[Bug ld/12291] "ld -r" doesn't work with mixed IR/non-IR objects
https://sourceware.org/bugzilla/show_bug.cgi?id=12291 --- Comment #8 from H.J. Lu --- (In reply to Nick Clifton from comment #7) > Hi H.J. > > (In reply to H.J. Lu from comment #6) > > > Here is the proposal: > > > It has been moved at: > > > > https://gitlab.com/x86-binutils/binutils-gdb/-/tree/users/hjl/lto-mixed/ > > master > > I like the proposal. > > Do you think that the branch sources are ready for review and > merging/pulling into mainline ? > Yes, I will submit a patch set. -- You are receiving this mail because: You are on the CC list for the bug.
[Bug ld/12291] "ld -r" doesn't work with mixed IR/non-IR objects
https://sourceware.org/bugzilla/show_bug.cgi?id=12291 Nick Clifton changed: What|Removed |Added CC||nickc at redhat dot com --- Comment #7 from Nick Clifton --- Hi H.J. (In reply to H.J. Lu from comment #6) > Here is the proposal: > It has been moved at: > > https://gitlab.com/x86-binutils/binutils-gdb/-/tree/users/hjl/lto-mixed/ > master I like the proposal. Do you think that the branch sources are ready for review and merging/pulling into mainline ? Cheers Nick -- You are receiving this mail because: You are on the CC list for the bug.
[Bug ld/12291] "ld -r" doesn't work with mixed IR/non-IR objects
https://sourceware.org/bugzilla/show_bug.cgi?id=12291 --- Comment #6 from H.J. Lu --- (In reply to H.J. Lu from comment #2) > The proposal is at > > http://www.kernel.org/pub/linux/devel/gcc/lto/mixed-IR/mixed-IR.pdf Here is the proposal: Link with mixed IR/non-IR objects * 2 kinds of object files o non-IR object file has * non-IR sections o IR object file has * IR sections * non-IR sections * The output of "ld -r" with mixed IR/non-IR objects should work with: o Compilers/linkers with IR support. o Compilers/linkers without IR support. * Add the mixed object file which has o IR sections o non-IR sections: * Object codes from IR sections. * Object codes from non-IR object files. o Object-only section: * With section name ".gnu_object_only" and SHT_GNU_OBJECT_ONLY type on ELF: #define SHT_GNU_OBJECT_ONLY 0x6ff8 /* Object only */ * Contain non-IR object file. * Input is discarded after link. * Linker action: o Classify each input object file: * If there is a ".gnu_object_only" section, it is a mixed object file. * If there is a IR section, it is an IR object file. * Otherwise, it is a non-IR object file. o Relocatable non-IR link: * Prepare for an object-only output. * Prepare for a regular output. * For each mixed object file: * Add IR and non-IR sections to the regular output. * For object-only section: * Extract object only file. * Add it to the object-only output. * Discard object-only section. * For each IR object file: * Add IR and non-IR sections to the regular output. * For each non-IR object file: * Add non-IR sections to the regular output. * Add non-IR sections to the object-only output. * Final output: * If there are IR objects, non-IR objects and the object-only output isn't empty: * Put the object-only output into the object-only section. * Add the object-only section to the regular output. * Remove the object-only output. o Normal link and relocatable IR link: * Prepare for output. * IR link: * For each mixed object file: * Compile and add IR sections to the output. * Discard non-IR sections. * Object-only section: * Extract object only file. * Add it to the output. * Discard object-only section. * For each IR object file: * Compile and add IR sections to the output. * Discard non-IR sections. * For each non-IR object file: * Add non-IR sections to the output. * Non-IR link: * For each mixed object file: * Add non-IR sections to the output. * Discard IR sections and object-only section. * For each IR object file: * Add non-IR sections to the output. * Discard IR sections. * For each non-IR object file: * Add non-IR sections to the output. > > It is implemented on hjl/lto-mixed branch at > > http://git.kernel.org/?p=devel/binutils/hjl/x86.git;a=summary It has been moved at: https://gitlab.com/x86-binutils/binutils-gdb/-/tree/users/hjl/lto-mixed/master -- You are receiving this mail because: You are on the CC list for the bug.
[Bug ld/12291] ld -r doesn't work with mixed IR/non-IR objects
http://sourceware.org/bugzilla/show_bug.cgi?id=12291 Dmitry Gorbachev d.g.gorbachev at gmail dot com changed: What|Removed |Added CC||ian at airs dot com --- Comment #3 from Dmitry Gorbachev d.g.gorbachev at gmail dot com 2011-01-21 21:55:59 UTC --- ld.ian (gold with patch http://sourceware.org/ml/binutils/2011-01/msg00270.html) silently uses non-IR part of prog.o -- Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are on the CC list for the bug. ___ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug ld/12291] ld -r doesn't work with mixed IR/non-IR objects
http://sourceware.org/bugzilla/show_bug.cgi?id=12291 --- Comment #4 from H.J. Lu hjl.tools at gmail dot com 2011-01-21 22:27:45 UTC --- (In reply to comment #3) ld.ian (gold with patch http://sourceware.org/ml/binutils/2011-01/msg00270.html) silently uses non-IR part of prog.o What does gold generate for /usr/gcc-4.6/bin/gcc -B./ -c -O -flto -fuse-linker-plugin main.c -o main.o /usr/gcc-4.6/bin/gcc -B./ -c -O foo.c -o foo.o ./ld -r -o prog.o main.o foo.o Does prog.o contain both IR and non-IR sections? -- Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are on the CC list for the bug. ___ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug ld/12291] ld -r doesn't work with mixed IR/non-IR objects
http://sourceware.org/bugzilla/show_bug.cgi?id=12291 --- Comment #5 from Dmitry Gorbachev d.g.gorbachev at gmail dot com 2011-01-22 00:43:24 UTC --- Does prog.o contain both IR and non-IR sections? No. I think a new bug report should be opened for gold. When I use ld.bfd (or ld.hjl) for partial link step and ld.ian for final link, everything works. -- Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are on the CC list for the bug. ___ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug ld/12291] ld -r doesn't work with mixed IR/non-IR objects
http://sourceware.org/bugzilla/show_bug.cgi?id=12291 H.J. Lu hjl.tools at gmail dot com changed: What|Removed |Added AssignedTo|unassigned at sources dot |hjl.tools at gmail dot com |redhat.com | --- Comment #2 from H.J. Lu hjl.tools at gmail dot com 2010-12-15 19:17:03 UTC --- The proposal is at http://www.kernel.org/pub/linux/devel/gcc/lto/mixed-IR/mixed-IR.pdf It is implemented on hjl/lto-mixed branch at http://git.kernel.org/?p=devel/binutils/hjl/x86.git;a=summary -- Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are on the CC list for the bug. ___ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug ld/12291] ld -r doesn't work with mixed IR/non-IR objects
http://sourceware.org/bugzilla/show_bug.cgi?id=12291 --- Comment #1 from H.J. Lu hjl.tools at gmail dot com 2010-12-06 23:01:17 UTC --- One approach -- We generate a prog.o that contains an object that is the relocation of real foo.o and main.o (used if prog.o is linked without IR support), that also contains IR for main.o, and within the IR the object code for main.o. So the interesting case is when the relocatable object is again compiled in such a way that the IR is read out from prog.o. The Intel compiler will take the IR from prog.o, and compile it with any other IR present in archives or other objects (none in this particular case), and will create a real object from the IR, this is then added to a list of objects that the driver will pass to the linker along with the object code for main.o which the compiler extracts to a new temporary object that is added to the list of objects. -- -- Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are on the CC list for the bug. ___ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils