2011-06-27 Tristan Gingold <gingold@adacore.com>
authorTristan Gingold <gingold@adacore.com>
Mon, 27 Jun 2011 10:03:42 +0000 (10:03 +0000)
committerTristan Gingold <gingold@adacore.com>
Mon, 27 Jun 2011 10:03:42 +0000 (10:03 +0000)
* config/obj-evax.c (evax_frob_file_before_adjust): Add comments.
Fix style.
* config/obj-evax.h (struct alpha_linkage_fixups): Remove seg
field.  Add comments.
(obj_symbol_type, object_headers, OBJ_SYMFIELD_TYPE): Remove

gas/ChangeLog
gas/config/obj-evax.c
gas/config/obj-evax.h

index f57a5bf02307bade1944e3db83bb9c90901dd3c1..465d8ac2f14c700f28336cda448e6094187b233d 100644 (file)
@@ -1,3 +1,11 @@
+2011-06-27  Tristan Gingold  <gingold@adacore.com>
+
+       * config/obj-evax.c (evax_frob_file_before_adjust): Add comments.
+       Fix style.
+       * config/obj-evax.h (struct alpha_linkage_fixups): Remove seg
+       field.  Add comments.
+       (obj_symbol_type, object_headers, OBJ_SYMFIELD_TYPE): Remove
+
 2011-06-26  Richard Sandiford  <rdsandiford@googlemail.com>
 
        * config/tc-mips.c (fix_24k_record_store_info): If the previous
index a52b8963ffe6f34d447685e1c2897b2c563470be..b66e2c3bc59eb1cc896862b6975fad2997463dfb 100644 (file)
@@ -153,6 +153,8 @@ evax_frob_file_before_adjust (void)
     {
       if (S_GET_SEGMENT (l->fixp->fx_addsy) == alpha_link_section)
        {
+          /* The symbol is defined in the file.  The linkage entry decays to
+             two relocs.  */
          symbolS *entry_sym;
          fixS *fixpentry, *fixppdesc, *fixtail;
 
@@ -166,7 +168,7 @@ evax_frob_file_before_adjust (void)
          fixpentry = fix_new (l->fixp->fx_frag, l->fixp->fx_where, 8,
                               entry_sym, l->fixp->fx_offset, 0,
                               BFD_RELOC_64);
-         fixppdesc = fix_new (l->fixp->fx_frag, l->fixp->fx_where+8, 8,
+         fixppdesc = fix_new (l->fixp->fx_frag, l->fixp->fx_where + 8, 8,
                               l->fixp->fx_addsy, l->fixp->fx_offset, 0,
                               BFD_RELOC_64);
          l->fixp->fx_size = 0;
@@ -184,6 +186,7 @@ evax_frob_file_before_adjust (void)
        }
       else
        {
+          /* Assign a linkage index.  */
          ((struct evax_private_udata_struct *)
           symbol_get_bfdsym (l->label)->udata.p)->lkindex = linkage_index;
 
index 4964bd4c4a99e454ec309c63900d45b174a5ad6c..b7520b77a75e1ed45a568ef1da353797804e2cea 100644 (file)
 
 struct fix;
 
+/* Simply linked list of .linkage.  */
 struct alpha_linkage_fixups
 {
+  /* Next entry.  */
   struct alpha_linkage_fixups *next;
+
+  /* Corresponding fixup.  */
   struct fix *fixp;
-  segT seg;
+
+  /* Label that designates this entry.
+     Note that a linkage entry can only be designated by one label.
+     Also, s_alpha_linkage force the creation of a label.  */
   symbolS *label;
 };
 
@@ -60,20 +67,8 @@ struct alpha_linkage_fixups
 
 /* #define SYMBOLS_NEED_PACKPOINTERS */
 
-/*  */
-typedef struct
-  {
-    void *nothing;
-  }
-obj_symbol_type;               /* should be the format's symbol structure */
-
-typedef void *object_headers;
-
 #define OBJ_EMIT_LINENO(a,b,c) /* must be *something*.  This no-op's it out.  */
 
-/* This field keeps the symbols position in the link section.  */
-#define OBJ_SYMFIELD_TYPE valueT
-
 #define obj_symbol_new_hook(s)       evax_symbol_new_hook (s)
 #define obj_frob_symbol(s,p)         evax_frob_symbol (s, &p)
 #define obj_frob_file_before_adjust  evax_frob_file_before_adjust