Remove obsolete ECOFF support.

* collect2.c (OBJECT_FORMAT_COFF): Remove EXTENDED_COFF support.
	(scan_prog_file): Likewise.

From-SVN: r254603
This commit is contained in:
Jim Wilson 2017-11-09 18:03:52 +00:00 committed by Jim Wilson
parent 370df3ce7c
commit f097ff2350
2 changed files with 5 additions and 19 deletions

View File

@ -1,3 +1,8 @@
2017-11-09 Jim Wilson <jimw@sifive.com>
* collect2.c (OBJECT_FORMAT_COFF): Remove EXTENDED_COFF support.
(scan_prog_file): Likewise.
2017-11-09 Jan Hubicka <hubicka@ucw.cz>
* bb-reorder.c (max_entry_frequency): Remove.

View File

@ -2641,17 +2641,6 @@ scan_libraries (const char *prog_name)
#ifdef OBJECT_FORMAT_COFF
#if defined (EXTENDED_COFF)
# define GCC_SYMBOLS(X) (SYMHEADER (X).isymMax + SYMHEADER (X).iextMax)
# define GCC_SYMENT SYMR
# define GCC_OK_SYMBOL(X) ((X).st == stProc || (X).st == stGlobal)
# define GCC_SYMINC(X) (1)
# define GCC_SYMZERO(X) (SYMHEADER (X).isymMax)
# define GCC_CHECK_HDR(X) (PSYMTAB (X) != 0)
#else
# define GCC_SYMBOLS(X) (HEADER (ldptr).f_nsyms)
# define GCC_SYMENT SYMENT
# if defined (C_WEAKEXT)
@ -2690,8 +2679,6 @@ scan_libraries (const char *prog_name)
&& !(HEADER (X).f_flags & F_LOADONLY))
#endif
#endif
#ifdef COLLECT_EXPORT_LIST
/* Array of standard AIX libraries which should not
be scanned for ctors/dtors. */
@ -2920,16 +2907,10 @@ scan_prog_file (const char *prog_name, scanpass which_pass,
}
if (debug)
#if !defined(EXTENDED_COFF)
fprintf (stderr, "\tsec=%d class=%d type=%s%o %s\n",
symbol.n_scnum, symbol.n_sclass,
(symbol.n_type ? "0" : ""), symbol.n_type,
name);
#else
fprintf (stderr,
"\tiss = %5d, value = %5ld, index = %5d, name = %s\n",
symbol.iss, (long) symbol.value, symbol.index, name);
#endif
}
}
}