mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-26 17:18:55 +00: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:
14
ld/lderror.c
14
ld/lderror.c
@@ -14,9 +14,9 @@ extern bfd_error_vector_type bfd_error_vector;
|
||||
/* BFD has failed to link something, give a better error message */
|
||||
|
||||
static void
|
||||
DEFUN(ld_undefined_symbol,(relent, seclet),
|
||||
CONST arelent *relent AND
|
||||
CONST bfd_seclet_type *seclet)
|
||||
ld_undefined_symbol (relent, seclet)
|
||||
CONST arelent *relent;
|
||||
CONST bfd_seclet_type *seclet;
|
||||
{
|
||||
asymbol *s = *(relent->sym_ptr_ptr);
|
||||
static asymbol *error_symbol;
|
||||
@@ -60,9 +60,9 @@ DEFUN(ld_undefined_symbol,(relent, seclet),
|
||||
}
|
||||
}
|
||||
static void
|
||||
DEFUN(ld_reloc_truncated,(relent, seclet),
|
||||
CONST arelent *relent AND
|
||||
bfd_seclet_type *seclet)
|
||||
ld_reloc_truncated (relent, seclet)
|
||||
CONST arelent *relent;
|
||||
bfd_seclet_type *seclet;
|
||||
{
|
||||
asymbol *s = *(relent->sym_ptr_ptr);
|
||||
asection *section = seclet->u.indirect.section;
|
||||
@@ -75,7 +75,7 @@ DEFUN(ld_reloc_truncated,(relent, seclet),
|
||||
|
||||
|
||||
void
|
||||
DEFUN_VOID(init_bfd_error_vector)
|
||||
init_bfd_error_vector ()
|
||||
{
|
||||
bfd_error_vector.undefined_symbol = ld_undefined_symbol;
|
||||
bfd_error_vector.reloc_value_truncated = ld_reloc_truncated;
|
||||
|
||||
Reference in New Issue
Block a user