mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-29 02:20:51 +00:00
* Makefile.in: added relax, also made three stage go through a
partial link stage. * relax.c : added * config.h: if GNU960 defined, then default emulation mode is GLD960 * ldexp.h, ldexp.c: map to file hooks * ldlang.c: map to file hooks * ldgram.y: added -Map -relax * ldlex.l: added -relax, -Map * ldmain.c: open map file * ldmisc.c: support for map file * ldwrite.c: new relax magic
This commit is contained in:
11
ld/ldmain.c
11
ld/ldmain.c
@@ -190,6 +190,17 @@ main (argc, argv)
|
||||
}
|
||||
|
||||
ldemul_after_parse();
|
||||
if (config.map_filename)
|
||||
{
|
||||
config.map_file = fopen(config.map_filename, FOPEN_WT);
|
||||
if (config.map_file == (FILE *)NULL)
|
||||
{
|
||||
einfo("%P%F: can't open map file %s\n",
|
||||
config.map_filename);
|
||||
}
|
||||
}
|
||||
else config.map_file = stdout;
|
||||
|
||||
lang_process();
|
||||
|
||||
/* Print error messages for any missing symbols, for any warning
|
||||
|
||||
Reference in New Issue
Block a user