1 2009-18-02 Dave Korn <dave.korn.cygwin@gmail.com>
3 * ld.texinfo: Update to mention long section name options.
4 * NEWS: Mention new behaviour and command-line options.
5 * pe-dll.c (pe_use_coff_long_section_names): New global variable.
6 (pe_output_file_set_long_section_names): New function.
7 (pe_dll_build_sections): Call it on output BFDs.
8 (pe_exe_build_sections): Likewise.
9 (pe_dll_fill_sections): Likewise.
10 (pe_exe_fill_sections): Likewise.
11 * pe-dll.h (pe_use_coff_long_section_names): Declare extern.
12 (pe_output_file_set_long_section_names): Add prototype.
13 * pep-dll.c (pe_use_coff_long_section_names): Define pep_ alias.
14 (pe_output_file_set_long_section_names): Likewise.
15 * pep-dll.h (pep_use_coff_long_section_names): Declare extern.
16 (pep_output_file_set_long_section_names): Add prototype.
17 * pe.em (OPTION_ENABLE_LONG_SECTION_NAMES): New getopt value macro.
18 (OPTION_DISABLE_LONG_SECTION_NAMES): Likewise.
19 (gld${EMULATION_NAME}_add_options): Add new options to xtra_long[].
20 (gld_${EMULATION_NAME}_list_options): Describe them.
21 (gld${EMULATION_NAME}_handle_option): Set or clear global
22 pe_use_coff_long_section_names flag when options recognised.
23 (gld_${EMULATION_NAME}_after_open): En/disable long section names
24 for main output bfd by calling pe_output_file_set_long_section_names.
25 * pep.em (enum options): Extend enum with new getopt option values.
26 (gld${EMULATION_NAME}_add_options): Add new options to xtra_long[].
27 (gld_${EMULATION_NAME}_list_options): Describe them.
28 (gld${EMULATION_NAME}_handle_option): Set or clear global
29 pe_use_coff_long_section_names flag when options recognised.
30 (gld_${EMULATION_NAME}_after_open): En/disable long section names
31 for main output bfd by calling pep_output_file_set_long_section_names.
33 2009-02-16 Dave Korn <dave.korn.cygwin@gmail.com>
35 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Don't emit
36 inadvertent .reloc sections caused by refactoring accident.
38 2009-02-16 Alan Modra <amodra@bigpond.net.au>
40 * ldlang.c (process_insert_statements): ASSERT that output section
41 statements are in order.
43 2009-02-16 Alan Modra <amodra@bigpond.net.au>
45 * ldlang.c (push_stat_ptr, pop_stat_ptr): New functions.
46 (stat_save, stat_save_ptr): New variables.
47 (lang_insert_orphan): Use push_stat_ptr and pop_stat_ptr.
48 (load_symbols): Likewise. Delete dead "bad_load" code.
49 (open_input_bfds): Warn on script containing output sections.
50 (lang_enter_output_section_statement): Use push_stat_ptr.
51 (lang_enter_group): Likewise.
52 (lang_leave_output_section_statement): Use pop_stat_ptr.
53 (lang_leave_group): Likewise.
54 * ldlang.h (push_stat_ptr, pop_stat_ptr): Declare.
55 * ldctor.c (ldctor_build_sets): Use push_stat_ptr and pop_stat_ptr.
56 * emultempl/beos.em (gld_${EMULATION_NAME}_set_symbols): Likewise.
57 * emultempl/pe.em (gld_${EMULATION_NAME}_set_symbols): Likewise.
58 * emultempl/pep.em (gld_${EMULATION_NAME}_set_symbols): Likewise.
59 * emultempl/spuelf.em (spu_place_special_section): Likewise.
60 * emultempl/xtensaelf.em (ld_xtensa_insert_page_offsets): Likewise.
62 2009-02-09 Nathan Sidwell <nathan@codesourcery.com>
64 Missing piece of 2009-01-26 commit
65 * ldlang.c (lang_process): Don't consider relocatable flag when
68 2009-02-05 Joseph Myers <joseph@codesourcery.com>
70 * emulparams/m68kelf.sh: Add newline at end of file.
72 2009-02-04 Nick Clifton <nickc@redhat.com>
75 * ld.texinfo (--allow-shlib-undefined): Correct description of
76 default settings and tidy up the rest of the entry.
78 2009-02-04 Alan Modra <amodra@bigpond.net.au>
80 * emultempl/spuelf.em (spu_after_open): Don't combine .text.ia.*
81 during relocatable link.
83 2009-02-03 Nick Clifton <nickc@redhat.com>
86 * ld.texinfo (Constants): Document the base-encoding suffixes
87 supported in linker scripts.
89 2009-02-03 Alan Modra <amodra@bigpond.net.au>
91 * NEWS: Mention --as-needed change.
93 2009-02-03 Carlos O'Donell <carlos@codesourcery.com>
95 * configure.in: AC_SUBST pdfdir.
96 * Makefile.am: Add install-pdf, install-pdf-am,
97 and install-pdf-recursive targets. Define pdf__strip_dir.
98 * po/Make-in: Add install-pdf target.
99 * configure: Regenerate.
100 * Makefile.in: Regenerate.
102 2009-01-31 Alan Modra <amodra@bigpond.net.au>
104 * ld.texinfo (--as-needed): Update.
106 2009-01-29 Andrew Jenner <andrew@codesourcery.com>
108 * emultempl/armelf.em: Correct formatting of help text for
109 --no-enum-size-warning option.
111 2009-01-26 Nathan Sidwell <nathan@codesourcery.com>
113 * lexsup.c (parse_args): Set check_section_addresses to 1 or 0.
114 * ld.h (args_type): Make check_section_addresses a char.
115 * ldmain.c (main): Default check_section_addresses to -1. Check it
116 for relocatable links.
117 * ld.texinfo (--check-sections): Update documentation.
119 2009-01-26 Kai Tietz <kai.tietz@onevision.com>
121 * pe-dll.c (tmp_seq2): New static variable.
122 (make_singleton_name_imp): New.
123 (make_import_fixup_entry): Use for v2 the _imp_<name> symbol and
124 avoid duplicate import table generation for same symbol.
125 (pe_create_runtime_relocator_reference): Make reference for
128 2009-01-21 Alan Modra <amodra@bigpond.net.au>
130 * emultempl/spuelf.em (params): Init new field.
131 (OPTION_SPU_NON_IA_TEXT): Define.
132 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add --non-ia-text.
133 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_SPU_NON_IA_TEXT.
135 2009-01-16 H.J. Lu <hongjiu.lu@intel.com>
137 * lexsup.c (option_values): Add OPTION_TTEXT_SEGMENT.
138 (ld_options): Add -Ttext-segment.
139 (parse_args): Handle OPTION_TTEXT_SEGMENT.
141 * ld.texinfo: Document -Ttext-segment.
143 * NEWS: Mention -Ttext-segment.
145 * scripttempl/elf.sc (TEXT_START_ADDR): Use SEGMENT_START.
146 (SHLIB_TEXT_START_ADDR): Likewise.
148 2009-01-13 Alan Modra <amodra@bigpond.net.au>
150 * emultempl/spu_icache.o_c: Regenerate.
152 2009-01-12 Alan Modra <amodra@bigpond.net.au>
154 * emultempl/spuelf.em (params): Init new fields.
155 (num_lines_set, line_size_set, icache_mgr, icache_mgr_stream): New vars.
156 (spu_place_special_section): Adjust placement for soft-icache. Pad
157 soft-icache section to a fixed size. Clear addr_tree.
158 (spu_elf_load_ovl_mgr): Support soft-icache. Map overlay manager
159 sections a little more intelligently.
160 (gld${EMULATION_NAME}_finish): Don't call spu_elf_build_stubs.
161 (OPTION_SPU_NUM_LINES): Rename from OPTION_SPU_NUM_REGIONS.
162 (OPTION_SPU_SOFT_ICACHE, OPTION_SPU_LINE_SIZE): Define.
163 (OPTION_SPU_LRLIVE): Define.
164 (PARSE_AND_LIST_LONGOPTS): Add new soft-icache options.
165 (PARSE_AND_LIST_OPTIONS): Likewise.
166 (PARSE_AND_LIST_ARGS_CASES): Handle them.
167 * emultempl/spu_icache.S: Dummy file.
168 * emultempl/spu_icache.o_c: Regenerate.
169 * Makefile.am (eelf32_spu.c): Depend on spu_icache.o_c.
170 (spu_icache.o_c): Add rule to build.
171 (CLEANFILES): Zap temp files.
172 (EXTRA_DIST): Add spu_icache.o_c.
173 * Makefile.in: Regenerate.
175 2009-01-08 Kai Tietz <kai.tietz@onevision.com>
177 * pe.em (OPTION_USE_NUL_PREFIXED_IMPORT_TABLES): New.
178 (gld..._add_options): Add new option
179 --use-nul-prefixed-import-tables.
180 (gld..._handle_option): Likewise.
181 * pep.em: Same as for pe.em.
182 * ld.texinfo: Add new option documentation for
183 --use-nul-prefixed-import-tables.
184 * pe-dll.c (pe_use_nul_prefixed_import_tables): New.
185 (make_head): Make prefix leading zero prefix element for
186 idata$4 and idata$5 dependent to new flag.
187 (make_import_fixup_entry): Remove idata4/5 prefix.
188 * pe-dll.h (pe_use_nul_prefixed_import_tables): New.
189 * pep-dll.c (pe_use_nul_prefixed_import_tables): New.
190 * pep-dll.h (pep_use_nul_prefixed_import_tables): New.
191 * NEWS: Add new option.
193 2009-01-05 Kai Tietz <kai.tietz@onevision.com>
195 * emultempl/pe.em: Prefix dollar characters to be outputed in
197 * emultempl/pep.em: Likewise.
199 2009-01-03 Dave Korn <dave.korn.cygwin@gmail.com>
201 * NEWS: Mention new feature --exclude-modules-for-implib.
202 * ld.texinfo: Document new --exclude-modules-for-implib option.
203 * pe-dll.c (exclude_list_struct): Change type member from int to
204 new enumeration exclude_type.
205 (pe_dll_add_excludes): Accept exclude_type instead of int param.
206 (auto_export): Replace magic constants by exclude_type values and
207 handle new choice EXCLUDEFORIMPLIB.
208 (pe_dll_generate_implib): Accept a pointer to the link_info and
209 iterate all input BFDs looking for EXCLUDEFORIMPLIB modules; re-open
210 fresh BFDs for any found and link into import lib archive chain.
211 * pe-dll.h (exclude_type): Add new enumerated type to replace magic
212 constants previously used for exclude_list_struct type member.
213 (pe_dll_add_excludes, pe_dll_generate_implib): Update prototypes.
214 * pep-dll.h (exclude_type, pe_dll_add_excludes,
215 pe_dll_generate_implib): Likewise to all the above.
216 * emultempl/pe.em (OPTION_EXCLUDE_MODULES_FOR_IMPLIB): Define new
217 getopts long option code for new --exclude-modules-for-implib option.
218 (gld${EMULATION_NAME}_add_options): Add new entry to xtra_long[].
219 (gld_${EMULATION_NAME}_list_options): List usage for it.
220 (gld${EMULATION_NAME}_handle_option): Use exclude_type enumerated
221 values when calling pe_dll_add_excludes, and handle EXCLUDEFORIMPLIB.
222 (gld_${EMULATION_NAME}_finish): Pass pointer to link_info when
223 calling pe_dll_generate_implib.
224 * emultempl/pep.em (options): Define new enumerated value for getopts
225 long option code for new --exclude-modules-for-implib option.
226 (gld${EMULATION_NAME}_add_options, gld_${EMULATION_NAME}_list_options,
227 gld${EMULATION_NAME}_handle_option, gld_${EMULATION_NAME}_finish):
228 Again, likewise to all the above.
230 2009-01-03 Dave Korn <dave.korn.cygwin@gmail.com>
232 * pe-dll.c (autofilter_liblist): Add entry for shared libgcc.
233 (libnamencmp): New function.
234 (auto_export): Use it in place of strncmp when filtering libraries.
236 For older changes see ChangeLog-2008
242 version-control: never