aboutsummaryrefslogtreecommitdiff
path: root/ld/ldlang.h
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2009-08-30 05:47:43 +0000
committerAlan Modra <amodra@gmail.com>2009-08-30 05:47:43 +0000
commit8be573a79b848e118bbe0247d706827f93252b43 (patch)
tree72e4a7cf537707c87ad6aafd8ce64b7352875df5 /ld/ldlang.h
parent095106a28929849695bf377fdfffdd67015704b7 (diff)
downloadgdb-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/ldlang.h')
-rw-r--r--ld/ldlang.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/ld/ldlang.h b/ld/ldlang.h
index 4629883..a4c3e21 100644
--- a/ld/ldlang.h
+++ b/ld/ldlang.h
@@ -445,6 +445,7 @@ struct orphan_save
lang_output_section_statement_type **os_tail;
};
+extern const char *output_target;
extern lang_output_section_statement_type *abs_output_section;
extern lang_statement_list_type lang_output_section_statement;
extern bfd_boolean lang_has_input_file;