diff options
author | DJ Delorie <dj@delorie.com> | 1999-05-11 21:05:44 +0000 |
---|---|---|
committer | DJ Delorie <dj@delorie.com> | 1999-05-11 21:05:44 +0000 |
commit | 72542c1f88daf3c249aebc927670a54ce9da43be (patch) | |
tree | 36227b779334e53909a4362e7fea1d5032ac56ff /bfd/ecoff.c | |
parent | d8259fbb31508cb5cb1ccbd5a762ae8634c8bb5a (diff) | |
download | binutils-redhat-72542c1f88daf3c249aebc927670a54ce9da43be.tar.gz |
* ecoff.c (_bfd_ecoff_write_armap): give the symtab element a
reasonable mode until "ar x" is smart enough to skip it (fixes
gcc/libgcc.a builds on mips-ecoff targets
* coffcode.h (styp_to_sec_flags): Explain how COMDATs are supposed
to work. Hack to support MS import libraries, which use different
COMDAT types than GNU.
(coff_slurp_symbol_table): C_SECTION symbols are local; they refer
to implied zero-length sections (see peicode below)
* coffgen.c (coff_get_normalized_symtab): Properly read long MS
filename symbols, which use one *or more* auxents.
* coffswap.h (coff_swap_aux_in): ditto
* peicode.h (coff_swap_sym_in): Build the implied zero-length
sections
Diffstat (limited to 'bfd/ecoff.c')
-rw-r--r-- | bfd/ecoff.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/bfd/ecoff.c b/bfd/ecoff.c index d5c6f85a71..32a2309e94 100644 --- a/bfd/ecoff.c +++ b/bfd/ecoff.c @@ -3181,7 +3181,14 @@ _bfd_ecoff_write_armap (abfd, elength, map, orl_count, stridx) armap. */ hdr.ar_uid[0] = '0'; hdr.ar_gid[0] = '0'; +#if 0 hdr.ar_mode[0] = '0'; +#else + /* Building gcc ends up extracting the armap as a file - twice. */ + hdr.ar_mode[0] = '6'; + hdr.ar_mode[1] = '4'; + hdr.ar_mode[2] = '4'; +#endif sprintf (hdr.ar_size, "%-10d", (int) mapsize); |