1 2009-05-26 Nick Clifton <nickc@redhat.com>
3 * po/id.po: Updated Indonesian translation.
4 * po/ld.pot: Updated template file.
6 2009-05-26 Alan Modra <amodra@bigpond.net.au>
8 * dep-in.sed: Output one filename per line with all lines having
9 continuation backslash. Prefix first line with "A", following
11 * Makefile.am (DEP): Don't use dep.sed here.
12 (DEP1): Run $MKDEP on single files, use dep.sed here on dependencies,
14 * Makefile.in: Regenerate.
16 2009-05-26 Alan Modra <amodra@bigpond.net.au>
18 * ldlang.c (lang_check_section_addresses): Ignore non-alloc sections.
20 2009-05-22 Julian Brown <julian@codesourcery.com>
22 * emultempl/armelf.em (fix_cortex_a8): New.
23 (arm_elf_before_allocation): Call bfd_elf32_arm_set_cortex_a8_fix.
24 (arm_elf_create_output_section_statements): Add fix_cortex_a8 to
25 bfd_elf32_arm_set_target_relocs.
26 (OPTION_FIX_CORTEX_A8, OPTION_NO_FIX_CORTEX_A8): New.
27 (PARSE_AND_LIST_LONGOPTS): Add [no-]fix-cortex-a8 options.
28 (PARSE_AND_LIST_OPTIONS): Add [no-]fix-cortex-a8 options.
29 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_[NO_]FIX_CORTEX_A8.
30 * ld.texinfo (--[no-]fix-cortex-a8): Briefly document new options.
32 2009-05-22 Nathan Sidwell <nathan@codesourcery.com>
34 * ldlang.c (lang_check_section_addresses): Ignore non-loadable
35 sections when checking for overlap. Clarify error message
36 concerns load address.
38 2009-05-22 Alan Modra <amodra@bigpond.net.au>
40 * Makefile.am: Run "make dep-am".
41 * Makefile.in: Regenerate.
43 2009-05-19 Dave Korn <dave.korn.cygwin@gmail.com>
45 * NEWS: Mention new feature.
46 * deffile.h (def_file_aligncomm): Add new struct definition.
47 (def_file): Add new def_file_aligncomm member.
48 * deffilep.y (%token): Add new ALIGNCOMM token.
49 (command): Add production rule for ALIGNCOMM.
50 (def_file_free): Free any chained def_file_aligncomm structs.
51 (diropts[]): Add entry for '-aligncomm' .drectve command.
52 (def_aligncomm): New grammar function.
53 * ld.texinfo: Document new feature.
54 * pe-dll.c (process_def_file): Rename from this ...
55 (process_def_file_and_drectve): ... to this, updating all callers,
56 and process any aligncomms chained to the def file after scanning
57 all .drectve sections.
58 (generate_edata): Updated to match.
59 (pe_dll_build_sections): Likewise.
61 2009-05-17 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
63 * pe-dll.c (process_def_file): Do not create empty export table.
65 2009-05-15 Alan Modra <amodra@bigpond.net.au>
67 * ldlang.c (lang_output_section_statement_lookup): Add function
68 comment. Make "name" non-const. Ensure duplicate entries use
69 the same string, allowing simple comparison in hash bucket loop.
70 Tweak constraint check.
71 (next_matching_output_section_statement): New function.
72 * ldlang.h (lang_output_section_statement_lookup): Update.
73 (next_matching_output_section_statement): Declare.
74 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
75 combine orphan sections when input sections flags differ in
77 * emultempl/pe.em: Formatting throughout.
78 (gld${EMULATION_NAME}_place_orphan): As for elf32.em.
79 * emultempl/pep.em: Formatting throughout.
80 (gld${EMULATION_NAME}_place_orphan): As for elf32.em.
82 2009-05-14 Ulrich Weigand <uweigand@de.ibm.com>
84 * emultempl/spuelf.em (PARSE_AND_LIST_ARGS_CASES): Always use
85 compact stubs with software i-cache.
87 2009-05-14 Alan Modra <amodra@bigpond.net.au>
89 * emultempl/spuelf.em (spu_before_allocation): Call
90 spu_elf_place_overlay_data.
92 2009-05-14 Alan Modra <amodra@bigpond.net.au>
94 * ldlang.c (lang_insert_orphan): Add __start_<section> symbol
95 assignment inside output section statement. Ensure only one
96 set of symbols per output section.
97 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Add non-
98 dollar sections before dollar sections. Correct add_child
100 * emultempl/pep.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
102 2009-05-05 Paul Brook <paul@codesourcery.com>
104 * emultempl/armelf.em (compare_output_sec_vma): New function.
105 (gld${EMULATION_NAME}_finish): Add exidx munging code.
107 2009-05-05 Anatoly Sokolov <aesok@post.ru>
109 * scripttempl/avr.sc (MEMORY): Use DATA_ORIGIN.
110 * emulparams/avr1.sh (DATA_ORIGIN): Add.
111 * emulparams/avr2.sh (DATA_ORIGIN): Add.
112 * emulparams/avr25.sh (DATA_ORIGIN): Add.
113 * emulparams/avr3.sh (DATA_ORIGIN): Add.
114 * emulparams/avr31.sh (DATA_ORIGIN): Add.
115 * emulparams/avr35.sh (DATA_ORIGIN): Add.
116 * emulparams/avr4.sh (DATA_ORIGIN): Add.
117 * emulparams/avr5.sh (DATA_ORIGIN): Add.
118 * emulparams/avr51.sh (DATA_ORIGIN): Add.
119 (DATA_LENGTH): Update.
120 * emulparams/avr6.sh (DATA_ORIGIN): Add.
121 (DATA_LENGTH): Update.
123 2009-05-04 Dave Korn <dave.korn.cygwin@gmail.com>
125 * NEWS: Mention new feature.
126 * ld.texinfo (--version-script): Document extent of PE support.
127 (WIN32): Mention --version-script. Extend auto-export description.
128 * pe-dll.c (process_def_file): Use version script info to filter
129 symbols from auto-export.
130 * testsuite/ld-pe/vers-script-1.d: New file.
131 * testsuite/ld-pe/vers-script-2.d: New file.
132 * testsuite/ld-pe/vers-script-3.d: New file.
133 * testsuite/ld-pe/vers-script-4.d: New file.
134 * testsuite/ld-pe/vers-script-1.ver: New file.
135 * testsuite/ld-pe/vers-script-2.ver: New file.
136 * testsuite/ld-pe/vers-script-3.ver: New file.
137 * testsuite/ld-pe/vers-script-4.ver: New file.
138 * testsuite/ld-pe/vers-script-dll.c: New file.
139 * testsuite/ld-pe/vers-script.exp: New test script.
141 2009-05-01 Nathan Sidwell <nathan@codesourcery.com>
143 * emulparams/vxworks.sh (TEXT_START_ADDR): Override.
145 2009-04-30 Nick Clifton <nickc@redhat.com>
147 * NEWS: Mention support for IFUNC symbols.
149 2009-04-29 Anthony Green <green@moxielogic.com>
151 * emulparams/elf32moxie.sh (STACK_ADDR): Move default stack
152 position out to accommodate larger programs.
154 2009-04-29 Chris Demetriou <cgd@google.com>
156 * lexsup.c (option_values): Add OPTION_NO_EXPORT_DYNAMIC.
157 (ld_options): Likewise.
158 (parse_args): Likewise.
159 * ld.texinfo: Document --no-export-dynamic.
160 * NEWS: Mention --no-export-dynamic.
162 2009-04-29 Alan Modra <amodra@bigpond.net.au>
164 * deffilep.y (STACKSIZE_K): Rename from STACKSIZE.
166 2009-04-25 Alan Modra <amodra@bigpond.net.au>
169 * genscripts.sh: Don't pass $EMULATION_NAME as $CUSTOMIZER_SCRIPT
172 2009-04-21 Daniel Jacobowitz <dan@codesourcery.com>
174 * emultempl/armelf.em (bfd_for_interwork, arm_elf_after_open)
175 (arm_elf_set_bfd_for_interworking): Delete.
176 (arm_elf_before_allocation): Do not set the interworking BFD.
177 Move allocation inside not-dynamic block.
178 (arm_elf_create_output_section_statements): Create glue sections
179 and set the interworking BFD here.
180 (LDEMUL_AFTER_OPEN): Delete.
182 2009-04-16 Richard Sandiford <r.sandiford@uk.ibm.com>
184 * ldlang.c (lang_one_common): Use bfd_define_common_symbol.
186 2009-04-15 Anthony Green <green@moxielogic.com>
188 * configure.tgt: Add moxie support.
189 * Makefile.am: Add moxie files.
190 * Makefile.in: Rebuilt.
191 * emulparams/elf32moxie.sh: New file.
192 * scripttempl/moxie.sc: New file.
194 2009-04-15 Kazu Hirata <kazu@codesourcery.com>
196 * ldlang.c: Do not include limits.h.
198 2009-04-14 Alan Modra <amodra@bigpond.net.au>
201 * ldfile.c (find_scripts_dir): Use make_relative_prefix to find
202 ldscripts in build tree. Don't repeat search for ../lib/ldscripts.
204 2009-04-13 H.J. Lu <hongjiu.lu@intel.com>
206 * ldfile.c (ldfile_find_command_file): Revert the last change.
208 2009-04-11 H.J. Lu <hongjiu.lu@intel.com>
211 * ldfile.c (ldfile_find_command_file): First try raw name.
213 2009-04-09 Nick Clifton <nickc@redhat.com>
216 * ld.texinfo (Output Section Constraint): New node. Documents the
217 ONLY_IF_RO and ONLY_IF_RW constraints.
218 (Symbolic Constants): New node. Documents the CONSTANT operator.
220 2009-04-09 Thilo Fischer <thilo.fischer@uni-muenster.de>
222 * emultempl/spuelf.em (embedded_spu_file): Use pex_one in place
225 2009-04-08 H.J. Lu <hongjiu.lu@intel.com>
227 * lexsup.c (option_values): Add OPTION_WARN_ALTERNATE_EM.
228 (ld_options): Likewise.
229 (parse_args): Likewise.
231 * ld.texinfo: Document --warn-alternate-em.
233 * NEWS: Mention --warn-alternate-em.
235 2009-04-07 DJ Delorie <dj@redhat.com>
237 * emulparams/elf32mep.sh: Change default endian to little.
239 2009-04-07 Nick Clifton <nickc@redhat.com>
241 * ld.texinfo (Output Section Address): Note that specifying an
242 address for an output section will only change the location
243 counter if the output section is used.
245 2009-04-06 Kazu Hirata <kazu@codesourcery.com>
247 * ldfile.c (ldfile_find_command_file): Initialize result.
249 2009-04-06 Kazu Hirata <kazu@codesourcery.com>
251 * ld.texinfo (-L): Mention that -L options do not affect how ld
252 searches for a linker script unless -T option is specified.
253 * ldfile.c (ldfile_find_command_file): Append the path obtained
254 from the program name to the search path instead of
255 prepending. Add a new parameter "default_only". Restrict the
256 search to the default script location if the new parameter is
258 (ldfile_open_command_file_1): New.
259 (ldfile_open_command_file): Call ldfile_open_command_file_1.
260 (ldfile_open_default_command_file): New.
262 2009-04-03 Nathan Sidwell <nathan@codesourcery.com>
264 * ldlang.c (lang_leave_output_section_statement): Set lma_region
265 if it is not overridden and section is for the same vma region as
266 the previous section.
268 2009-04-02 Dave Korn <dave.korn.cygwin@gmail.com>
271 * ld.texinfo (--export-dynamic): Mention --export-all-symbols.
272 * emultempl/pe.em (gld_${EMULATION_NAME}_after_parse): Issue
273 warning if --export-dynamic was passed on command-line.
274 * emultempl/pep.em (gld_${EMULATION_NAME}_after_parse): Likewise.
276 2009-04-01 Richard Sandiford <r.sandiford@uk.ibm.com>
278 * emultempl/aix.em (gld${EMULATION_NAME}_open_dynamic_archive): New
280 (ld_${EMULATION_NAME}_emulation): Use it.
282 2009-03-20 H.J. Lu <hongjiu.lu@intel.com>
285 * ldlang.c (lang_end): Warn missing entry symbol for -pie.
287 2009-03-19 Alan Modra <amodra@bigpond.net.au>
289 * emultempl/spuelf.em (spu_before_allocation): Report errors from
290 spu_elf_find_overlays.
292 2009-03-18 H.J. Lu <hongjiu.lu@intel.com>
295 * lexsup.c (parse_args): Call ldlang_add_undef for -e.
297 2009-03-18 Alan Modra <amodra@bigpond.net.au>
299 * ld.h: Remove alloca handling.
301 2009-03-17 Alan Modra <amodra@bigpond.net.au>
303 * emultempl/spu_icache.S: Add new entry to dummy handler.
304 * emultempl/spu_icache.o_c: Regenerate.
305 * emultempl/spuelf.em (params): Init new field.
306 (no_overlays): New static var.
307 (spu_before_allocation): Use it.
308 (OPTION_SPU_COMPACT_STUBS): Define.
309 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add compact-stubs.
310 (PARSE_AND_LIST_ARGS_CASES): Handle compact-stubs. Adjust no-overlays
313 2009-03-17 Alan Modra <amodra@bigpond.net.au>
315 * configure.host (HOSTING_LIBS): Two dollars on shell variable
316 expansion to suit make.
318 2009-03-17 Alan Modra <amodra@bigpond.net.au>
320 * configure.in: Invoke ACX_PROG_CMP_IGNORE_INITIAL.
321 * Makefile.am (check-DEJAGNU): Set DO_COMPARE.
322 * aclocal.m4: Regenerate.
323 * configure: Regenerate.
324 * Makefile.in: Regenerate.
326 2009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com>
328 * emultempl/aix.em (auto_export_flags): New variable.
329 (explicit_auto_export_flags): Likewise.
330 (OPTION_EXPALL, OPTION_EXPFULL): New enum values.
331 (OPTION_NOEXPALL, OPTION_NOEXPFULL): Likewise.
332 (gld${EMULATION_NAME}_add_options): Add -bexpall, -bexpfull,
333 -bnoexpall and -bnoexpfull.
334 (gld${EMULATION_NAME}_handle_option): Handle them.
335 (gld${EMULATION_NAME}_before_allocation): Update the call to
336 bfd_size_dynamic_sections.
338 2009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com>
340 * emultempl/aix.em (gld${EMULATION_NAME}_handle_option): Make
341 -berok and -bernotok control link_info.unresolved_syms_in_objects
342 and link_info.unresolved_syms_in_shared_libs instead of
343 force_make_executable.
345 2009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com>
347 * emultempl/aix.em (gld${EMULATION_NAME}_before_parse): Set
348 config.dynamic_link to TRUE.
350 2009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com>
352 * emultempl/aix.em (gld${EMULATION_NAME}_before_allocation): Mark
353 .text, .data and .bss output sections as SEC_KEEP.
355 2009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com>
357 * configure.tgt: Extend AIX 5 behavior to AIX 6 and above.
359 2009-03-14 Dave Korn <dave.korn.cygwin@gmail.com>
360 Danny Smith <dannysmith@users.sourceforge.net>
362 * emultmpl/pe.em (pe_dll_characteristics): New variable.
363 (OPTION_DYNAMIC_BASE, OPTION_FORCE_INTEGRITY, OPTION_NX_COMPAT,
364 OPTION_NO_ISOLATION. OPTION_NO_SEH, OPTION_NO_BIND,
365 OPTION_WDM_DRIVER, OPTION_TERMINAL_SERVER_AWARE):
366 New macros for options to set DllCharacteristics flag bits.
367 (gld${EMULATION_NAME}_add_options): Add dynamicbase, forceinteg,
368 nxcompat, no-isolation, no-seh, no-bind, wdmdriver, tsaware options.
369 (init): Add DllCharacteristics field.
370 (gld_${EMULATION_NAME}_list_options): List new options.
371 (gld${EMULATION_NAME}_handle_option): Handle new options.
372 * emultmpl/pep.em (pe_dll_characteristics): New variable.
373 (OPTION_DYNAMIC_BASE, OPTION_FORCE_INTEGRITY, OPTION_NX_COMPAT,
374 OPTION_NO_ISOLATION. OPTION_NO_SEH, OPTION_NO_BIND,
375 OPTION_WDM_DRIVER, OPTION_TERMINAL_SERVER_AWARE):
376 New macros for options to set DllCharacteristics flags.
377 (gld${EMULATION_NAME}_add_options): Add dynamicbase, forceinteg,
378 nxcompat,no-isolation, no-seh, no-bind, wdmdriver, tsaware options.
379 (init): Add DllCharacteristics field.
380 (gld_${EMULATION_NAME}_list_options): List new options.
381 (gld${EMULATION_NAME}_handle_option): Handle new options.
382 * ldtexinfo : Document dynamicbase, forceinteg, nxcompat,
383 no-isolation, no-seh, no-bind, wdmdriver, tsaware options.
385 2009-03-06 Nick Clifton <nickc@redhat.com>
387 * po/es.po: Updated Spanish translation.
389 2009-03-03 Dave Korn <dave.korn.cygwin@gmail.com>
391 * emultempl/pe.em (debug_section_p): New bfd_map_over_sections hook.
392 (gld_${EMULATION_NAME}_after_open): Use it to iterate all sections
393 of all input BFDs, looking for debug info. Enable long section names
395 * emultempl/pe.em (debug_section_p): Likewise.
396 (gld_${EMULATION_NAME}_after_open): Likewise.
397 * NEWS: Retrospectively adjust news announcement.
398 * ld.texinfo: Update documentation to mention new behaviour.
400 2009-03-03 Alan Modra <amodra@bigpond.net.au>
402 * Makefile.am: Run "make dep-am".
403 * Makefile.in: Regenerate.
405 2009-03-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
407 * ldgram.y: Add support for REGION_ALIAS operator.
408 * ldlang.c: Likewise.
409 * ldlang.h: Likewise.
411 * NEWS: Mention the new feature.
412 * ld.texinfo: Document the new feature.
414 2009-03-02 Qinwei <qinwei@sunnorth.com.cn>
416 * Makefile.am: Replace score elf emulation with score3 and score7
418 * Makefile.in: Regenerate,
419 * NEWS: Mention support for Score7 architecture.
420 * configure.tgt: Add score7 emulation to score-elf target.
421 * emulparams/scoreelf.sh: Add score7 support.
422 * emultempl/scoreelf.em: Likewise.
424 2009-03-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
426 * configure.tgt: Only use elf64hppa target emulation for hpux.
427 * emulparams/elf64hppa.sh: Don't include hppa64linux.sh.
428 (SCRIPT_NAME): Use new script elf64hppa.
429 (SCRIPT_NAME, ELFSIZE, NO_REL_RELOCS, ARCH, MACHINE, ENTRY,
430 TEMPLATE_NAME, GENERATE_SHLIB_SCRIPT, OTHER_READONLY_SECTIONS,
431 OTHER_READWRITE_SECTIONS, OTHER_BSS_SECTIONS, OTHER_GOT_RELOC_SECTIONS,
432 DATA_START_SYMBOLS, OTHER_SYMBOLS, DATA_PLT, PLT_BEFORE_GOT,
433 TEXT_DYNAMIC): Define.
434 * emulparams/hppa64linux.sh: Adjust comments.
435 * scripttempl/elf64hppa.sc: New file.
437 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
439 * configure: Regenerate.
441 2009-02-27 Dave Korn <dave.korn.cygwin@gmail.com>
443 * emultempl/pe.em (gld_${EMULATION_NAME}_before_parse): Set
444 default state of auto-import flag based on $target.
446 2009-02-24 Joseph Myers <joseph@codesourcery.com>
448 * ld.texinfo (ARM): Document changed meaning of --stub-group-size.
449 * emultempl/armelf.em (hook_in_stub): Insert after the input section.
450 (elf32_arm_add_stub_section): Update comment.
451 (PARSE_AND_LIST_OPTIONS): Update help for --stub-group-size.
453 2009-02-24 Sandra Loosemore <sandra@codesourcery.com>
455 * ld.texinfo (Options): Correct typos in example. Recommend
456 using joined forms of syntax for passing options with arguments
458 (-a): Use consistent syntax for documenting option arguments.
459 Clean up indexing and markup.
460 (-A/--architecture): Likewise.
461 (-f/--auxiliary): Likewise.
462 (-F/--filter): Likewise.
464 (-G/--gpsize): Likewise.
465 (-h/-soname):Likewise.
467 (-l/--library): Likewise.
468 (-L/--library-path): Likewise.
470 (--defsym): Likewise.
471 (-I/--dynamic-linker): Likewise.
473 (--oformat): Likewise.
474 (--retain-symbols-file): Likewise.
476 (-rpath-link): Likewise.
477 (--sort-common): Likewise.
478 (--sort-section): Likewise.
479 (--split-by-file): Likewise.
480 (--split-by-reloc): Likewise.
481 (--sysroot): Likewise.
482 (--section-start): Likewise.
483 (-Tbss, -Tdata, -Ttext): Likewise.
484 (-Ttext-segment): Likewise.
485 (--version-script): Likewise.
488 2009-02-18 Dave Korn <dave.korn.cygwin@gmail.com>
490 * ld.texinfo: Update to mention long section name options.
491 * NEWS: Mention new behaviour and command-line options.
492 * pe-dll.c (pe_use_coff_long_section_names): New global variable.
493 (pe_output_file_set_long_section_names): New function.
494 (pe_dll_build_sections): Call it on output BFDs.
495 (pe_exe_build_sections): Likewise.
496 (pe_dll_fill_sections): Likewise.
497 (pe_exe_fill_sections): Likewise.
498 * pe-dll.h (pe_use_coff_long_section_names): Declare extern.
499 (pe_output_file_set_long_section_names): Add prototype.
500 * pep-dll.c (pe_use_coff_long_section_names): Define pep_ alias.
501 (pe_output_file_set_long_section_names): Likewise.
502 * pep-dll.h (pep_use_coff_long_section_names): Declare extern.
503 (pep_output_file_set_long_section_names): Add prototype.
504 * pe.em (OPTION_ENABLE_LONG_SECTION_NAMES): New getopt value macro.
505 (OPTION_DISABLE_LONG_SECTION_NAMES): Likewise.
506 (gld${EMULATION_NAME}_add_options): Add new options to xtra_long[].
507 (gld_${EMULATION_NAME}_list_options): Describe them.
508 (gld${EMULATION_NAME}_handle_option): Set or clear global
509 pe_use_coff_long_section_names flag when options recognised.
510 (gld_${EMULATION_NAME}_after_open): En/disable long section names
511 for main output bfd by calling pe_output_file_set_long_section_names.
512 * pep.em (enum options): Extend enum with new getopt option values.
513 (gld${EMULATION_NAME}_add_options): Add new options to xtra_long[].
514 (gld_${EMULATION_NAME}_list_options): Describe them.
515 (gld${EMULATION_NAME}_handle_option): Set or clear global
516 pe_use_coff_long_section_names flag when options recognised.
517 (gld_${EMULATION_NAME}_after_open): En/disable long section names
518 for main output bfd by calling pep_output_file_set_long_section_names.
520 2009-02-16 Dave Korn <dave.korn.cygwin@gmail.com>
522 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Don't emit
523 inadvertent .reloc sections caused by refactoring accident.
525 2009-02-16 Alan Modra <amodra@bigpond.net.au>
527 * ldlang.c (process_insert_statements): ASSERT that output section
528 statements are in order.
530 2009-02-16 Alan Modra <amodra@bigpond.net.au>
532 * ldlang.c (push_stat_ptr, pop_stat_ptr): New functions.
533 (stat_save, stat_save_ptr): New variables.
534 (lang_insert_orphan): Use push_stat_ptr and pop_stat_ptr.
535 (load_symbols): Likewise. Delete dead "bad_load" code.
536 (open_input_bfds): Warn on script containing output sections.
537 (lang_enter_output_section_statement): Use push_stat_ptr.
538 (lang_enter_group): Likewise.
539 (lang_leave_output_section_statement): Use pop_stat_ptr.
540 (lang_leave_group): Likewise.
541 * ldlang.h (push_stat_ptr, pop_stat_ptr): Declare.
542 * ldctor.c (ldctor_build_sets): Use push_stat_ptr and pop_stat_ptr.
543 * emultempl/beos.em (gld_${EMULATION_NAME}_set_symbols): Likewise.
544 * emultempl/pe.em (gld_${EMULATION_NAME}_set_symbols): Likewise.
545 * emultempl/pep.em (gld_${EMULATION_NAME}_set_symbols): Likewise.
546 * emultempl/spuelf.em (spu_place_special_section): Likewise.
547 * emultempl/xtensaelf.em (ld_xtensa_insert_page_offsets): Likewise.
549 2009-02-09 Nathan Sidwell <nathan@codesourcery.com>
551 Missing piece of 2009-01-26 commit
552 * ldlang.c (lang_process): Don't consider relocatable flag when
553 checking for overlap.
555 2009-02-05 Joseph Myers <joseph@codesourcery.com>
557 * emulparams/m68kelf.sh: Add newline at end of file.
559 2009-02-04 Nick Clifton <nickc@redhat.com>
562 * ld.texinfo (--allow-shlib-undefined): Correct description of
563 default settings and tidy up the rest of the entry.
565 2009-02-04 Alan Modra <amodra@bigpond.net.au>
567 * emultempl/spuelf.em (spu_after_open): Don't combine .text.ia.*
568 during relocatable link.
570 2009-02-03 Nick Clifton <nickc@redhat.com>
573 * ld.texinfo (Constants): Document the base-encoding suffixes
574 supported in linker scripts.
576 2009-02-03 Alan Modra <amodra@bigpond.net.au>
578 * NEWS: Mention --as-needed change.
580 2009-02-03 Carlos O'Donell <carlos@codesourcery.com>
582 * configure.in: AC_SUBST pdfdir.
583 * Makefile.am: Add install-pdf, install-pdf-am,
584 and install-pdf-recursive targets. Define pdf__strip_dir.
585 * po/Make-in: Add install-pdf target.
586 * configure: Regenerate.
587 * Makefile.in: Regenerate.
589 2009-01-31 Alan Modra <amodra@bigpond.net.au>
591 * ld.texinfo (--as-needed): Update.
593 2009-01-29 Andrew Jenner <andrew@codesourcery.com>
595 * emultempl/armelf.em: Correct formatting of help text for
596 --no-enum-size-warning option.
598 2009-01-26 Nathan Sidwell <nathan@codesourcery.com>
600 * lexsup.c (parse_args): Set check_section_addresses to 1 or 0.
601 * ld.h (args_type): Make check_section_addresses a char.
602 * ldmain.c (main): Default check_section_addresses to -1. Check it
603 for relocatable links.
604 * ld.texinfo (--check-sections): Update documentation.
606 2009-01-26 Kai Tietz <kai.tietz@onevision.com>
608 * pe-dll.c (tmp_seq2): New static variable.
609 (make_singleton_name_imp): New.
610 (make_import_fixup_entry): Use for v2 the _imp_<name> symbol and
611 avoid duplicate import table generation for same symbol.
612 (pe_create_runtime_relocator_reference): Make reference for
615 2009-01-21 Alan Modra <amodra@bigpond.net.au>
617 * emultempl/spuelf.em (params): Init new field.
618 (OPTION_SPU_NON_IA_TEXT): Define.
619 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add --non-ia-text.
620 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_SPU_NON_IA_TEXT.
622 2009-01-16 H.J. Lu <hongjiu.lu@intel.com>
624 * lexsup.c (option_values): Add OPTION_TTEXT_SEGMENT.
625 (ld_options): Add -Ttext-segment.
626 (parse_args): Handle OPTION_TTEXT_SEGMENT.
628 * ld.texinfo: Document -Ttext-segment.
630 * NEWS: Mention -Ttext-segment.
632 * scripttempl/elf.sc (TEXT_START_ADDR): Use SEGMENT_START.
633 (SHLIB_TEXT_START_ADDR): Likewise.
635 2009-01-13 Alan Modra <amodra@bigpond.net.au>
637 * emultempl/spu_icache.o_c: Regenerate.
639 2009-01-12 Alan Modra <amodra@bigpond.net.au>
641 * emultempl/spuelf.em (params): Init new fields.
642 (num_lines_set, line_size_set, icache_mgr, icache_mgr_stream): New vars.
643 (spu_place_special_section): Adjust placement for soft-icache. Pad
644 soft-icache section to a fixed size. Clear addr_tree.
645 (spu_elf_load_ovl_mgr): Support soft-icache. Map overlay manager
646 sections a little more intelligently.
647 (gld${EMULATION_NAME}_finish): Don't call spu_elf_build_stubs.
648 (OPTION_SPU_NUM_LINES): Rename from OPTION_SPU_NUM_REGIONS.
649 (OPTION_SPU_SOFT_ICACHE, OPTION_SPU_LINE_SIZE): Define.
650 (OPTION_SPU_LRLIVE): Define.
651 (PARSE_AND_LIST_LONGOPTS): Add new soft-icache options.
652 (PARSE_AND_LIST_OPTIONS): Likewise.
653 (PARSE_AND_LIST_ARGS_CASES): Handle them.
654 * emultempl/spu_icache.S: Dummy file.
655 * emultempl/spu_icache.o_c: Regenerate.
656 * Makefile.am (eelf32_spu.c): Depend on spu_icache.o_c.
657 (spu_icache.o_c): Add rule to build.
658 (CLEANFILES): Zap temp files.
659 (EXTRA_DIST): Add spu_icache.o_c.
660 * Makefile.in: Regenerate.
662 2009-01-08 Kai Tietz <kai.tietz@onevision.com>
664 * pe.em (OPTION_USE_NUL_PREFIXED_IMPORT_TABLES): New.
665 (gld..._add_options): Add new option
666 --use-nul-prefixed-import-tables.
667 (gld..._handle_option): Likewise.
668 * pep.em: Same as for pe.em.
669 * ld.texinfo: Add new option documentation for
670 --use-nul-prefixed-import-tables.
671 * pe-dll.c (pe_use_nul_prefixed_import_tables): New.
672 (make_head): Make prefix leading zero prefix element for
673 idata$4 and idata$5 dependent to new flag.
674 (make_import_fixup_entry): Remove idata4/5 prefix.
675 * pe-dll.h (pe_use_nul_prefixed_import_tables): New.
676 * pep-dll.c (pe_use_nul_prefixed_import_tables): New.
677 * pep-dll.h (pep_use_nul_prefixed_import_tables): New.
678 * NEWS: Add new option.
680 2009-01-05 Kai Tietz <kai.tietz@onevision.com>
682 * emultempl/pe.em: Prefix dollar characters to be outputed in
684 * emultempl/pep.em: Likewise.
686 2009-01-03 Dave Korn <dave.korn.cygwin@gmail.com>
688 * NEWS: Mention new feature --exclude-modules-for-implib.
689 * ld.texinfo: Document new --exclude-modules-for-implib option.
690 * pe-dll.c (exclude_list_struct): Change type member from int to
691 new enumeration exclude_type.
692 (pe_dll_add_excludes): Accept exclude_type instead of int param.
693 (auto_export): Replace magic constants by exclude_type values and
694 handle new choice EXCLUDEFORIMPLIB.
695 (pe_dll_generate_implib): Accept a pointer to the link_info and
696 iterate all input BFDs looking for EXCLUDEFORIMPLIB modules; re-open
697 fresh BFDs for any found and link into import lib archive chain.
698 * pe-dll.h (exclude_type): Add new enumerated type to replace magic
699 constants previously used for exclude_list_struct type member.
700 (pe_dll_add_excludes, pe_dll_generate_implib): Update prototypes.
701 * pep-dll.h (exclude_type, pe_dll_add_excludes,
702 pe_dll_generate_implib): Likewise to all the above.
703 * emultempl/pe.em (OPTION_EXCLUDE_MODULES_FOR_IMPLIB): Define new
704 getopts long option code for new --exclude-modules-for-implib option.
705 (gld${EMULATION_NAME}_add_options): Add new entry to xtra_long[].
706 (gld_${EMULATION_NAME}_list_options): List usage for it.
707 (gld${EMULATION_NAME}_handle_option): Use exclude_type enumerated
708 values when calling pe_dll_add_excludes, and handle EXCLUDEFORIMPLIB.
709 (gld_${EMULATION_NAME}_finish): Pass pointer to link_info when
710 calling pe_dll_generate_implib.
711 * emultempl/pep.em (options): Define new enumerated value for getopts
712 long option code for new --exclude-modules-for-implib option.
713 (gld${EMULATION_NAME}_add_options, gld_${EMULATION_NAME}_list_options,
714 gld${EMULATION_NAME}_handle_option, gld_${EMULATION_NAME}_finish):
715 Again, likewise to all the above.
717 2009-01-03 Dave Korn <dave.korn.cygwin@gmail.com>
719 * pe-dll.c (autofilter_liblist): Add entry for shared libgcc.
720 (libnamencmp): New function.
721 (auto_export): Use it in place of strncmp when filtering libraries.
723 For older changes see ChangeLog-2008
729 version-control: never