aboutsummaryrefslogtreecommitdiff
path: root/gas/config/obj-evax.c
diff options
context:
space:
mode:
authorTristan Gingold <gingold@adacore.com>2011-06-27 10:03:42 +0000
committerTristan Gingold <gingold@adacore.com>2011-06-27 10:03:42 +0000
commitbb1d425616ac27230436ca1d5aa4158fdfabebbe (patch)
tree698ccf0a6bcdcea068730b523c2f1847658f06c4 /gas/config/obj-evax.c
parentb315ab2151bc2501de3ab6f0075ecc1646c2ae67 (diff)
downloadgdb-bb1d425616ac27230436ca1d5aa4158fdfabebbe.zip
gdb-bb1d425616ac27230436ca1d5aa4158fdfabebbe.tar.gz
gdb-bb1d425616ac27230436ca1d5aa4158fdfabebbe.tar.bz2
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
Diffstat (limited to 'gas/config/obj-evax.c')
-rw-r--r--gas/config/obj-evax.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/gas/config/obj-evax.c b/gas/config/obj-evax.c
index a52b896..b66e2c3 100644
--- a/gas/config/obj-evax.c
+++ b/gas/config/obj-evax.c
@@ -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;