bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug ld/12291] "ld -r" doesn't work with mixed IR/non-IR objects


From: hjl.tools at gmail dot com
Subject: [Bug ld/12291] "ld -r" doesn't work with mixed IR/non-IR objects
Date: Mon, 6 Dec 2010 23:01:26 +0000

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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]