On Wed, Jan 31, 2007 at 07:43:15PM +0000, John Levon wrote:
> We need to move the code to be part of the linker (-z ctf or whatever), which
> we've wanted for a long time.. but it's quite a bit of work. Nonetheless it's
> desirable enough that I'd much prefer to see that as a public interface, not
> ctfconvert/ctfmerge...
For those interested, it's not hard to make gcc transparently invoke
ctfconvert either in response to -g or even -gctf. For example,
--- /usr/sfw/lib/gcc/i386-pc-solaris2.11/3.4.3/specs Wed Nov 29 02:11:28 2006
+++ docs/working/specs Mon Jun 5 15:41:58 2006
@@ -5,8 +5,9 @@
%{gstabs*:--gstabs}%{!gstabs*:%{g*:--gdwarf2}}
*asm_final:
+%{gdwarf*|g:
+ ctfconvert -L VERSION %{c:%{o*:%*}%{!o*:%b%O}}%{!c:%U%O}}
-
*asm_options:
%a %Y %{c:%W{o*}%{!o*:-o %w%b%O}}%{!c:-o %d%w%u%O}
Of course, it would be better if there were a way to use libctf
directly...good luck finding a way around the licensing challenges
there. But even with the specs hack the compiler side of the
interface is nice.
Don't hold your breath waiting for Sun's compiler team to release
their source. I suggest doing this work in gcc and then shaming them
into supporting a similar interface.
--
Keith M Wesolowski "Sir, we're surrounded!"
FishWorks "Excellent; we can attack in any direction!"
_______________________________________________
opensolaris-code mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code