mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-25 04:49:54 +08:00
* ldfile.c (ldfile_open_command): Don't try .ld extension.
It wasn't documented (or likely used) and wastes time. (try_open): If EXTEN is empty, don't try it. * ldctor.c, lderror.c, ldexp.c, ldfile.c, ldindr.c, ldlang.c, ldlex.l, ldmain.c, ldmisc.c, ldsym.c, ldver.c, ldwarn.c, ldwrite.c, lexsup.c, mri.c, relax.c: Replace DEFUN macro calls with normal function declarations. * Move *.em to emultempl/*.em. Move *.sh to emulparams/*.sh. Move *.sc-sh to scripttempl/*.sc. * {emultempl,emulparams,scripttempl}/README: New files. * sh.em, st2000.em, z8ksim.em, h8300hms.em, h8500hms.em: Files removed, replaced with generic.em. * h8300.sh, h8500.sh, h8300.sc, h8500.sc: Renamed from h8[35]00hms.s[ch]. Change their contents to omit the "hms". * *.em (*_get_script): Return script name instead of script contents. * ldlang.c (lang_process): Change caller. * ldlex.l, ldgram.y: Recognize -m option. Check for input files after *all* options in grammar. * ldmain.c (main): Check for -m options. Add default directory for -m. * mkscript.c: File removed. * genscripts.sh: Take two more parameters, tooldirlib and libdir, to add to the default LIB_PATH. Look for input files in the new subdirectories. Create the scripts in emulations subdirectory and don't filter them through mkscript. * configure.in: Make the emulations subdirectory. * Makefile.in: Account for all of the above changes. Remove unused .SUFFIXES. Get libgcc.a path with gcc -print-libgcc-file-name instead of $(libdir)/libgcc.a. Put CFLAGS last in the compilation rules. Add -I../bfd to INCLUDES so sysdep.h is found. * ldfile.c (try_open): If opening without the extension fails, try with the extension even if -v or -V was given. had_script is imported (from ldgram.y), not exported.
This commit is contained in:
28
ld/ldsym.c
28
ld/ldsym.c
@ -95,8 +95,8 @@ static
|
||||
#endif
|
||||
|
||||
int
|
||||
DEFUN (hash_string, (key),
|
||||
CONST char *key)
|
||||
hash_string (key)
|
||||
CONST char *key;
|
||||
{
|
||||
register CONST char *cp;
|
||||
register int k;
|
||||
@ -116,9 +116,9 @@ static
|
||||
__inline
|
||||
#endif
|
||||
ldsym_type *
|
||||
DEFUN (search, (key, hashval),
|
||||
CONST char *key AND
|
||||
int hashval)
|
||||
search (key, hashval)
|
||||
CONST char *key;
|
||||
int hashval;
|
||||
{
|
||||
ldsym_type *bp;
|
||||
for (bp = global_symbol_hash_table[hashval]; bp; bp = bp->link)
|
||||
@ -138,8 +138,8 @@ DEFUN (search, (key, hashval),
|
||||
/* Get the symbol table entry for the global symbol named KEY.
|
||||
Create one if there is none. */
|
||||
ldsym_type *
|
||||
DEFUN (ldsym_get, (key),
|
||||
CONST char *key)
|
||||
ldsym_get (key)
|
||||
CONST char *key;
|
||||
{
|
||||
register int hashval;
|
||||
register ldsym_type *bp;
|
||||
@ -180,8 +180,8 @@ DEFUN (ldsym_get, (key),
|
||||
/* Like `ldsym_get' but return 0 if the symbol is not already known. */
|
||||
|
||||
ldsym_type *
|
||||
DEFUN (ldsym_get_soft, (key),
|
||||
CONST char *key)
|
||||
ldsym_get_soft (key)
|
||||
CONST char *key;
|
||||
{
|
||||
register int hashval;
|
||||
/* Determine which bucket. */
|
||||
@ -313,8 +313,8 @@ list_file_locals (entry)
|
||||
|
||||
|
||||
static void
|
||||
DEFUN (print_file_stuff, (f),
|
||||
lang_input_statement_type * f)
|
||||
print_file_stuff (f)
|
||||
lang_input_statement_type * f;
|
||||
{
|
||||
fprintf (config.map_file, " %s\n", f->filename);
|
||||
if (f->just_syms_flag)
|
||||
@ -659,8 +659,8 @@ return true if the supplied symbol name is not in the
|
||||
linker symbol table
|
||||
*/
|
||||
boolean
|
||||
DEFUN (ldsym_undefined, (sym),
|
||||
CONST char *sym)
|
||||
ldsym_undefined (sym)
|
||||
CONST char *sym;
|
||||
{
|
||||
ldsym_type *from_table = ldsym_get_soft (sym);
|
||||
if (from_table != (ldsym_type *) NULL)
|
||||
@ -672,7 +672,7 @@ DEFUN (ldsym_undefined, (sym),
|
||||
}
|
||||
|
||||
void
|
||||
DEFUN_VOID (ldsym_init)
|
||||
ldsym_init ()
|
||||
{
|
||||
obstack_begin (&global_sym_obstack, 20000);
|
||||
}
|
||||
|
Reference in New Issue
Block a user