diff options
author | Alan Modra <amodra@gmail.com> | 2009-08-30 05:47:43 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2009-08-30 05:47:43 +0000 |
commit | 8be573a79b848e118bbe0247d706827f93252b43 (patch) | |
tree | 72e4a7cf537707c87ad6aafd8ce64b7352875df5 /ld/ldmain.c | |
parent | 095106a28929849695bf377fdfffdd67015704b7 (diff) | |
download | gdb-8be573a79b848e118bbe0247d706827f93252b43.zip gdb-8be573a79b848e118bbe0247d706827f93252b43.tar.gz gdb-8be573a79b848e118bbe0247d706827f93252b43.tar.bz2 |
PR ld/10569
* ldexp.c (fold_name <MAXPAGESIZE>): Return config.maxpagesize.
(fold_name <COMMONPAGESIZE>): Similarly.
* ldlang.c (output_target): Make global.
* ldlang.h (output_target): Declare.
* ldmain.c (main): Set config.maxpagesize from bfd_emul_get_maxpagesize.
Similarly for config.commonpagesize.
* ldemul.c (set_output_arch_default): Call bfd_emul_set_maxpagesize
and bfd_emul_set_commonpagesize.
* emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Don't call
bfd_emul_set_maxpagesize or bfd_emul_set_commonpagesize here.
Diffstat (limited to 'ld/ldmain.c')
-rw-r--r-- | ld/ldmain.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ld/ldmain.c b/ld/ldmain.c index 3b8fed6..a7636db 100644 --- a/ld/ldmain.c +++ b/ld/ldmain.c @@ -280,6 +280,8 @@ main (int argc, char **argv) emulation = get_emulation (argc, argv); ldemul_choose_mode (emulation); default_target = ldemul_choose_target (argc, argv); + config.maxpagesize = bfd_emul_get_maxpagesize (default_target); + config.commonpagesize = bfd_emul_get_commonpagesize (default_target); lang_init (); ldemul_before_parse (); lang_has_input_file = FALSE; |