aboutsummaryrefslogtreecommitdiff
path: root/ld/ldgram.y
diff options
context:
space:
mode:
authorSteve Chamberlain <sac@cygnus>1992-01-28 18:21:36 +0000
committerSteve Chamberlain <sac@cygnus>1992-01-28 18:21:36 +0000
commit870f54b2c887f03258f78baf5e772cb055c69b06 (patch)
tree22bef9ed29165e535059ab56d5b52a478784eda9 /ld/ldgram.y
parentdaa91756f11404bc87d38eb1e1a6bc9435e0326a (diff)
downloadgdb-870f54b2c887f03258f78baf5e772cb055c69b06.zip
gdb-870f54b2c887f03258f78baf5e772cb055c69b06.tar.gz
gdb-870f54b2c887f03258f78baf5e772cb055c69b06.tar.bz2
* ldgram.y: map -M behave in the same way as -Map (sets file name
to be "-". * ldsym.c, ldlang.c: remember that size of a section is dependent on whether or not relaxing has been done. * ldmain.c: don't open a map file if it doesn't have a name * relax.c: all the brains have moved into bfd. * ldwrite.c: ammend comment
Diffstat (limited to 'ld/ldgram.y')
-rw-r--r--ld/ldgram.y7
1 files changed, 2 insertions, 5 deletions
diff --git a/ld/ldgram.y b/ld/ldgram.y
index d342da1..039a07d 100644
--- a/ld/ldgram.y
+++ b/ld/ldgram.y
@@ -193,11 +193,8 @@ command_line_option:
}
| OPTION_M {
- if (write_map) {
- option_longmap = true;
- }
- write_map = true;
-
+ config.map_filename = "-";
+
}
| OPTION_n {
config.magic_demand_paged = false;