1 2009-04-09 Thilo Fischer <thilo.fischer@uni-muenster.de>
3 * emultempl/spuelf.em (embedded_spu_file): Use pex_one in place
6 2009-04-08 H.J. Lu <hongjiu.lu@intel.com>
8 * lexsup.c (option_values): Add OPTION_WARN_ALTERNATE_EM.
9 (ld_options): Likewise.
10 (parse_args): Likewise.
12 * ld.texinfo: Document --warn-alternate-em.
14 * NEWS: Mention --warn-alternate-em.
16 2009-04-07 DJ Delorie <dj@redhat.com>
18 * emulparams/elf32mep.sh: Change default endian to little.
20 2009-04-07 Nick Clifton <nickc@redhat.com>
22 * ld.texinfo (Output Section Address): Note that specifying an
23 address for an output section will only change the location
24 counter if the output section is used.
26 2009-04-06 Kazu Hirata <kazu@codesourcery.com>
28 * ldfile.c (ldfile_find_command_file): Initialize result.
30 2009-04-06 Kazu Hirata <kazu@codesourcery.com>
32 * ld.texinfo (-L): Mention that -L options do not affect how ld
33 searches for a linker script unless -T option is specified.
34 * ldfile.c (ldfile_find_command_file): Append the path obtained
35 from the program name to the search path instead of
36 prepending. Add a new parameter "default_only". Restrict the
37 search to the default script location if the new parameter is
39 (ldfile_open_command_file_1): New.
40 (ldfile_open_command_file): Call ldfile_open_command_file_1.
41 (ldfile_open_default_command_file): New.
43 2009-04-03 Nathan Sidwell <nathan@codesourcery.com>
45 * ldlang.c (lang_leave_output_section_statement): Set lma_region
46 if it is not overridden and section is for the same vma region as
49 2009-04-02 Dave Korn <dave.korn.cygwin@gmail.com>
52 * ld.texinfo (--export-dynamic): Mention --export-all-symbols.
53 * emultempl/pe.em (gld_${EMULATION_NAME}_after_parse): Issue
54 warning if --export-dynamic was passed on command-line.
55 * emultempl/pep.em (gld_${EMULATION_NAME}_after_parse): Likewise.
57 2009-04-01 Richard Sandiford <r.sandiford@uk.ibm.com>
59 * emultempl/aix.em (gld${EMULATION_NAME}_open_dynamic_archive): New
61 (ld_${EMULATION_NAME}_emulation): Use it.
63 2009-03-20 H.J. Lu <hongjiu.lu@intel.com>
66 * ldlang.c (lang_end): Warn missing entry symbol for -pie.
68 2009-03-19 Alan Modra <amodra@bigpond.net.au>
70 * emultempl/spuelf.em (spu_before_allocation): Report errors from
71 spu_elf_find_overlays.
73 2009-03-18 H.J. Lu <hongjiu.lu@intel.com>
76 * lexsup.c (parse_args): Call ldlang_add_undef for -e.
78 2009-03-18 Alan Modra <amodra@bigpond.net.au>
80 * ld.h: Remove alloca handling.
82 2009-03-17 Alan Modra <amodra@bigpond.net.au>
84 * emultempl/spu_icache.S: Add new entry to dummy handler.
85 * emultempl/spu_icache.o_c: Regenerate.
86 * emultempl/spuelf.em (params): Init new field.
87 (no_overlays): New static var.
88 (spu_before_allocation): Use it.
89 (OPTION_SPU_COMPACT_STUBS): Define.
90 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add compact-stubs.
91 (PARSE_AND_LIST_ARGS_CASES): Handle compact-stubs. Adjust no-overlays
94 2009-03-17 Alan Modra <amodra@bigpond.net.au>
96 * configure.host (HOSTING_LIBS): Two dollars on shell variable
97 expansion to suit make.
99 2009-03-17 Alan Modra <amodra@bigpond.net.au>
101 * configure.in: Invoke ACX_PROG_CMP_IGNORE_INITIAL.
102 * Makefile.am (check-DEJAGNU): Set DO_COMPARE.
103 * aclocal.m4: Regenerate.
104 * configure: Regenerate.
105 * Makefile.in: Regenerate.
107 2009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com>
109 * emultempl/aix.em (auto_export_flags): New variable.
110 (explicit_auto_export_flags): Likewise.
111 (OPTION_EXPALL, OPTION_EXPFULL): New enum values.
112 (OPTION_NOEXPALL, OPTION_NOEXPFULL): Likewise.
113 (gld${EMULATION_NAME}_add_options): Add -bexpall, -bexpfull,
114 -bnoexpall and -bnoexpfull.
115 (gld${EMULATION_NAME}_handle_option): Handle them.
116 (gld${EMULATION_NAME}_before_allocation): Update the call to
117 bfd_size_dynamic_sections.
119 2009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com>
121 * emultempl/aix.em (gld${EMULATION_NAME}_handle_option): Make
122 -berok and -bernotok control link_info.unresolved_syms_in_objects
123 and link_info.unresolved_syms_in_shared_libs instead of
124 force_make_executable.
126 2009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com>
128 * emultempl/aix.em (gld${EMULATION_NAME}_before_parse): Set
129 config.dynamic_link to TRUE.
131 2009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com>
133 * emultempl/aix.em (gld${EMULATION_NAME}_before_allocation): Mark
134 .text, .data and .bss output sections as SEC_KEEP.
136 2009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com>
138 * configure.tgt: Extend AIX 5 behavior to AIX 6 and above.
140 2009-03-14 Dave Korn <dave.korn.cygwin@gmail.com>
141 Danny Smith <dannysmith@users.sourceforge.net>
143 * emultmpl/pe.em (pe_dll_characteristics): New variable.
144 (OPTION_DYNAMIC_BASE, OPTION_FORCE_INTEGRITY, OPTION_NX_COMPAT,
145 OPTION_NO_ISOLATION. OPTION_NO_SEH, OPTION_NO_BIND,
146 OPTION_WDM_DRIVER, OPTION_TERMINAL_SERVER_AWARE):
147 New macros for options to set DllCharacteristics flag bits.
148 (gld${EMULATION_NAME}_add_options): Add dynamicbase, forceinteg,
149 nxcompat, no-isolation, no-seh, no-bind, wdmdriver, tsaware options.
150 (init): Add DllCharacteristics field.
151 (gld_${EMULATION_NAME}_list_options): List new options.
152 (gld${EMULATION_NAME}_handle_option): Handle new options.
153 * emultmpl/pep.em (pe_dll_characteristics): New variable.
154 (OPTION_DYNAMIC_BASE, OPTION_FORCE_INTEGRITY, OPTION_NX_COMPAT,
155 OPTION_NO_ISOLATION. OPTION_NO_SEH, OPTION_NO_BIND,
156 OPTION_WDM_DRIVER, OPTION_TERMINAL_SERVER_AWARE):
157 New macros for options to set DllCharacteristics flags.
158 (gld${EMULATION_NAME}_add_options): Add dynamicbase, forceinteg,
159 nxcompat,no-isolation, no-seh, no-bind, wdmdriver, tsaware options.
160 (init): Add DllCharacteristics field.
161 (gld_${EMULATION_NAME}_list_options): List new options.
162 (gld${EMULATION_NAME}_handle_option): Handle new options.
163 * ldtexinfo : Document dynamicbase, forceinteg, nxcompat,
164 no-isolation, no-seh, no-bind, wdmdriver, tsaware options.
166 2009-03-06 Nick Clifton <nickc@redhat.com>
168 * po/es.po: Updated Spanish translation.
170 2009-03-03 Dave Korn <dave.korn.cygwin@gmail.com>
172 * emultempl/pe.em (debug_section_p): New bfd_map_over_sections hook.
173 (gld_${EMULATION_NAME}_after_open): Use it to iterate all sections
174 of all input BFDs, looking for debug info. Enable long section names
176 * emultempl/pe.em (debug_section_p): Likewise.
177 (gld_${EMULATION_NAME}_after_open): Likewise.
178 * NEWS: Retrospectively adjust news announcement.
179 * ld.texinfo: Update documentation to mention new behaviour.
181 2009-03-03 Alan Modra <amodra@bigpond.net.au>
183 * Makefile.am: Run "make dep-am".
184 * Makefile.in: Regenerate.
186 2009-03-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
188 * ldgram.y: Add support for REGION_ALIAS operator.
189 * ldlang.c: Likewise.
190 * ldlang.h: Likewise.
192 * NEWS: Mention the new feature.
193 * ld.texinfo: Document the new feature.
195 2009-03-02 Qinwei <qinwei@sunnorth.com.cn>
197 * Makefile.am: Replace score elf emulation with score3 and score7
199 * Makefile.in: Regenerate,
200 * NEWS: Mention support for Score7 architecture.
201 * configure.tgt: Add score7 emulation to score-elf target.
202 * emulparams/scoreelf.sh: Add score7 support.
203 * emultempl/scoreelf.em: Likewise.
205 2009-03-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
207 * configure.tgt: Only use elf64hppa target emulation for hpux.
208 * emulparams/elf64hppa.sh: Don't include hppa64linux.sh.
209 (SCRIPT_NAME): Use new script elf64hppa.
210 (SCRIPT_NAME, ELFSIZE, NO_REL_RELOCS, ARCH, MACHINE, ENTRY,
211 TEMPLATE_NAME, GENERATE_SHLIB_SCRIPT, OTHER_READONLY_SECTIONS,
212 OTHER_READWRITE_SECTIONS, OTHER_BSS_SECTIONS, OTHER_GOT_RELOC_SECTIONS,
213 DATA_START_SYMBOLS, OTHER_SYMBOLS, DATA_PLT, PLT_BEFORE_GOT,
214 TEXT_DYNAMIC): Define.
215 * emulparams/hppa64linux.sh: Adjust comments.
216 * scripttempl/elf64hppa.sc: New file.
218 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
220 * configure: Regenerate.
222 2009-02-27 Dave Korn <dave.korn.cygwin@gmail.com>
224 * emultempl/pe.em (gld_${EMULATION_NAME}_before_parse): Set
225 default state of auto-import flag based on $target.
227 2009-02-24 Joseph Myers <joseph@codesourcery.com>
229 * ld.texinfo (ARM): Document changed meaning of --stub-group-size.
230 * emultempl/armelf.em (hook_in_stub): Insert after the input section.
231 (elf32_arm_add_stub_section): Update comment.
232 (PARSE_AND_LIST_OPTIONS): Update help for --stub-group-size.
234 2009-02-24 Sandra Loosemore <sandra@codesourcery.com>
236 * ld.texinfo (Options): Correct typos in example. Recommend
237 using joined forms of syntax for passing options with arguments
239 (-a): Use consistent syntax for documenting option arguments.
240 Clean up indexing and markup.
241 (-A/--architecture): Likewise.
242 (-f/--auxiliary): Likewise.
243 (-F/--filter): Likewise.
245 (-G/--gpsize): Likewise.
246 (-h/-soname):Likewise.
248 (-l/--library): Likewise.
249 (-L/--library-path): Likewise.
251 (--defsym): Likewise.
252 (-I/--dynamic-linker): Likewise.
254 (--oformat): Likewise.
255 (--retain-symbols-file): Likewise.
257 (-rpath-link): Likewise.
258 (--sort-common): Likewise.
259 (--sort-section): Likewise.
260 (--split-by-file): Likewise.
261 (--split-by-reloc): Likewise.
262 (--sysroot): Likewise.
263 (--section-start): Likewise.
264 (-Tbss, -Tdata, -Ttext): Likewise.
265 (-Ttext-segment): Likewise.
266 (--version-script): Likewise.
269 2009-02-18 Dave Korn <dave.korn.cygwin@gmail.com>
271 * ld.texinfo: Update to mention long section name options.
272 * NEWS: Mention new behaviour and command-line options.
273 * pe-dll.c (pe_use_coff_long_section_names): New global variable.
274 (pe_output_file_set_long_section_names): New function.
275 (pe_dll_build_sections): Call it on output BFDs.
276 (pe_exe_build_sections): Likewise.
277 (pe_dll_fill_sections): Likewise.
278 (pe_exe_fill_sections): Likewise.
279 * pe-dll.h (pe_use_coff_long_section_names): Declare extern.
280 (pe_output_file_set_long_section_names): Add prototype.
281 * pep-dll.c (pe_use_coff_long_section_names): Define pep_ alias.
282 (pe_output_file_set_long_section_names): Likewise.
283 * pep-dll.h (pep_use_coff_long_section_names): Declare extern.
284 (pep_output_file_set_long_section_names): Add prototype.
285 * pe.em (OPTION_ENABLE_LONG_SECTION_NAMES): New getopt value macro.
286 (OPTION_DISABLE_LONG_SECTION_NAMES): Likewise.
287 (gld${EMULATION_NAME}_add_options): Add new options to xtra_long[].
288 (gld_${EMULATION_NAME}_list_options): Describe them.
289 (gld${EMULATION_NAME}_handle_option): Set or clear global
290 pe_use_coff_long_section_names flag when options recognised.
291 (gld_${EMULATION_NAME}_after_open): En/disable long section names
292 for main output bfd by calling pe_output_file_set_long_section_names.
293 * pep.em (enum options): Extend enum with new getopt option values.
294 (gld${EMULATION_NAME}_add_options): Add new options to xtra_long[].
295 (gld_${EMULATION_NAME}_list_options): Describe them.
296 (gld${EMULATION_NAME}_handle_option): Set or clear global
297 pe_use_coff_long_section_names flag when options recognised.
298 (gld_${EMULATION_NAME}_after_open): En/disable long section names
299 for main output bfd by calling pep_output_file_set_long_section_names.
301 2009-02-16 Dave Korn <dave.korn.cygwin@gmail.com>
303 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Don't emit
304 inadvertent .reloc sections caused by refactoring accident.
306 2009-02-16 Alan Modra <amodra@bigpond.net.au>
308 * ldlang.c (process_insert_statements): ASSERT that output section
309 statements are in order.
311 2009-02-16 Alan Modra <amodra@bigpond.net.au>
313 * ldlang.c (push_stat_ptr, pop_stat_ptr): New functions.
314 (stat_save, stat_save_ptr): New variables.
315 (lang_insert_orphan): Use push_stat_ptr and pop_stat_ptr.
316 (load_symbols): Likewise. Delete dead "bad_load" code.
317 (open_input_bfds): Warn on script containing output sections.
318 (lang_enter_output_section_statement): Use push_stat_ptr.
319 (lang_enter_group): Likewise.
320 (lang_leave_output_section_statement): Use pop_stat_ptr.
321 (lang_leave_group): Likewise.
322 * ldlang.h (push_stat_ptr, pop_stat_ptr): Declare.
323 * ldctor.c (ldctor_build_sets): Use push_stat_ptr and pop_stat_ptr.
324 * emultempl/beos.em (gld_${EMULATION_NAME}_set_symbols): Likewise.
325 * emultempl/pe.em (gld_${EMULATION_NAME}_set_symbols): Likewise.
326 * emultempl/pep.em (gld_${EMULATION_NAME}_set_symbols): Likewise.
327 * emultempl/spuelf.em (spu_place_special_section): Likewise.
328 * emultempl/xtensaelf.em (ld_xtensa_insert_page_offsets): Likewise.
330 2009-02-09 Nathan Sidwell <nathan@codesourcery.com>
332 Missing piece of 2009-01-26 commit
333 * ldlang.c (lang_process): Don't consider relocatable flag when
334 checking for overlap.
336 2009-02-05 Joseph Myers <joseph@codesourcery.com>
338 * emulparams/m68kelf.sh: Add newline at end of file.
340 2009-02-04 Nick Clifton <nickc@redhat.com>
343 * ld.texinfo (--allow-shlib-undefined): Correct description of
344 default settings and tidy up the rest of the entry.
346 2009-02-04 Alan Modra <amodra@bigpond.net.au>
348 * emultempl/spuelf.em (spu_after_open): Don't combine .text.ia.*
349 during relocatable link.
351 2009-02-03 Nick Clifton <nickc@redhat.com>
354 * ld.texinfo (Constants): Document the base-encoding suffixes
355 supported in linker scripts.
357 2009-02-03 Alan Modra <amodra@bigpond.net.au>
359 * NEWS: Mention --as-needed change.
361 2009-02-03 Carlos O'Donell <carlos@codesourcery.com>
363 * configure.in: AC_SUBST pdfdir.
364 * Makefile.am: Add install-pdf, install-pdf-am,
365 and install-pdf-recursive targets. Define pdf__strip_dir.
366 * po/Make-in: Add install-pdf target.
367 * configure: Regenerate.
368 * Makefile.in: Regenerate.
370 2009-01-31 Alan Modra <amodra@bigpond.net.au>
372 * ld.texinfo (--as-needed): Update.
374 2009-01-29 Andrew Jenner <andrew@codesourcery.com>
376 * emultempl/armelf.em: Correct formatting of help text for
377 --no-enum-size-warning option.
379 2009-01-26 Nathan Sidwell <nathan@codesourcery.com>
381 * lexsup.c (parse_args): Set check_section_addresses to 1 or 0.
382 * ld.h (args_type): Make check_section_addresses a char.
383 * ldmain.c (main): Default check_section_addresses to -1. Check it
384 for relocatable links.
385 * ld.texinfo (--check-sections): Update documentation.
387 2009-01-26 Kai Tietz <kai.tietz@onevision.com>
389 * pe-dll.c (tmp_seq2): New static variable.
390 (make_singleton_name_imp): New.
391 (make_import_fixup_entry): Use for v2 the _imp_<name> symbol and
392 avoid duplicate import table generation for same symbol.
393 (pe_create_runtime_relocator_reference): Make reference for
396 2009-01-21 Alan Modra <amodra@bigpond.net.au>
398 * emultempl/spuelf.em (params): Init new field.
399 (OPTION_SPU_NON_IA_TEXT): Define.
400 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add --non-ia-text.
401 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_SPU_NON_IA_TEXT.
403 2009-01-16 H.J. Lu <hongjiu.lu@intel.com>
405 * lexsup.c (option_values): Add OPTION_TTEXT_SEGMENT.
406 (ld_options): Add -Ttext-segment.
407 (parse_args): Handle OPTION_TTEXT_SEGMENT.
409 * ld.texinfo: Document -Ttext-segment.
411 * NEWS: Mention -Ttext-segment.
413 * scripttempl/elf.sc (TEXT_START_ADDR): Use SEGMENT_START.
414 (SHLIB_TEXT_START_ADDR): Likewise.
416 2009-01-13 Alan Modra <amodra@bigpond.net.au>
418 * emultempl/spu_icache.o_c: Regenerate.
420 2009-01-12 Alan Modra <amodra@bigpond.net.au>
422 * emultempl/spuelf.em (params): Init new fields.
423 (num_lines_set, line_size_set, icache_mgr, icache_mgr_stream): New vars.
424 (spu_place_special_section): Adjust placement for soft-icache. Pad
425 soft-icache section to a fixed size. Clear addr_tree.
426 (spu_elf_load_ovl_mgr): Support soft-icache. Map overlay manager
427 sections a little more intelligently.
428 (gld${EMULATION_NAME}_finish): Don't call spu_elf_build_stubs.
429 (OPTION_SPU_NUM_LINES): Rename from OPTION_SPU_NUM_REGIONS.
430 (OPTION_SPU_SOFT_ICACHE, OPTION_SPU_LINE_SIZE): Define.
431 (OPTION_SPU_LRLIVE): Define.
432 (PARSE_AND_LIST_LONGOPTS): Add new soft-icache options.
433 (PARSE_AND_LIST_OPTIONS): Likewise.
434 (PARSE_AND_LIST_ARGS_CASES): Handle them.
435 * emultempl/spu_icache.S: Dummy file.
436 * emultempl/spu_icache.o_c: Regenerate.
437 * Makefile.am (eelf32_spu.c): Depend on spu_icache.o_c.
438 (spu_icache.o_c): Add rule to build.
439 (CLEANFILES): Zap temp files.
440 (EXTRA_DIST): Add spu_icache.o_c.
441 * Makefile.in: Regenerate.
443 2009-01-08 Kai Tietz <kai.tietz@onevision.com>
445 * pe.em (OPTION_USE_NUL_PREFIXED_IMPORT_TABLES): New.
446 (gld..._add_options): Add new option
447 --use-nul-prefixed-import-tables.
448 (gld..._handle_option): Likewise.
449 * pep.em: Same as for pe.em.
450 * ld.texinfo: Add new option documentation for
451 --use-nul-prefixed-import-tables.
452 * pe-dll.c (pe_use_nul_prefixed_import_tables): New.
453 (make_head): Make prefix leading zero prefix element for
454 idata$4 and idata$5 dependent to new flag.
455 (make_import_fixup_entry): Remove idata4/5 prefix.
456 * pe-dll.h (pe_use_nul_prefixed_import_tables): New.
457 * pep-dll.c (pe_use_nul_prefixed_import_tables): New.
458 * pep-dll.h (pep_use_nul_prefixed_import_tables): New.
459 * NEWS: Add new option.
461 2009-01-05 Kai Tietz <kai.tietz@onevision.com>
463 * emultempl/pe.em: Prefix dollar characters to be outputed in
465 * emultempl/pep.em: Likewise.
467 2009-01-03 Dave Korn <dave.korn.cygwin@gmail.com>
469 * NEWS: Mention new feature --exclude-modules-for-implib.
470 * ld.texinfo: Document new --exclude-modules-for-implib option.
471 * pe-dll.c (exclude_list_struct): Change type member from int to
472 new enumeration exclude_type.
473 (pe_dll_add_excludes): Accept exclude_type instead of int param.
474 (auto_export): Replace magic constants by exclude_type values and
475 handle new choice EXCLUDEFORIMPLIB.
476 (pe_dll_generate_implib): Accept a pointer to the link_info and
477 iterate all input BFDs looking for EXCLUDEFORIMPLIB modules; re-open
478 fresh BFDs for any found and link into import lib archive chain.
479 * pe-dll.h (exclude_type): Add new enumerated type to replace magic
480 constants previously used for exclude_list_struct type member.
481 (pe_dll_add_excludes, pe_dll_generate_implib): Update prototypes.
482 * pep-dll.h (exclude_type, pe_dll_add_excludes,
483 pe_dll_generate_implib): Likewise to all the above.
484 * emultempl/pe.em (OPTION_EXCLUDE_MODULES_FOR_IMPLIB): Define new
485 getopts long option code for new --exclude-modules-for-implib option.
486 (gld${EMULATION_NAME}_add_options): Add new entry to xtra_long[].
487 (gld_${EMULATION_NAME}_list_options): List usage for it.
488 (gld${EMULATION_NAME}_handle_option): Use exclude_type enumerated
489 values when calling pe_dll_add_excludes, and handle EXCLUDEFORIMPLIB.
490 (gld_${EMULATION_NAME}_finish): Pass pointer to link_info when
491 calling pe_dll_generate_implib.
492 * emultempl/pep.em (options): Define new enumerated value for getopts
493 long option code for new --exclude-modules-for-implib option.
494 (gld${EMULATION_NAME}_add_options, gld_${EMULATION_NAME}_list_options,
495 gld${EMULATION_NAME}_handle_option, gld_${EMULATION_NAME}_finish):
496 Again, likewise to all the above.
498 2009-01-03 Dave Korn <dave.korn.cygwin@gmail.com>
500 * pe-dll.c (autofilter_liblist): Add entry for shared libgcc.
501 (libnamencmp): New function.
502 (auto_export): Use it in place of strncmp when filtering libraries.
504 For older changes see ChangeLog-2008
510 version-control: never