aboutsummaryrefslogtreecommitdiff
path: root/gas/config/tc-mn10300.c
diff options
context:
space:
mode:
authorTrevor Saunders <tbsaunde+binutils@tbsaunde.org>2016-05-14 00:34:05 -0400
committerTrevor Saunders <tbsaunde+binutils@tbsaunde.org>2016-05-16 05:01:52 -0400
commit9117cd3e10673e8f80fc0c64f1a32215d9638fc2 (patch)
tree0e8978a8f21e4bfb8efb73d4e0c55accc0ee9bc5 /gas/config/tc-mn10300.c
parente18382406ce321517210e0fdb6a8a0d417078fef (diff)
downloadfsf-binutils-gdb-9117cd3e10673e8f80fc0c64f1a32215d9638fc2.zip
fsf-binutils-gdb-9117cd3e10673e8f80fc0c64f1a32215d9638fc2.tar.gz
fsf-binutils-gdb-9117cd3e10673e8f80fc0c64f1a32215d9638fc2.tar.bz2
stop defining linkrelax in multiple places
Defining linkrelax to have different values in as.c and tc-msp430.c / tc-mn10300.c is at least rather tricky, and seems fragile, when we can just set it in md_begin instead. gas/ChangeLog: 2016-05-16 Trevor Saunders <tbsaunde+binutils@tbsaunde.org> * config/tc-mn10300.c (md_begin): set linkrelax here instead of defining it. * config/tc-msp430.c (md_begin): Likewise.
Diffstat (limited to 'gas/config/tc-mn10300.c')
-rw-r--r--gas/config/tc-mn10300.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gas/config/tc-mn10300.c b/gas/config/tc-mn10300.c
index 52c37e1..4ce2ee4 100644
--- a/gas/config/tc-mn10300.c
+++ b/gas/config/tc-mn10300.c
@@ -89,9 +89,6 @@ const relax_typeS md_relax_table[] =
};
-/* Set linkrelax here to avoid fixups in most sections. */
-int linkrelax = 1;
-
static int current_machine;
/* Fixups. */
@@ -944,6 +941,9 @@ md_begin (void)
current_machine = MN103;
#endif
+
+ /* Set linkrelax here to avoid fixups in most sections. */
+ linkrelax = 1;
}
static symbolS *GOT_symbol;