diff options
author | Steve Chamberlain <sac@cygnus> | 1992-01-24 22:34:34 +0000 |
---|---|---|
committer | Steve Chamberlain <sac@cygnus> | 1992-01-24 22:34:34 +0000 |
commit | 2e2bf962db00b2e23a222687e4bc3c5971c645b7 (patch) | |
tree | 0eceb10d2d00f8f32ad14ea539129ee894d7f1e9 /ld/ldmain.c | |
parent | 2cbe4c5f9e97dff6786352e1867c3c6afd383258 (diff) | |
download | fsf-binutils-gdb-2e2bf962db00b2e23a222687e4bc3c5971c645b7.zip fsf-binutils-gdb-2e2bf962db00b2e23a222687e4bc3c5971c645b7.tar.gz fsf-binutils-gdb-2e2bf962db00b2e23a222687e4bc3c5971c645b7.tar.bz2 |
* 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
Diffstat (limited to 'ld/ldmain.c')
-rw-r--r-- | ld/ldmain.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/ld/ldmain.c b/ld/ldmain.c index 99526a0..a83385e 100644 --- a/ld/ldmain.c +++ b/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 |