aboutsummaryrefslogtreecommitdiff
path: root/ld/emultempl
diff options
context:
space:
mode:
authorBen Elliston <bje@au.ibm.com>2005-01-21 04:15:59 +0000
committerBen Elliston <bje@au.ibm.com>2005-01-21 04:15:59 +0000
commit7a64f7b8d66f81748f711b5511e716abd63548e0 (patch)
tree54dfcc2826b25017f24d545bdc505859be4a3c23 /ld/emultempl
parent753e3eb6f2b4236b9a357c2550b3b0df65f0221e (diff)
downloadgdb-7a64f7b8d66f81748f711b5511e716abd63548e0.zip
gdb-7a64f7b8d66f81748f711b5511e716abd63548e0.tar.gz
gdb-7a64f7b8d66f81748f711b5511e716abd63548e0.tar.bz2
* ldlang.c (lang_reasonable_defaults): Remove.
(lang_process): Don't call lang_reasonable_defaults. * ldexp.c (exp_assop): Remove #if 0'd code. (exp_print_tree): Likewise. * ldlang.c (lang_memory_region_lookup): Likewise. (open_output): Likewise. (lang_do_assignments_1): Likewise. (lang_place_orphans): Likewise. (lang_enter_output_section_statement): Likewise. (lang_reasonable_defaults): Likewise. * ldlang.h (struct lang_input_statement_struct): Likewise. * mri.c (mri_draw_tree): Likewise. (mri_load): Likewise. * pe-dll.c (generate_reloc): Likewise. (make_import_fixup_entry): Likewise. (pe_as16): Likewise. * emultempl/beos.em (set_pe_subsystem): Likewise. * emultempl/hppaelf.em (hppaelf_after_parse): Likewise. * emultempl/pe.em: Likewise. * emultempl/xtensaelf.em (xtensa_colocate_literals): Likewise.
Diffstat (limited to 'ld/emultempl')
-rw-r--r--ld/emultempl/hppaelf.em12
-rw-r--r--ld/emultempl/pe.em8
-rw-r--r--ld/emultempl/xtensaelf.em10
3 files changed, 6 insertions, 24 deletions
diff --git a/ld/emultempl/hppaelf.em b/ld/emultempl/hppaelf.em
index 89fdfd0..2b03fbe 100644
--- a/ld/emultempl/hppaelf.em
+++ b/ld/emultempl/hppaelf.em
@@ -52,12 +52,12 @@ hppaelf_after_parse (void)
{
if (link_info.relocatable)
lang_add_unique (".text");
-#if 0 /* Enable this once we split millicode stuff from libgcc. */
- else
- lang_add_input_file ("milli",
- lang_input_file_is_l_enum,
- NULL);
-#endif
+
+ /* Enable this once we split millicode stuff from libgcc:
+ lang_add_input_file ("milli",
+ lang_input_file_is_l_enum,
+ NULL);
+ */
}
/* This is called before the input files are opened. We create a new
diff --git a/ld/emultempl/pe.em b/ld/emultempl/pe.em
index ccbda5c..0b0242b 100644
--- a/ld/emultempl/pe.em
+++ b/ld/emultempl/pe.em
@@ -1362,14 +1362,6 @@ gld_${EMULATION_NAME}_unrecognized_file (lang_input_statement_type *entry ATTRIB
exp_assop ('=', "__image_base__", exp_intop (pe.ImageBase));
}
-#if 0
- /* Not sure if these *should* be set. */
- if (pe_def_file->version_major != -1)
- {
- pe.MajorImageVersion = pe_def_file->version_major;
- pe.MinorImageVersion = pe_def_file->version_minor;
- }
-#endif
if (pe_def_file->stack_reserve != -1
&& ! saw_option ("__size_of_stack_reserve__"))
{
diff --git a/ld/emultempl/xtensaelf.em b/ld/emultempl/xtensaelf.em
index b29ec49..b796578 100644
--- a/ld/emultempl/xtensaelf.em
+++ b/ld/emultempl/xtensaelf.em
@@ -873,16 +873,6 @@ xtensa_colocate_literals (reloc_deps_graph *deps,
if (deps->count == 0)
return;
-#if 0
- ld_assign_relative_paged_dot (0x100000, statement, deps,
- xtensa_use_literal_pages);
-
- if (!ld_local_file_relocations_fit (statement, deps))
- fprintf (stderr, "initial relocation placement does not fit\n");
-
- lang_for_each_statement_worker (xtensa_ldlang_clear_addresses, statement);
-#endif
-
iter_stack_create (stack_p, statement);
while (!iter_stack_empty (stack_p))