aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1994-05-04 15:31:17 +0000
committerIan Lance Taylor <ian@airs.com>1994-05-04 15:31:17 +0000
commit9fc63ce06a22f06af4447545f955a99ac4cf95a5 (patch)
treeb53ffd1342caf3826968af334af702407feac131 /gas
parentd24c05991f1e82a948bd1e362e677aad103f9edd (diff)
downloadgdb-9fc63ce06a22f06af4447545f955a99ac4cf95a5.zip
gdb-9fc63ce06a22f06af4447545f955a99ac4cf95a5.tar.gz
gdb-9fc63ce06a22f06af4447545f955a99ac4cf95a5.tar.bz2
* config/obj-coffbfd.c (fixup_segment): Make common symbol and PC
relative adjustments when TE_LYNX is defined as well as when TC_I386 is defined.
Diffstat (limited to 'gas')
-rw-r--r--gas/ChangeLog6
-rw-r--r--gas/config/obj-coffbfd.c6
2 files changed, 9 insertions, 3 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index a7fc824..ade4fd4 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,3 +1,9 @@
+Wed May 4 11:29:17 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
+
+ * config/obj-coffbfd.c (fixup_segment): Make common symbol and PC
+ relative adjustments when TE_LYNX is defined as well as when
+ TC_I386 is defined.
+
Wed May 4 02:29:21 1994 Ken Raeburn (raeburn@kr-pc.cygnus.com)
* as.h (strstr): Restore declaration.
diff --git a/gas/config/obj-coffbfd.c b/gas/config/obj-coffbfd.c
index 9e708b5..f62db37 100644
--- a/gas/config/obj-coffbfd.c
+++ b/gas/config/obj-coffbfd.c
@@ -2495,7 +2495,7 @@ fixup_segment (segP, this_segment_type)
add_number += S_GET_VALUE (add_symbolP);
add_number -= md_pcrel_from (fixP);
-#ifdef TC_I386
+#if defined (TC_I386) || defined (TE_LYNX)
/* On the 386 we must adjust by the segment
vaddr as well. Ian Taylor. */
add_number -= segP->scnhdr.s_vaddr;
@@ -2544,7 +2544,7 @@ fixup_segment (segP, this_segment_type)
continue;
} /* COBR */
#endif /* TC_I960 */
-#ifdef TC_I386
+#if defined (TC_I386) || defined (TE_LYNX)
/* 386 COFF uses a peculiar format in
which the value of a common symbol is
stored in the .text segment (I've
@@ -2571,7 +2571,7 @@ fixup_segment (segP, this_segment_type)
{
fixP->fx_addsy = &abs_symbol;
} /* if there's an add_symbol */
-#ifdef TC_I386
+#if defined (TC_I386) || defined (TE_LYNX)
/* On the 386 we must adjust by the segment vaddr
as well. Ian Taylor. */
add_number -= segP->scnhdr.s_vaddr;