diff options
author | Ian Lance Taylor <ian@airs.com> | 1995-11-30 16:25:27 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1995-11-30 16:25:27 +0000 |
commit | 464070de438cc02781de93b3c7fefdae848e940e (patch) | |
tree | 008dd526627c0c6b07efb38e16d9f4c55f4439c6 /gas/config | |
parent | f62fed1c4a889cac5e42779b523909f3d89d0412 (diff) | |
download | gdb-464070de438cc02781de93b3c7fefdae848e940e.zip gdb-464070de438cc02781de93b3c7fefdae848e940e.tar.gz gdb-464070de438cc02781de93b3c7fefdae848e940e.tar.bz2 |
Thu Nov 30 11:23:42 1995 Manfred Hollstein KS/EF4A 60/1F/110 #40283 <manfred@lts.sel.alcatel.de>
* config/obj-coff.c (fixup_segment): If TC_M88K is defined, do not
add section's paddr to add_number; compatibility to native as and
ld forbids.
Diffstat (limited to 'gas/config')
-rw-r--r-- | gas/config/obj-coff.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/gas/config/obj-coff.c b/gas/config/obj-coff.c index 9e37e7e..25dfbd4 100644 --- a/gas/config/obj-coff.c +++ b/gas/config/obj-coff.c @@ -3006,7 +3006,10 @@ write_object_file () #define SUB_SEGMENT_ALIGN(SEG) 1 #endif #ifdef md_do_align - md_do_align (SUB_SEGMENT_ALIGN (now_seg), NOP_OPCODE, alignment_done); + { + static char nop = NOP_OPCODE; + md_do_align (SUB_SEGMENT_ALIGN (now_seg), &nop, alignment_done); + } #endif frag_align (SUB_SEGMENT_ALIGN (now_seg), NOP_OPCODE); #ifdef md_do_align @@ -3850,7 +3853,7 @@ fixup_segment (segP, this_segment_type) default: -#if defined(TC_A29K) || (defined(TE_PE) && defined(TC_I386)) +#if defined(TC_A29K) || (defined(TE_PE) && defined(TC_I386)) || defined(TC_M88K) /* This really should be handled in the linker, but backward compatibility forbids. */ add_number += S_GET_VALUE (add_symbolP); @@ -3893,7 +3896,7 @@ fixup_segment (segP, this_segment_type) if (pcrel) { -#if !defined(TC_M88K) && !(defined(TE_PE) && defined(TC_I386)) +#if !defined(TC_M88K) && !(defined(TE_PE) && defined(TC_I386)) && !defined(TC_A29K) /* This adjustment is not correct on the m88k, for which the linker does all the computation. */ add_number -= md_pcrel_from (fixP); |