From 8be573a79b848e118bbe0247d706827f93252b43 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Sun, 30 Aug 2009 05:47:43 +0000 Subject: PR ld/10569 * ldexp.c (fold_name ): Return config.maxpagesize. (fold_name ): 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. --- ld/ldexp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ld/ldexp.c') diff --git a/ld/ldexp.c b/ld/ldexp.c index 99bf08f..7133f37 100644 --- a/ld/ldexp.c +++ b/ld/ldexp.c @@ -673,9 +673,9 @@ fold_name (etree_type *tree) case CONSTANT: if (strcmp (tree->name.name, "MAXPAGESIZE") == 0) - new_abs (bfd_emul_get_maxpagesize (default_target)); + new_abs (config.maxpagesize); else if (strcmp (tree->name.name, "COMMONPAGESIZE") == 0) - new_abs (bfd_emul_get_commonpagesize (default_target)); + new_abs (config.commonpagesize); else einfo (_("%F%S: unknown constant `%s' referenced in expression\n"), tree->name.name); -- cgit v1.1