summaryrefslogtreecommitdiff
path: root/bfd/ecoff.c
diff options
context:
space:
mode:
authorDJ Delorie <dj@delorie.com>1999-05-11 21:05:44 +0000
committerDJ Delorie <dj@delorie.com>1999-05-11 21:05:44 +0000
commit436e09cc959b8bbc222cd63ce7873ef25383b441 (patch)
tree8460106e5d5f40f913b827631d4c60d3bdd71958 /bfd/ecoff.c
parentac5429cbc800b60040b8b230186493015596b8fa (diff)
downloadgdb-436e09cc959b8bbc222cd63ce7873ef25383b441.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.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/bfd/ecoff.c b/bfd/ecoff.c
index d5c6f85a717..32a2309e941 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);