aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorAlexandre Oliva <aoliva@redhat.com>2001-04-14 06:57:28 +0000
committerAlexandre Oliva <aoliva@redhat.com>2001-04-14 06:57:28 +0000
commit8c5e1ccd72ae2dd19ff29d00278dc7558f6babb4 (patch)
tree7d13e8cf102a5fc0337fec91fbb107bf28651b74 /gas
parenteb0dfd58c8702a985afe93d26baa56d0c356ee9a (diff)
downloadgdb-8c5e1ccd72ae2dd19ff29d00278dc7558f6babb4.zip
gdb-8c5e1ccd72ae2dd19ff29d00278dc7558f6babb4.tar.gz
gdb-8c5e1ccd72ae2dd19ff29d00278dc7558f6babb4.tar.bz2
* struc-symbol.h (struct local_symbol): New TC_LOCAL_SYMFIELD_TYPE.
* symbols.c (local_symbol_convert): Call TC_LOCAL_SYMFIELD_CONVERT.
Diffstat (limited to 'gas')
-rw-r--r--gas/ChangeLog3
-rw-r--r--gas/struc-symbol.h4
-rw-r--r--gas/symbols.c4
3 files changed, 11 insertions, 0 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index afec943..44f4ec0 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,5 +1,8 @@
2001-04-14 Alexandre Oliva <aoliva@redhat.com>
+ * struc-symbol.h (struct local_symbol): New TC_LOCAL_SYMFIELD_TYPE.
+ * symbols.c (local_symbol_convert): Call TC_LOCAL_SYMFIELD_CONVERT.
+
* config/tc-mn10300.c (md_assemble): Simplify offset adjustment of
pc-relative relocations not placed at the end of the instruction.
diff --git a/gas/struc-symbol.h b/gas/struc-symbol.h
index 6573f2c..01c8b4f 100644
--- a/gas/struc-symbol.h
+++ b/gas/struc-symbol.h
@@ -139,6 +139,10 @@ struct local_symbol
/* The offset within the frag. */
valueT lsy_offset;
+
+#ifdef TC_LOCAL_SYMFIELD_TYPE
+ TC_LOCAL_SYMFIELD_TYPE lsy_tc;
+#endif
};
#define local_symbol_converted_p(l) ((l)->lsy_section == reg_section)
diff --git a/gas/symbols.c b/gas/symbols.c
index 913686c..98623eb 100644
--- a/gas/symbols.c
+++ b/gas/symbols.c
@@ -255,6 +255,10 @@ local_symbol_convert (locsym)
/* Local symbols are always either defined or used. */
ret->sy_used = 1;
+#ifdef TC_LOCAL_SYMFIELD_CONVERT
+ TC_LOCAL_SYMFIELD_CONVERT (locsym, ret);
+#endif
+
symbol_table_insert (ret);
local_symbol_mark_converted (locsym);