* amd64obsd-tdep.c (amd64obsd_sigtramp_p): Adjust for new
[deliverable/binutils-gdb.git] / ld / ChangeLog
index 7bb176fbdc9a8c02d65ef0dbb9c70e9e77a84145..00318f37847adf01ab56390aa8294970698b0549 100644 (file)
@@ -1,3 +1,152 @@
+2004-05-29  Alan Modra  <amodra@bigpond.net.au>
+
+       * ldlang.c (gc_section_callback): Move SEC_EXCLUDE twiddles..
+       (lang_gc_sections): .. to a LANG_FOR_EACH_INPUT_STATEMENT loop here.
+
+2004-05-28  Andrew Stubbs <andrew.stubbs@superh.com>
+
+       * testsuite/ld-sh/arch/arch.exp: New test script.
+       * testsuite/ld-sh/arch/arch_expected.txt: New file.
+       * testsuite/ld-sh/arch/sh.s: New file.
+       * testsuite/ld-sh/arch/sh2.s: New file.
+       * testsuite/ld-sh/arch/sh-dsp.s: New file.
+       * testsuite/ld-sh/arch/sh2e.s: New file.
+       * testsuite/ld-sh/arch/sh3-nommu.s: New file.
+       * testsuite/ld-sh/arch/sh3.s: New file.
+       * testsuite/ld-sh/arch/sh3-dsp.s: New file.
+       * testsuite/ld-sh/arch/sh3e.s: New file.
+       * testsuite/ld-sh/arch/sh4-nommu-nofpu.s: New file.
+       * testsuite/ld-sh/arch/sh4-nofpu.s: New file.
+       * testsuite/ld-sh/arch/sh4.s: New file.
+       * testsuite/ld-sh/arch/sh4a-nofpu.s: New file.
+       * testsuite/ld-sh/arch/sh4al-dsp.s: New file.
+       * testsuite/ld-sh/arch/sh4a.s: New file.
+
+2004-05-28  Alan Modra  <amodra@bigpond.net.au>
+
+       * ldlang.c: Formatting.  Wrap long lines, expand bfd_get_section_flags
+       throughout file.
+       * lexsup.c: Formatting.  Wrap long lines.
+       * ldwrite.c: Update copyright date.
+
+       * ldlang.c (lang_add_section): Don't twidlle SEC_EXCLUDE here.
+       (output_section_callback): Nor SEC_KEEP here.
+       (gc_section_callback): Twiddle SEC_EXCLUDE here.
+       (lang_gc_wild): Delete.  Fold into..
+       (lang_gc_sections_1): ..here.  Only call bfd_gc_sections when garbage
+       collecting.
+       (lang_process): Always call lang_gc_sections.
+       (lang_place_orphans): Handle SEC_EXCLUDE sections.
+       * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Remove
+       SEC_EXCLUDE code.
+
+2004-05-26  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Clear
+       SEC_EXCLUDE on non-SEC_DEBUGGING sections for relocatable link.
+       * ldlang.c (lang_add_section): Likewise.
+
+2004-05-26  Alan Modra  <amodra@bigpond.net.au>
+
+       * ldlang.c (lang_add_section): Set SEC_EXCLUDE for SEC_GROUP
+       sections when doing a final link.  Clear SEC_EXCLUDE when doing
+       a relocable link, except for SEC_DEBUGGING sections.
+       * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Use the
+       same condition here to drop SEC_EXCLUDE orphan sections.
+
+2004-05-25  Alan Modra  <amodra@bigpond.net.au>
+
+       * ldlang.c (lang_process): Call bfd_merge_sections later, and
+       only when not a relocatable link.
+       (print_input_section): Handle SEC_EXCLUDE sections.
+       (size_input_section): Don't update dot on SEC_EXCLUDE sections.
+       (lang_do_assignments_1): Likewise.
+       * ldwrite.c (build_link_order): Ignore SEC_EXCLUDE input sections.
+       * emultempl/armelf.em (arm_elf_set_bfd_for_interworking): Likewise.
+       * emultempl/hppaelf.em (build_section_lists): Likewise.
+       * emultempl/ppc64elf.em (build_toc_list): Likewise.
+       (build_section_lists): Likewise.
+
+2004-05-23  Andreas Schwab  <schwab@suse.de>
+
+       * ld.texinfo (Options): Fix typo in last change.
+
+2004-05-21  Andy Chittenden  <achittenden@bluearc.com>
+
+       * ld.h (ld_config_type): Add new field: hash_table_size.
+       * ldmain.c: Initialise the new field to zero.  If it is non-zero
+       after parsing the linker's command line call
+       bfd_hash_set_default_size.
+       * lexsup.c (option_values): Add OPTION_HASH_SIZE.
+       (ld_options): Add hash-size.
+       (parse_args): Parse --hash-size option.  Allow
+       --reduce-memory-overheads to set the default hash table size as
+       well.
+       * ld.texinfo: Document the new switch.  Also mention that
+       --reduce-memory-overheads can affect the hash table size.
+       * NEWS: Mention the new feature.
+
+2004-05-19  J"orn Rennecke <joern.rennecke@superh.com>
+
+       * NEWS: Mention new linker map file generation and the
+       --reduce-memory-overheads option.
+       * ld.texinfo: Document --reduce-memory-overheads option.
+       * ld.h (map_symbol_def): New struct.
+       (struct user_section_struct, section_userdata_type): Rename to:
+       (struct lean_user_section_struct, lean_section_userdata_type).
+       (struct fat_user_section_struct, fat_section_userdata_type): New.
+       (SECTION_USERDATA_SIZE): Define.
+       (args_type): New member reduce_memory_overheads.
+       * ldlang.c (map_obstack): New static variable.
+       (init_map_userdata, print_all_symbols, sort_def_symbol): New functions.
+       (lang_map): Unless command_line.reduce_memory_overheads is set,
+       initialize lists of defined symbols for each section.
+       (print_input_section): Unless command_line.reduce_memory_overheads
+       is set, use print_all_symbols.
+       (init_os): Use lean_section_userdata_type / SECTION_USERDATA_SIZE.
+       * ldmain.c (main): Initialize command_line.reduce_memory_overheads.
+       * lexsup.c (enum option_values): Add OPTION_REDUCE_MEMORY_OVERHEADS.
+       (ld_options): Add entry for --reduce-memory-overheads.
+       (parse_args): Handle OPTION_REDUCE_MEMORY_OVERHEADS.
+
+2004-05-19  Jakub Jelinek  <jakub@redhat.com>
+
+       * ldgram.y (sect_constraint): New.
+       (ONLY_IF_RO, ONLY_IF_RW): New tokens.
+       (section): Add sect_constraint.  Pass additional argument
+       to lang_enter_output_section_statement.
+       * mri.c (mri_draw_tree): Pass additional argument to
+       lang_enter_output_section_statement.
+       * emultempl/pe.em (place_orphan): Likewise.
+       (output_prev_sec_find): Disregard output section statements with
+       constraint == -1.
+       * emultempl/mmo.em (output_prev_sec_find): Likewise.
+       (mmo_place_orphan): Pass additional argument to
+       lang_enter_output_section_statement.
+       * emultempl/elf32.em (output_prev_sec_find): Disregard output section
+       statements with constraint == -1.
+       (place_orphan): Pass additional argument to
+       lang_enter_output_section_statement.
+       * ldlang.c (lang_enter_overlay_section): Likewise.
+       (lang_output_section_find_1): New.
+       (lang_output_section_find): Use it.
+       (lang_output_section_statement_lookup_1): New.
+       (lang_output_section_statement_lookup): Use it.
+       (check_section_callback, check_input_sections): New.
+       (map_input_to_output_sections): Check if all input sections
+       are readonly if ONLY_IF_RO or ONLY_IF_RW was seen.
+       (strip_excluded_output_sections): Disregard output section statements
+       with constraint == -1.
+       (lang_record_phdrs): Likewise.
+       (lang_enter_output_section_statement): Add constraint argument.
+       Use lang_output_section_statement_lookup_1.
+       * ldlang.h (lang_output_section_statement_type): Add constraint
+       and all_input_readonly fields.
+       (lang_enter_output_section_statement): Adjust prototype.
+       * ldlex.l (ONLY_IF_RO, ONLY_IF_RW): New tokens.
+       * scripttempl/elf.sc (.eh_frame, .gcc_except_table): Move into text
+       segment if all input sections are readonly.
+
 2004-05-19  Adam Nemet  <anemet@lnxw.com> 
 
        * scripttempl/i386lynx.sc: Remove file.
This page took 0.024513 seconds and 4 git commands to generate.