diff options
author | Stan Shebs <shebs@codesourcery.com> | 1995-06-16 00:07:45 +0000 |
---|---|---|
committer | Stan Shebs <shebs@codesourcery.com> | 1995-06-16 00:07:45 +0000 |
commit | d21041b3e20375ba2139d2c21a5e4d44ecdf26f2 (patch) | |
tree | 9069fcd01de5cd061f563566843f087d679fe82d /gas/config/obj-coff.c | |
parent | e33c359dcbac4cc48ee4e9facde3bd02ae29905c (diff) | |
download | gdb-d21041b3e20375ba2139d2c21a5e4d44ecdf26f2.zip gdb-d21041b3e20375ba2139d2c21a5e4d44ecdf26f2.tar.gz gdb-d21041b3e20375ba2139d2c21a5e4d44ecdf26f2.tar.bz2 |
* config/obj-coff.c: Don't use "bfd/" when including libbfd.h
and libcoff.h.
(fill_section): Call PROGRESS.
* Makefile.in (INCLUDES): Add bfd srcdir.
* mpw-config.in: Add bfd_gas flag and set for each config.
(i386-unknown-go32, m68k-unknown-coff): Recognize.
* mpw-make.in (HACK_O_RAMA, OBJ_COFF_OMIT_TIMESTAMP): Add to
config.h.
Diffstat (limited to 'gas/config/obj-coff.c')
-rw-r--r-- | gas/config/obj-coff.c | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/gas/config/obj-coff.c b/gas/config/obj-coff.c index 1c9f9cd..82b5e96 100644 --- a/gas/config/obj-coff.c +++ b/gas/config/obj-coff.c @@ -1306,8 +1306,9 @@ symbol_dump () #include "frags.h" /* This is needed because we include internal bfd things. */ #include <time.h> -#include "bfd/libbfd.h" -#include "bfd/libcoff.h" + +#include "libbfd.h" +#include "libcoff.h" /* The NOP_OPCODE is for the alignment fill value. Fill with nop so that we can stick sections together without causing trouble. */ @@ -1681,9 +1682,10 @@ fill_section (abfd, h, file_cursor) for (i = SEG_E0; i < SEG_UNKNOWN; i++) { unsigned int offset = 0; - struct internal_scnhdr *s = &(segment_info[i].scnhdr); + PROGRESS (1); + if (s->s_name[0]) { fragS *frag = segment_info[i].frchainP->frch_root; @@ -2949,13 +2951,11 @@ write_object_file () H_SET_STRING_SIZE (&headers, string_byte_count); -#if !defined(TC_H8300) && !defined(TC_Z8K) for (i = SEG_E0; i < SEG_UNKNOWN; i++) { fixup_mdeps (segment_info[i].frchainP->frch_root, &headers, i); fixup_segment (&segment_info[i], i); } -#endif /* Look for ".stab" segments and fill in their initial symbols correctly. */ @@ -3489,6 +3489,9 @@ fixup_segment (segP, this_segment_type) register fragS *fragP; register segT add_symbol_segment = absolute_section; + if (linkrelax) + return; + for (fixP = segP->fix_root; fixP; fixP = fixP->fx_next) { fragP = fixP->fx_frag; @@ -3644,7 +3647,8 @@ fixup_segment (segP, this_segment_type) break; default: -#ifdef TC_A29K + +#if defined(TC_A29K) || (defined(TE_PE) && defined(TC_I386)) /* This really should be handled in the linker, but backward compatibility forbids. */ add_number += S_GET_VALUE (add_symbolP); @@ -3687,7 +3691,7 @@ fixup_segment (segP, this_segment_type) if (pcrel) { -#ifndef TC_M88K +#if !defined(TC_M88K) && !(defined(TE_PE) && defined(TC_I386)) /* This adjustment is not correct on the m88k, for which the linker does all the computation. */ add_number -= md_pcrel_from (fixP); |