aboutsummaryrefslogtreecommitdiff
path: root/gas/config/tc-mn10300.c
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2000-09-05 21:01:39 +0000
committerEric Christopher <echristo@gmail.com>2000-09-05 21:01:39 +0000
commit1485d40032c2a26e45c2eb7f09967a74faa9307d (patch)
treec59a50be691448f18578e7be08ba901bec8f9ad7 /gas/config/tc-mn10300.c
parent6148eca7f8449c429fb737d714f1e3a9030c76ce (diff)
downloadfsf-binutils-gdb-1485d40032c2a26e45c2eb7f09967a74faa9307d.zip
fsf-binutils-gdb-1485d40032c2a26e45c2eb7f09967a74faa9307d.tar.gz
fsf-binutils-gdb-1485d40032c2a26e45c2eb7f09967a74faa9307d.tar.bz2
2000-09-05 Eric Christopher <echristo@cygnus.com>
* config/tc-mn10300.c: Cleanup. (md_pcrel_from): Enable.
Diffstat (limited to 'gas/config/tc-mn10300.c')
-rw-r--r--gas/config/tc-mn10300.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/gas/config/tc-mn10300.c b/gas/config/tc-mn10300.c
index d84fb4a..301a42b 100644
--- a/gas/config/tc-mn10300.c
+++ b/gas/config/tc-mn10300.c
@@ -95,6 +95,9 @@ static boolean address_register_name PARAMS ((expressionS *expressionP));
static boolean other_register_name PARAMS ((expressionS *expressionP));
static void set_arch_mach PARAMS ((int));
+/* Set linkrelax here to avoid fixups in most sections. */
+int linkrelax = 1;
+
static int current_machine;
/* Fixups. */
@@ -918,11 +921,6 @@ md_begin ()
op++;
}
- /* This is both a simplification (we don't have to write md_apply_fix)
- and support for future optimizations (branch shortening and similar
- stuff in the linker). */
- linkrelax = 1;
-
/* Set the default machine type. */
if (!bfd_set_arch_mach (stdoutput, bfd_arch_mn10300, MN103))
as_warn (_("could not set architecture and machine"));
@@ -1903,15 +1901,12 @@ long
md_pcrel_from (fixp)
fixS *fixp;
{
- return fixp->fx_frag->fr_address;
-#if 0
if (fixp->fx_addsy != (symbolS *) NULL && !S_IS_DEFINED (fixp->fx_addsy))
{
/* The symbol is undefined. Let the linker figure it out. */
return 0;
}
return fixp->fx_frag->fr_address + fixp->fx_where;
-#endif
}
int