1 2009-03-03 Dave Korn <dave.korn.cygwin@gmail.com>
3 * emultempl/pe.em (debug_section_p): New bfd_map_over_sections hook.
4 (gld_${EMULATION_NAME}_after_open): Use it to iterate all sections
5 of all input BFDs, looking for debug info. Enable long section names
7 * emultempl/pe.em (debug_section_p): Likewise.
8 (gld_${EMULATION_NAME}_after_open): Likewise.
9 * NEWS: Retrospectively adjust news announcement.
10 * ld.texinfo: Update documentation to mention new behaviour.
12 2009-03-03 Alan Modra <amodra@bigpond.net.au>
14 * Makefile.am: Run "make dep-am".
15 * Makefile.in: Regenerate.
17 2009-03-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
19 * ldgram.y: Add support for REGION_ALIAS operator.
23 * NEWS: Mention the new feature.
24 * ld.texinfo: Document the new feature.
26 2009-03-02 Qinwei <qinwei@sunnorth.com.cn>
28 * Makefile.am: Replace score elf emulation with score3 and score7
30 * Makefile.in: Regenerate,
31 * NEWS: Mention support for Score7 architecture.
32 * configure.tgt: Add score7 emulation to score-elf target.
33 * emulparams/scoreelf.sh: Add score7 support.
34 * emultempl/scoreelf.em: Likewise.
36 2009-03-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
38 * configure.tgt: Only use elf64hppa target emulation for hpux.
39 * emulparams/elf64hppa.sh: Don't include hppa64linux.sh.
40 (SCRIPT_NAME): Use new script elf64hppa.
41 (SCRIPT_NAME, ELFSIZE, NO_REL_RELOCS, ARCH, MACHINE, ENTRY,
42 TEMPLATE_NAME, GENERATE_SHLIB_SCRIPT, OTHER_READONLY_SECTIONS,
43 OTHER_READWRITE_SECTIONS, OTHER_BSS_SECTIONS, OTHER_GOT_RELOC_SECTIONS,
44 DATA_START_SYMBOLS, OTHER_SYMBOLS, DATA_PLT, PLT_BEFORE_GOT,
45 TEXT_DYNAMIC): Define.
46 * emulparams/hppa64linux.sh: Adjust comments.
47 * scripttempl/elf64hppa.sc: New file.
49 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
51 * configure: Regenerate.
53 2009-02-27 Dave Korn <dave.korn.cygwin@gmail.com>
55 * emultempl/pe.em (gld_${EMULATION_NAME}_before_parse): Set
56 default state of auto-import flag based on $target.
58 2009-02-24 Joseph Myers <joseph@codesourcery.com>
60 * ld.texinfo (ARM): Document changed meaning of --stub-group-size.
61 * emultempl/armelf.em (hook_in_stub): Insert after the input section.
62 (elf32_arm_add_stub_section): Update comment.
63 (PARSE_AND_LIST_OPTIONS): Update help for --stub-group-size.
65 2009-02-24 Sandra Loosemore <sandra@codesourcery.com>
67 * ld.texinfo (Options): Correct typos in example. Recommend
68 using joined forms of syntax for passing options with arguments
70 (-a): Use consistent syntax for documenting option arguments.
71 Clean up indexing and markup.
72 (-A/--architecture): Likewise.
73 (-f/--auxiliary): Likewise.
74 (-F/--filter): Likewise.
76 (-G/--gpsize): Likewise.
77 (-h/-soname):Likewise.
79 (-l/--library): Likewise.
80 (-L/--library-path): Likewise.
83 (-I/--dynamic-linker): Likewise.
85 (--oformat): Likewise.
86 (--retain-symbols-file): Likewise.
88 (-rpath-link): Likewise.
89 (--sort-common): Likewise.
90 (--sort-section): Likewise.
91 (--split-by-file): Likewise.
92 (--split-by-reloc): Likewise.
93 (--sysroot): Likewise.
94 (--section-start): Likewise.
95 (-Tbss, -Tdata, -Ttext): Likewise.
96 (-Ttext-segment): Likewise.
97 (--version-script): Likewise.
100 2009-02-18 Dave Korn <dave.korn.cygwin@gmail.com>
102 * ld.texinfo: Update to mention long section name options.
103 * NEWS: Mention new behaviour and command-line options.
104 * pe-dll.c (pe_use_coff_long_section_names): New global variable.
105 (pe_output_file_set_long_section_names): New function.
106 (pe_dll_build_sections): Call it on output BFDs.
107 (pe_exe_build_sections): Likewise.
108 (pe_dll_fill_sections): Likewise.
109 (pe_exe_fill_sections): Likewise.
110 * pe-dll.h (pe_use_coff_long_section_names): Declare extern.
111 (pe_output_file_set_long_section_names): Add prototype.
112 * pep-dll.c (pe_use_coff_long_section_names): Define pep_ alias.
113 (pe_output_file_set_long_section_names): Likewise.
114 * pep-dll.h (pep_use_coff_long_section_names): Declare extern.
115 (pep_output_file_set_long_section_names): Add prototype.
116 * pe.em (OPTION_ENABLE_LONG_SECTION_NAMES): New getopt value macro.
117 (OPTION_DISABLE_LONG_SECTION_NAMES): Likewise.
118 (gld${EMULATION_NAME}_add_options): Add new options to xtra_long[].
119 (gld_${EMULATION_NAME}_list_options): Describe them.
120 (gld${EMULATION_NAME}_handle_option): Set or clear global
121 pe_use_coff_long_section_names flag when options recognised.
122 (gld_${EMULATION_NAME}_after_open): En/disable long section names
123 for main output bfd by calling pe_output_file_set_long_section_names.
124 * pep.em (enum options): Extend enum with new getopt option values.
125 (gld${EMULATION_NAME}_add_options): Add new options to xtra_long[].
126 (gld_${EMULATION_NAME}_list_options): Describe them.
127 (gld${EMULATION_NAME}_handle_option): Set or clear global
128 pe_use_coff_long_section_names flag when options recognised.
129 (gld_${EMULATION_NAME}_after_open): En/disable long section names
130 for main output bfd by calling pep_output_file_set_long_section_names.
132 2009-02-16 Dave Korn <dave.korn.cygwin@gmail.com>
134 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Don't emit
135 inadvertent .reloc sections caused by refactoring accident.
137 2009-02-16 Alan Modra <amodra@bigpond.net.au>
139 * ldlang.c (process_insert_statements): ASSERT that output section
140 statements are in order.
142 2009-02-16 Alan Modra <amodra@bigpond.net.au>
144 * ldlang.c (push_stat_ptr, pop_stat_ptr): New functions.
145 (stat_save, stat_save_ptr): New variables.
146 (lang_insert_orphan): Use push_stat_ptr and pop_stat_ptr.
147 (load_symbols): Likewise. Delete dead "bad_load" code.
148 (open_input_bfds): Warn on script containing output sections.
149 (lang_enter_output_section_statement): Use push_stat_ptr.
150 (lang_enter_group): Likewise.
151 (lang_leave_output_section_statement): Use pop_stat_ptr.
152 (lang_leave_group): Likewise.
153 * ldlang.h (push_stat_ptr, pop_stat_ptr): Declare.
154 * ldctor.c (ldctor_build_sets): Use push_stat_ptr and pop_stat_ptr.
155 * emultempl/beos.em (gld_${EMULATION_NAME}_set_symbols): Likewise.
156 * emultempl/pe.em (gld_${EMULATION_NAME}_set_symbols): Likewise.
157 * emultempl/pep.em (gld_${EMULATION_NAME}_set_symbols): Likewise.
158 * emultempl/spuelf.em (spu_place_special_section): Likewise.
159 * emultempl/xtensaelf.em (ld_xtensa_insert_page_offsets): Likewise.
161 2009-02-09 Nathan Sidwell <nathan@codesourcery.com>
163 Missing piece of 2009-01-26 commit
164 * ldlang.c (lang_process): Don't consider relocatable flag when
165 checking for overlap.
167 2009-02-05 Joseph Myers <joseph@codesourcery.com>
169 * emulparams/m68kelf.sh: Add newline at end of file.
171 2009-02-04 Nick Clifton <nickc@redhat.com>
174 * ld.texinfo (--allow-shlib-undefined): Correct description of
175 default settings and tidy up the rest of the entry.
177 2009-02-04 Alan Modra <amodra@bigpond.net.au>
179 * emultempl/spuelf.em (spu_after_open): Don't combine .text.ia.*
180 during relocatable link.
182 2009-02-03 Nick Clifton <nickc@redhat.com>
185 * ld.texinfo (Constants): Document the base-encoding suffixes
186 supported in linker scripts.
188 2009-02-03 Alan Modra <amodra@bigpond.net.au>
190 * NEWS: Mention --as-needed change.
192 2009-02-03 Carlos O'Donell <carlos@codesourcery.com>
194 * configure.in: AC_SUBST pdfdir.
195 * Makefile.am: Add install-pdf, install-pdf-am,
196 and install-pdf-recursive targets. Define pdf__strip_dir.
197 * po/Make-in: Add install-pdf target.
198 * configure: Regenerate.
199 * Makefile.in: Regenerate.
201 2009-01-31 Alan Modra <amodra@bigpond.net.au>
203 * ld.texinfo (--as-needed): Update.
205 2009-01-29 Andrew Jenner <andrew@codesourcery.com>
207 * emultempl/armelf.em: Correct formatting of help text for
208 --no-enum-size-warning option.
210 2009-01-26 Nathan Sidwell <nathan@codesourcery.com>
212 * lexsup.c (parse_args): Set check_section_addresses to 1 or 0.
213 * ld.h (args_type): Make check_section_addresses a char.
214 * ldmain.c (main): Default check_section_addresses to -1. Check it
215 for relocatable links.
216 * ld.texinfo (--check-sections): Update documentation.
218 2009-01-26 Kai Tietz <kai.tietz@onevision.com>
220 * pe-dll.c (tmp_seq2): New static variable.
221 (make_singleton_name_imp): New.
222 (make_import_fixup_entry): Use for v2 the _imp_<name> symbol and
223 avoid duplicate import table generation for same symbol.
224 (pe_create_runtime_relocator_reference): Make reference for
227 2009-01-21 Alan Modra <amodra@bigpond.net.au>
229 * emultempl/spuelf.em (params): Init new field.
230 (OPTION_SPU_NON_IA_TEXT): Define.
231 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add --non-ia-text.
232 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_SPU_NON_IA_TEXT.
234 2009-01-16 H.J. Lu <hongjiu.lu@intel.com>
236 * lexsup.c (option_values): Add OPTION_TTEXT_SEGMENT.
237 (ld_options): Add -Ttext-segment.
238 (parse_args): Handle OPTION_TTEXT_SEGMENT.
240 * ld.texinfo: Document -Ttext-segment.
242 * NEWS: Mention -Ttext-segment.
244 * scripttempl/elf.sc (TEXT_START_ADDR): Use SEGMENT_START.
245 (SHLIB_TEXT_START_ADDR): Likewise.
247 2009-01-13 Alan Modra <amodra@bigpond.net.au>
249 * emultempl/spu_icache.o_c: Regenerate.
251 2009-01-12 Alan Modra <amodra@bigpond.net.au>
253 * emultempl/spuelf.em (params): Init new fields.
254 (num_lines_set, line_size_set, icache_mgr, icache_mgr_stream): New vars.
255 (spu_place_special_section): Adjust placement for soft-icache. Pad
256 soft-icache section to a fixed size. Clear addr_tree.
257 (spu_elf_load_ovl_mgr): Support soft-icache. Map overlay manager
258 sections a little more intelligently.
259 (gld${EMULATION_NAME}_finish): Don't call spu_elf_build_stubs.
260 (OPTION_SPU_NUM_LINES): Rename from OPTION_SPU_NUM_REGIONS.
261 (OPTION_SPU_SOFT_ICACHE, OPTION_SPU_LINE_SIZE): Define.
262 (OPTION_SPU_LRLIVE): Define.
263 (PARSE_AND_LIST_LONGOPTS): Add new soft-icache options.
264 (PARSE_AND_LIST_OPTIONS): Likewise.
265 (PARSE_AND_LIST_ARGS_CASES): Handle them.
266 * emultempl/spu_icache.S: Dummy file.
267 * emultempl/spu_icache.o_c: Regenerate.
268 * Makefile.am (eelf32_spu.c): Depend on spu_icache.o_c.
269 (spu_icache.o_c): Add rule to build.
270 (CLEANFILES): Zap temp files.
271 (EXTRA_DIST): Add spu_icache.o_c.
272 * Makefile.in: Regenerate.
274 2009-01-08 Kai Tietz <kai.tietz@onevision.com>
276 * pe.em (OPTION_USE_NUL_PREFIXED_IMPORT_TABLES): New.
277 (gld..._add_options): Add new option
278 --use-nul-prefixed-import-tables.
279 (gld..._handle_option): Likewise.
280 * pep.em: Same as for pe.em.
281 * ld.texinfo: Add new option documentation for
282 --use-nul-prefixed-import-tables.
283 * pe-dll.c (pe_use_nul_prefixed_import_tables): New.
284 (make_head): Make prefix leading zero prefix element for
285 idata$4 and idata$5 dependent to new flag.
286 (make_import_fixup_entry): Remove idata4/5 prefix.
287 * pe-dll.h (pe_use_nul_prefixed_import_tables): New.
288 * pep-dll.c (pe_use_nul_prefixed_import_tables): New.
289 * pep-dll.h (pep_use_nul_prefixed_import_tables): New.
290 * NEWS: Add new option.
292 2009-01-05 Kai Tietz <kai.tietz@onevision.com>
294 * emultempl/pe.em: Prefix dollar characters to be outputed in
296 * emultempl/pep.em: Likewise.
298 2009-01-03 Dave Korn <dave.korn.cygwin@gmail.com>
300 * NEWS: Mention new feature --exclude-modules-for-implib.
301 * ld.texinfo: Document new --exclude-modules-for-implib option.
302 * pe-dll.c (exclude_list_struct): Change type member from int to
303 new enumeration exclude_type.
304 (pe_dll_add_excludes): Accept exclude_type instead of int param.
305 (auto_export): Replace magic constants by exclude_type values and
306 handle new choice EXCLUDEFORIMPLIB.
307 (pe_dll_generate_implib): Accept a pointer to the link_info and
308 iterate all input BFDs looking for EXCLUDEFORIMPLIB modules; re-open
309 fresh BFDs for any found and link into import lib archive chain.
310 * pe-dll.h (exclude_type): Add new enumerated type to replace magic
311 constants previously used for exclude_list_struct type member.
312 (pe_dll_add_excludes, pe_dll_generate_implib): Update prototypes.
313 * pep-dll.h (exclude_type, pe_dll_add_excludes,
314 pe_dll_generate_implib): Likewise to all the above.
315 * emultempl/pe.em (OPTION_EXCLUDE_MODULES_FOR_IMPLIB): Define new
316 getopts long option code for new --exclude-modules-for-implib option.
317 (gld${EMULATION_NAME}_add_options): Add new entry to xtra_long[].
318 (gld_${EMULATION_NAME}_list_options): List usage for it.
319 (gld${EMULATION_NAME}_handle_option): Use exclude_type enumerated
320 values when calling pe_dll_add_excludes, and handle EXCLUDEFORIMPLIB.
321 (gld_${EMULATION_NAME}_finish): Pass pointer to link_info when
322 calling pe_dll_generate_implib.
323 * emultempl/pep.em (options): Define new enumerated value for getopts
324 long option code for new --exclude-modules-for-implib option.
325 (gld${EMULATION_NAME}_add_options, gld_${EMULATION_NAME}_list_options,
326 gld${EMULATION_NAME}_handle_option, gld_${EMULATION_NAME}_finish):
327 Again, likewise to all the above.
329 2009-01-03 Dave Korn <dave.korn.cygwin@gmail.com>
331 * pe-dll.c (autofilter_liblist): Add entry for shared libgcc.
332 (libnamencmp): New function.
333 (auto_export): Use it in place of strncmp when filtering libraries.
335 For older changes see ChangeLog-2008
341 version-control: never