Rev 2 | Blame | Compare with Previous | Last modification | View Log | RSS feed
<!-- Crown Copyright (c) 1998 -->
<HTML>
<HEAD>
<TITLE>Supplementary UNIT</TITLE>
</HEAD>
<BODY TEXT="#000000" BGCOLOR="#FFFFFF" LINK="#0000FF" VLINK="#400080" ALINK="#FF0000">
<H1><A NAME=S374>TDF Specification, Issue 4.0</A></H1>
<H3>January 1998</H3>
<A HREF="spec10.html"><IMG SRC="../images/next.gif" ALT="next section"></A>
<A HREF="spec8.html"><IMG SRC="../images/prev.gif" ALT="previous section"></A>
<A HREF="spec1.html"><IMG SRC="../images/top.gif" ALT="current document"></A>
<A HREF="../index.html"><IMG SRC="../images/home.gif" ALT="TenDRA home page">
</A>
<A HREF="spec12.html"><IMG SRC="../images/index.gif" ALT="document index"></A>
<P>
<HR>
<DL>
<DT><A HREF="#S375"><B>6.1</B> - LINKINFO_PROPS</A><DD>
<DL>
<DT><A HREF="#S376"><B>6.1.1</B> - make_linkinfos</A><DD>
</DL>
<DT><A HREF="#S377"><B>6.2</B> - LINKINFO</A><DD>
<DL>
<DT><A HREF="#S378"><B>6.2.1</B> - static_name_def</A><DD>
<DT><A HREF="#S379"><B>6.2.2</B> - make_comment</A><DD>
<DT><A HREF="#S380"><B>6.2.3</B> - make_weak_defn</A><DD>
<DT><A HREF="#S381"><B>6.2.4</B> - make_weak_symbol</A><DD>
</DL>
</DL>
<HR>
<H1>6. Supplementary UNIT</H1>
<A NAME=S375>
<HR>
<H2>6.1. <A NAME=M1>LINKINFO_PROPS</A></H2>
<B>Number of encoding bits</B>: 0<BR>
<B>Is coding extendable</B>: no<BR>
<B>Unit identification</B>: <I>linkinfo</I><P>
This is an additional <CODE>UNIT</CODE> which gives extra information
about linking.
<P>
<A NAME=S376>
<H3>6.1.1. <A NAME=M2>make_linkinfos</H3>
<B>Encoding number</B>: 0<P>
<PRE>
<I>no_labels</I>: TDFINT
<I>tds</I>: SLIST(LINKINFO)
-> LINKINFO_PROPS
</PRE>
Makes the <CODE>UNIT</CODE>.
<P>
<A NAME=S377>
<HR>
<H2>6.2. <A NAME=M3>LINKINFO</A></H2>
<B>Number of encoding bits</B>: 2<BR>
<B>Is coding extendable</B>: yes<P>
<A NAME=S378>
<H3>6.2.1. <A NAME=M4>static_name_def</H3>
<B>Encoding number</B>: 1<P>
<PRE>
<I>assexp</I>: EXP POINTER <I>x</I>
<I>id</I>: TDFSTRING<I>(k, n)</I>
-> LINKINFO
</PRE>
<I>assexp</I> will be an <I>obtain_tag</I> construction which refers
to a <CODE>TAG</CODE> which is defined with <I>make_id_tagdef</I>,
<I>make_var_tagdef</I> or <I>common_tagdef</I>. This <CODE>TAG</CODE>
will not be linked to an <CODE>EXTERNAL</CODE>.
<P>
The name <I>id</I> shall be used (but not exported, i.e. <I>static</I>)
to identify the definition for subsequent linking.
<P>
<I>This construction is likely to be needed for profiling, so that
useful names appear for statically defined objects. It may also be
needed when C++ is translated into C, in order to identify global
initialisers.</I>
<P>
<A NAME=S379>
<H3>6.2.2. <A NAME=M5>make_comment</H3>
<B>Encoding number</B>: 2<P>
<PRE>
<I>n</I>: TDFSTRING<I>(k, n)</I>
-> LINKINFO
</PRE>
<I>n</I> shall be incorporated into the object file as a comment,
if this facility exists. Otherwise the construct is ignored.
<P>
<A NAME=S380>
<H3>6.2.3. <A NAME=M6>make_weak_defn</H3>
<B>Encoding number</B>: 3<P>
<PRE>
<I>namer</I>: EXP POINTER <I>x</I>
<I>val</I>: EXP POINTER <I>y</I>
-> LINKINFO
</PRE>
<I>namer</I> and <I>val</I> will be <I>obtain_tag</I> constructions
which refer to <CODE>TAG</CODE>s which are defined with
<I>make_id_tagdef</I>, <I>make_var_tagdef</I> or <I>common_tagdef</I>.
They shall be made synonymous.
<P>
<A NAME=S381>
<H3>6.2.4. <A NAME=M7>make_weak_symbol</H3>
<B>Encoding number</B>: 4<P>
<PRE>
<I>id</I>: TDFSTRING<I>(k, n)</I>
<I>val</I>: EXP POINTER <I>x</I>
-> LINKINFO
</PRE>
<I>val</I> will be an <I>obtain_tag</I> construction which refers
to a <CODE>TAG</CODE> which is defined with <I>make_id_tagdef</I>,
<I>make_var_tagdef</I> or <I>common_tagdef</I>.
<P>
This <CODE>TAG</CODE> shall be made <I>weak</I> (in the same sense
as in the SVID ABI Symbol Table), and <I>id</I> shall be synonymous
with it.
<P>
<P>
<HR>
<P><I>Part of the <A HREF="../index.html">TenDRA Web</A>.<BR>Crown
Copyright © 1998.</I></P>
</BODY>
</HTML>