* elf32-spu.c (mark_overlay_section): Move .init and .fini
[binutils.git] / ld / ChangeLog
blobb9c2965372da8b494f482f1c9bfe4ec5fbc5672a
1 2009-05-14  Ulrich Weigand  <uweigand@de.ibm.com>
3         * emultempl/spuelf.em (PARSE_AND_LIST_ARGS_CASES): Always use
4         compact stubs with software i-cache.
6 2009-05-14  Alan Modra  <amodra@bigpond.net.au>
8         * emultempl/spuelf.em (spu_before_allocation): Call
9         spu_elf_place_overlay_data.
11 2009-05-14  Alan Modra  <amodra@bigpond.net.au>
13         * ldlang.c (lang_insert_orphan): Add __start_<section> symbol
14         assignment inside output section statement.  Ensure only one
15         set of symbols per output section.
16         * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Add non-
17         dollar sections before dollar sections.  Correct add_child
18         list insertion.
19         * emultempl/pep.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
21 2009-05-05  Paul Brook  <paul@codesourcery.com>
23         * emultempl/armelf.em (compare_output_sec_vma): New function.
24         (gld${EMULATION_NAME}_finish): Add exidx munging code.
26 2009-05-05  Anatoly Sokolov  <aesok@post.ru>
28         * scripttempl/avr.sc (MEMORY): Use DATA_ORIGIN.
29         * emulparams/avr1.sh (DATA_ORIGIN): Add.
30         * emulparams/avr2.sh (DATA_ORIGIN): Add.
31         * emulparams/avr25.sh (DATA_ORIGIN): Add.
32         * emulparams/avr3.sh (DATA_ORIGIN): Add.
33         * emulparams/avr31.sh (DATA_ORIGIN): Add.
34         * emulparams/avr35.sh (DATA_ORIGIN): Add.
35         * emulparams/avr4.sh (DATA_ORIGIN): Add.
36         * emulparams/avr5.sh (DATA_ORIGIN): Add.
37         * emulparams/avr51.sh (DATA_ORIGIN): Add.
38         (DATA_LENGTH): Update.
39         * emulparams/avr6.sh (DATA_ORIGIN): Add.
40         (DATA_LENGTH): Update.
42 2009-05-04  Dave Korn  <dave.korn.cygwin@gmail.com>
44         * NEWS:  Mention new feature.
45         * ld.texinfo (--version-script):  Document extent of PE support.
46         (WIN32):  Mention --version-script.  Extend auto-export description.
47         * pe-dll.c (process_def_file):  Use version script info to filter
48         symbols from auto-export.
49         * testsuite/ld-pe/vers-script-1.d:  New file.
50         * testsuite/ld-pe/vers-script-2.d:  New file.
51         * testsuite/ld-pe/vers-script-3.d:  New file.
52         * testsuite/ld-pe/vers-script-4.d:  New file.
53         * testsuite/ld-pe/vers-script-1.ver:  New file.
54         * testsuite/ld-pe/vers-script-2.ver:  New file.
55         * testsuite/ld-pe/vers-script-3.ver:  New file.
56         * testsuite/ld-pe/vers-script-4.ver:  New file.
57         * testsuite/ld-pe/vers-script-dll.c:  New file.
58         * testsuite/ld-pe/vers-script.exp:  New test script.
60 2009-05-01  Nathan Sidwell  <nathan@codesourcery.com>
62         * emulparams/vxworks.sh (TEXT_START_ADDR): Override.
64 2009-04-30  Nick Clifton  <nickc@redhat.com>
66         * NEWS: Mention support for IFUNC symbols.
68 2009-04-29  Anthony Green  <green@moxielogic.com>
70         * emulparams/elf32moxie.sh (STACK_ADDR): Move default stack
71         position out to accommodate larger programs.
73 2009-04-29  Chris Demetriou  <cgd@google.com>
75         * lexsup.c (option_values): Add OPTION_NO_EXPORT_DYNAMIC.
76         (ld_options): Likewise.
77         (parse_args): Likewise.
78         * ld.texinfo: Document --no-export-dynamic.
79         * NEWS: Mention --no-export-dynamic.
81 2009-04-29  Alan Modra  <amodra@bigpond.net.au>
83         * deffilep.y (STACKSIZE_K): Rename from STACKSIZE.
85 2009-04-25  Alan Modra  <amodra@bigpond.net.au>
87         PR 10061
88         * genscripts.sh: Don't pass $EMULATION_NAME as $CUSTOMIZER_SCRIPT
89         param.
91 2009-04-21  Daniel Jacobowitz  <dan@codesourcery.com>
93         * emultempl/armelf.em (bfd_for_interwork, arm_elf_after_open)
94         (arm_elf_set_bfd_for_interworking): Delete.
95         (arm_elf_before_allocation): Do not set the interworking BFD.
96         Move allocation inside not-dynamic block.
97         (arm_elf_create_output_section_statements): Create glue sections
98         and set the interworking BFD here.
99         (LDEMUL_AFTER_OPEN): Delete.
101 2009-04-16  Richard Sandiford  <r.sandiford@uk.ibm.com>
103         * ldlang.c (lang_one_common): Use bfd_define_common_symbol.
105 2009-04-15  Anthony Green  <green@moxielogic.com>
107         * configure.tgt: Add moxie support.
108         * Makefile.am: Add moxie files.
109         * Makefile.in: Rebuilt.
110         * emulparams/elf32moxie.sh: New file.
111         * scripttempl/moxie.sc: New file.
113 2009-04-15  Kazu Hirata  <kazu@codesourcery.com>
115         * ldlang.c: Do not include limits.h.
117 2009-04-14  Alan Modra  <amodra@bigpond.net.au>
119         PR ld/10047
120         * ldfile.c (find_scripts_dir): Use make_relative_prefix to find
121         ldscripts in build tree.  Don't repeat search for ../lib/ldscripts.
123 2009-04-13  H.J. Lu  <hongjiu.lu@intel.com>
125         * ldfile.c (ldfile_find_command_file): Revert the last change.
127 2009-04-11  H.J. Lu  <hongjiu.lu@intel.com>
129         PR ld/10047
130         * ldfile.c (ldfile_find_command_file): First try raw name.
132 2009-04-09  Nick Clifton  <nickc@redhat.com>
134         PR 9824
135         * ld.texinfo (Output Section Constraint): New node.  Documents the
136         ONLY_IF_RO and ONLY_IF_RW constraints.
137         (Symbolic Constants): New node.  Documents the CONSTANT operator.
139 2009-04-09  Thilo Fischer <thilo.fischer@uni-muenster.de>
141         * emultempl/spuelf.em (embedded_spu_file): Use pex_one in place
142         of fork/execvp.
144 2009-04-08  H.J. Lu  <hongjiu.lu@intel.com>
146         * lexsup.c (option_values): Add OPTION_WARN_ALTERNATE_EM.
147         (ld_options): Likewise.
148         (parse_args): Likewise.
150         * ld.texinfo: Document --warn-alternate-em.
152         * NEWS: Mention --warn-alternate-em.
154 2009-04-07  DJ Delorie  <dj@redhat.com>
156         * emulparams/elf32mep.sh: Change default endian to little.
158 2009-04-07  Nick Clifton  <nickc@redhat.com>
160         * ld.texinfo (Output Section Address): Note that specifying an
161         address for an output section will only change the location
162         counter if the output section is used.
164 2009-04-06  Kazu Hirata  <kazu@codesourcery.com>
166         * ldfile.c (ldfile_find_command_file): Initialize result.
168 2009-04-06  Kazu Hirata  <kazu@codesourcery.com>
170         * ld.texinfo (-L): Mention that -L options do not affect how ld
171         searches for a linker script unless -T option is specified.
172         * ldfile.c (ldfile_find_command_file): Append the path obtained
173         from the program name to the search path instead of
174         prepending. Add a new parameter "default_only". Restrict the
175         search to the default script location if the new parameter is
176         true.
177         (ldfile_open_command_file_1): New.
178         (ldfile_open_command_file): Call ldfile_open_command_file_1.
179         (ldfile_open_default_command_file): New.
181 2009-04-03  Nathan Sidwell  <nathan@codesourcery.com>
183         * ldlang.c (lang_leave_output_section_statement): Set lma_region
184         if it is not overridden and section is for the same vma region as
185         the previous section.
187 2009-04-02  Dave Korn  <dave.korn.cygwin@gmail.com>
189         PR ld/6744
190         * ld.texinfo (--export-dynamic):  Mention --export-all-symbols.
191         * emultempl/pe.em (gld_${EMULATION_NAME}_after_parse):  Issue
192         warning if --export-dynamic was passed on command-line.
193         * emultempl/pep.em (gld_${EMULATION_NAME}_after_parse):  Likewise.
195 2009-04-01  Richard Sandiford  <r.sandiford@uk.ibm.com>
197         * emultempl/aix.em (gld${EMULATION_NAME}_open_dynamic_archive): New
198         function.
199         (ld_${EMULATION_NAME}_emulation): Use it.
201 2009-03-20  H.J. Lu  <hongjiu.lu@intel.com>
203         PR ld/9970
204         * ldlang.c (lang_end): Warn missing entry symbol for -pie.
206 2009-03-19  Alan Modra  <amodra@bigpond.net.au>
208         * emultempl/spuelf.em (spu_before_allocation): Report errors from
209         spu_elf_find_overlays.
211 2009-03-18  H.J. Lu  <hongjiu.lu@intel.com>
213         PR ld/6766
214         * lexsup.c (parse_args): Call ldlang_add_undef for -e.
216 2009-03-18  Alan Modra  <amodra@bigpond.net.au>
218         * ld.h: Remove alloca handling.
220 2009-03-17  Alan Modra  <amodra@bigpond.net.au>
222         * emultempl/spu_icache.S: Add new entry to dummy handler.
223         * emultempl/spu_icache.o_c: Regenerate.
224         * emultempl/spuelf.em (params): Init new field.
225         (no_overlays): New static var.
226         (spu_before_allocation): Use it.
227         (OPTION_SPU_COMPACT_STUBS): Define.
228         (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add compact-stubs.
229         (PARSE_AND_LIST_ARGS_CASES): Handle compact-stubs.  Adjust no-overlays
230         handling.
232 2009-03-17  Alan Modra  <amodra@bigpond.net.au>
234         * configure.host (HOSTING_LIBS): Two dollars on shell variable
235         expansion to suit make.
237 2009-03-17  Alan Modra  <amodra@bigpond.net.au>
239         * configure.in: Invoke ACX_PROG_CMP_IGNORE_INITIAL.
240         * Makefile.am (check-DEJAGNU): Set DO_COMPARE.
241         * aclocal.m4: Regenerate.
242         * configure: Regenerate.
243         * Makefile.in: Regenerate.
245 2009-03-14  Richard Sandiford  <r.sandiford@uk.ibm.com>
247         * emultempl/aix.em (auto_export_flags): New variable.
248         (explicit_auto_export_flags): Likewise.
249         (OPTION_EXPALL, OPTION_EXPFULL): New enum values.
250         (OPTION_NOEXPALL, OPTION_NOEXPFULL): Likewise.
251         (gld${EMULATION_NAME}_add_options): Add -bexpall, -bexpfull,
252         -bnoexpall and -bnoexpfull.
253         (gld${EMULATION_NAME}_handle_option): Handle them.
254         (gld${EMULATION_NAME}_before_allocation): Update the call to
255         bfd_size_dynamic_sections.
257 2009-03-14  Richard Sandiford  <r.sandiford@uk.ibm.com>
259         * emultempl/aix.em (gld${EMULATION_NAME}_handle_option): Make
260         -berok and -bernotok control link_info.unresolved_syms_in_objects
261         and link_info.unresolved_syms_in_shared_libs instead of
262         force_make_executable.
264 2009-03-14  Richard Sandiford  <r.sandiford@uk.ibm.com>
266         * emultempl/aix.em (gld${EMULATION_NAME}_before_parse): Set
267         config.dynamic_link to TRUE.
269 2009-03-14  Richard Sandiford  <r.sandiford@uk.ibm.com>
271         * emultempl/aix.em (gld${EMULATION_NAME}_before_allocation): Mark
272         .text, .data and .bss output sections as SEC_KEEP.
274 2009-03-14  Richard Sandiford  <r.sandiford@uk.ibm.com>
276         * configure.tgt: Extend AIX 5 behavior to AIX 6 and above.
278 2009-03-14  Dave Korn  <dave.korn.cygwin@gmail.com>
279             Danny Smith  <dannysmith@users.sourceforge.net>
281         * emultmpl/pe.em (pe_dll_characteristics): New variable.
282         (OPTION_DYNAMIC_BASE, OPTION_FORCE_INTEGRITY, OPTION_NX_COMPAT,
283         OPTION_NO_ISOLATION. OPTION_NO_SEH, OPTION_NO_BIND,
284         OPTION_WDM_DRIVER, OPTION_TERMINAL_SERVER_AWARE):
285         New macros for options to set DllCharacteristics flag bits.
286         (gld${EMULATION_NAME}_add_options): Add dynamicbase, forceinteg,
287         nxcompat, no-isolation, no-seh, no-bind, wdmdriver, tsaware options.
288         (init): Add DllCharacteristics field.
289         (gld_${EMULATION_NAME}_list_options): List new options.
290         (gld${EMULATION_NAME}_handle_option): Handle new options.
291         * emultmpl/pep.em (pe_dll_characteristics): New variable.
292         (OPTION_DYNAMIC_BASE, OPTION_FORCE_INTEGRITY, OPTION_NX_COMPAT,
293         OPTION_NO_ISOLATION. OPTION_NO_SEH, OPTION_NO_BIND,
294         OPTION_WDM_DRIVER, OPTION_TERMINAL_SERVER_AWARE):
295         New macros for options to set DllCharacteristics flags.
296         (gld${EMULATION_NAME}_add_options): Add dynamicbase, forceinteg,
297         nxcompat,no-isolation, no-seh, no-bind, wdmdriver, tsaware options.
298         (init): Add DllCharacteristics field.
299         (gld_${EMULATION_NAME}_list_options): List new options.
300         (gld${EMULATION_NAME}_handle_option): Handle new options.
301         * ldtexinfo : Document dynamicbase, forceinteg, nxcompat,
302         no-isolation, no-seh, no-bind, wdmdriver, tsaware options.
304 2009-03-06  Nick Clifton  <nickc@redhat.com>
306         * po/es.po: Updated Spanish translation.
308 2009-03-03  Dave Korn  <dave.korn.cygwin@gmail.com>
310         * emultempl/pe.em (debug_section_p):  New bfd_map_over_sections hook.
311         (gld_${EMULATION_NAME}_after_open):  Use it to iterate all sections
312         of all input BFDs, looking for debug info.  Enable long section names
313         if any found.
314         * emultempl/pe.em (debug_section_p):  Likewise.
315         (gld_${EMULATION_NAME}_after_open):  Likewise.
316         * NEWS:  Retrospectively adjust news announcement.
317         * ld.texinfo:  Update documentation to mention new behaviour.
319 2009-03-03  Alan Modra  <amodra@bigpond.net.au>
321         * Makefile.am: Run "make dep-am".
322         * Makefile.in: Regenerate.
324 2009-03-02  Sebastian Huber  <sebastian.huber@embedded-brains.de>
326         * ldgram.y: Add support for REGION_ALIAS operator.
327         * ldlang.c: Likewise.
328         * ldlang.h: Likewise.
329         * ldlex.l: Likewise.
330         * NEWS: Mention the new feature.
331         * ld.texinfo: Document the new feature.
333 2009-03-02  Qinwei  <qinwei@sunnorth.com.cn>
335         * Makefile.am: Replace score elf emulation with score3 and score7
336         emulations.
337         * Makefile.in: Regenerate,
338         * NEWS: Mention support for Score7 architecture.
339         * configure.tgt: Add score7 emulation to score-elf target.
340         * emulparams/scoreelf.sh: Add score7 support.
341         * emultempl/scoreelf.em: Likewise.
343 2009-03-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
345         * configure.tgt: Only use elf64hppa target emulation for hpux.
346         * emulparams/elf64hppa.sh: Don't include hppa64linux.sh.
347         (SCRIPT_NAME): Use new script elf64hppa.
348         (SCRIPT_NAME, ELFSIZE, NO_REL_RELOCS, ARCH, MACHINE, ENTRY,
349         TEMPLATE_NAME, GENERATE_SHLIB_SCRIPT, OTHER_READONLY_SECTIONS,
350         OTHER_READWRITE_SECTIONS, OTHER_BSS_SECTIONS, OTHER_GOT_RELOC_SECTIONS,
351         DATA_START_SYMBOLS, OTHER_SYMBOLS, DATA_PLT, PLT_BEFORE_GOT,
352         TEXT_DYNAMIC): Define.
353         * emulparams/hppa64linux.sh: Adjust comments.
354         * scripttempl/elf64hppa.sc: New file.
356 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
358         * configure: Regenerate.
360 2009-02-27  Dave Korn  <dave.korn.cygwin@gmail.com>
362         * emultempl/pe.em (gld_${EMULATION_NAME}_before_parse):  Set
363         default state of auto-import flag based on $target.
365 2009-02-24  Joseph Myers  <joseph@codesourcery.com>
367         * ld.texinfo (ARM): Document changed meaning of --stub-group-size.
368         * emultempl/armelf.em (hook_in_stub): Insert after the input section.
369         (elf32_arm_add_stub_section): Update comment.
370         (PARSE_AND_LIST_OPTIONS): Update help for --stub-group-size.
372 2009-02-24  Sandra Loosemore  <sandra@codesourcery.com>
374         * ld.texinfo (Options): Correct typos in example.  Recommend
375         using joined forms of syntax for passing options with arguments 
376         from a driver.
377         (-a): Use consistent syntax for documenting option arguments.
378         Clean up indexing and markup.
379         (-A/--architecture): Likewise.
380         (-f/--auxiliary): Likewise.
381         (-F/--filter): Likewise.
382         (-fini): Likewise.
383         (-G/--gpsize): Likewise.
384         (-h/-soname):Likewise.
385         (-init): Likewise.
386         (-l/--library): Likewise.
387         (-L/--library-path): Likewise.
388         (-m): Likewise.
389         (--defsym): Likewise.
390         (-I/--dynamic-linker): Likewise.
391         (-Map): Likewise.
392         (--oformat): Likewise.
393         (--retain-symbols-file): Likewise.
394         (-rpath): Likewise.
395         (-rpath-link): Likewise.
396         (--sort-common): Likewise.
397         (--sort-section): Likewise.
398         (--split-by-file): Likewise.
399         (--split-by-reloc): Likewise.
400         (--sysroot): Likewise.
401         (--section-start): Likewise.
402         (-Tbss, -Tdata, -Ttext): Likewise.
403         (-Ttext-segment): Likewise.
404         (--version-script): Likewise.
405         (--wrap): Likewise.
407 2009-02-18  Dave Korn  <dave.korn.cygwin@gmail.com>
409         * ld.texinfo:  Update to mention long section name options.
410         * NEWS:  Mention new behaviour and command-line options.
411         * pe-dll.c (pe_use_coff_long_section_names):  New global variable.
412         (pe_output_file_set_long_section_names):  New function.
413         (pe_dll_build_sections):  Call it on output BFDs.
414         (pe_exe_build_sections):  Likewise.
415         (pe_dll_fill_sections):  Likewise.
416         (pe_exe_fill_sections):  Likewise.
417         * pe-dll.h (pe_use_coff_long_section_names):  Declare extern.
418         (pe_output_file_set_long_section_names):  Add prototype.
419         * pep-dll.c (pe_use_coff_long_section_names):  Define pep_ alias.
420         (pe_output_file_set_long_section_names):  Likewise.
421         * pep-dll.h (pep_use_coff_long_section_names):  Declare extern.
422         (pep_output_file_set_long_section_names):  Add prototype.
423         * pe.em (OPTION_ENABLE_LONG_SECTION_NAMES):  New getopt value macro.
424         (OPTION_DISABLE_LONG_SECTION_NAMES):  Likewise.
425         (gld${EMULATION_NAME}_add_options):  Add new options to xtra_long[].
426         (gld_${EMULATION_NAME}_list_options):  Describe them.
427         (gld${EMULATION_NAME}_handle_option):  Set or clear global
428         pe_use_coff_long_section_names flag when options recognised.
429         (gld_${EMULATION_NAME}_after_open):  En/disable long section names
430         for main output bfd by calling pe_output_file_set_long_section_names.
431         * pep.em (enum options):  Extend enum with new getopt option values.
432         (gld${EMULATION_NAME}_add_options):  Add new options to xtra_long[].
433         (gld_${EMULATION_NAME}_list_options):  Describe them.
434         (gld${EMULATION_NAME}_handle_option):  Set or clear global
435         pe_use_coff_long_section_names flag when options recognised.
436         (gld_${EMULATION_NAME}_after_open):  En/disable long section names
437         for main output bfd by calling pep_output_file_set_long_section_names.
439 2009-02-16  Dave Korn  <dave.korn.cygwin@gmail.com>
441         * emultempl/pe.em (gld_${EMULATION_NAME}_after_open):  Don't emit
442         inadvertent .reloc sections caused by refactoring accident.
444 2009-02-16  Alan Modra  <amodra@bigpond.net.au>
446         * ldlang.c (process_insert_statements): ASSERT that output section
447         statements are in order.
449 2009-02-16  Alan Modra  <amodra@bigpond.net.au>
451         * ldlang.c (push_stat_ptr, pop_stat_ptr): New functions.
452         (stat_save, stat_save_ptr): New variables.
453         (lang_insert_orphan): Use push_stat_ptr and pop_stat_ptr.
454         (load_symbols): Likewise.  Delete dead "bad_load" code.
455         (open_input_bfds): Warn on script containing output sections.
456         (lang_enter_output_section_statement): Use push_stat_ptr.
457         (lang_enter_group): Likewise.
458         (lang_leave_output_section_statement): Use pop_stat_ptr.
459         (lang_leave_group): Likewise.
460         * ldlang.h (push_stat_ptr, pop_stat_ptr): Declare.
461         * ldctor.c (ldctor_build_sets): Use push_stat_ptr and pop_stat_ptr.
462         * emultempl/beos.em (gld_${EMULATION_NAME}_set_symbols): Likewise.
463         * emultempl/pe.em (gld_${EMULATION_NAME}_set_symbols): Likewise.
464         * emultempl/pep.em (gld_${EMULATION_NAME}_set_symbols): Likewise.
465         * emultempl/spuelf.em (spu_place_special_section): Likewise.
466         * emultempl/xtensaelf.em (ld_xtensa_insert_page_offsets): Likewise.
468 2009-02-09  Nathan Sidwell  <nathan@codesourcery.com>
470         Missing piece of 2009-01-26 commit
471         * ldlang.c (lang_process): Don't consider relocatable flag when
472         checking for overlap.
474 2009-02-05  Joseph Myers  <joseph@codesourcery.com>
476         * emulparams/m68kelf.sh: Add newline at end of file.
478 2009-02-04  Nick Clifton  <nickc@redhat.com>
480         PR 9805
481         * ld.texinfo (--allow-shlib-undefined): Correct description of
482         default settings and tidy up the rest of the entry.
484 2009-02-04  Alan Modra  <amodra@bigpond.net.au>
486         * emultempl/spuelf.em (spu_after_open): Don't combine .text.ia.*
487         during relocatable link.
489 2009-02-03  Nick Clifton  <nickc@redhat.com>
491         PR 9797
492         * ld.texinfo (Constants): Document the base-encoding suffixes
493         supported in linker scripts.
495 2009-02-03  Alan Modra  <amodra@bigpond.net.au>
497         * NEWS: Mention --as-needed change.
499 2009-02-03  Carlos O'Donell  <carlos@codesourcery.com>
501         * configure.in: AC_SUBST pdfdir.
502         * Makefile.am: Add install-pdf, install-pdf-am,
503         and install-pdf-recursive targets. Define pdf__strip_dir.
504         * po/Make-in: Add install-pdf target.
505         * configure: Regenerate.
506         * Makefile.in: Regenerate.
508 2009-01-31  Alan Modra  <amodra@bigpond.net.au>
510         * ld.texinfo (--as-needed): Update.
512 2009-01-29  Andrew Jenner  <andrew@codesourcery.com>
514         * emultempl/armelf.em: Correct formatting of help text for
515         --no-enum-size-warning option.
517 2009-01-26  Nathan Sidwell  <nathan@codesourcery.com>
519         * lexsup.c (parse_args): Set check_section_addresses to 1 or 0.
520         * ld.h (args_type): Make check_section_addresses a char.
521         * ldmain.c (main): Default check_section_addresses to -1. Check it
522         for relocatable links.
523         * ld.texinfo (--check-sections): Update documentation.
525 2009-01-26  Kai Tietz  <kai.tietz@onevision.com>
527         * pe-dll.c (tmp_seq2): New static variable.
528         (make_singleton_name_imp): New.
529         (make_import_fixup_entry): Use for v2 the _imp_<name> symbol and
530         avoid duplicate import table generation for same symbol.
531         (pe_create_runtime_relocator_reference): Make reference for
532         64-bit 8 bytes.
534 2009-01-21  Alan Modra  <amodra@bigpond.net.au>
536         * emultempl/spuelf.em (params): Init new field.
537         (OPTION_SPU_NON_IA_TEXT): Define.
538         (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add --non-ia-text.
539         (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_SPU_NON_IA_TEXT.
541 2009-01-16  H.J. Lu  <hongjiu.lu@intel.com>
543         * lexsup.c (option_values): Add OPTION_TTEXT_SEGMENT.
544         (ld_options): Add -Ttext-segment.
545         (parse_args): Handle OPTION_TTEXT_SEGMENT.
547         * ld.texinfo: Document -Ttext-segment.
549         * NEWS: Mention -Ttext-segment.
551         * scripttempl/elf.sc (TEXT_START_ADDR): Use SEGMENT_START.
552         (SHLIB_TEXT_START_ADDR): Likewise.
554 2009-01-13  Alan Modra  <amodra@bigpond.net.au>
556         * emultempl/spu_icache.o_c: Regenerate.
558 2009-01-12  Alan Modra  <amodra@bigpond.net.au>
560         * emultempl/spuelf.em (params): Init new fields.
561         (num_lines_set, line_size_set, icache_mgr, icache_mgr_stream): New vars.
562         (spu_place_special_section): Adjust placement for soft-icache.  Pad
563         soft-icache section to a fixed size.  Clear addr_tree.
564         (spu_elf_load_ovl_mgr): Support soft-icache.  Map overlay manager
565         sections a little more intelligently.
566         (gld${EMULATION_NAME}_finish): Don't call spu_elf_build_stubs.
567         (OPTION_SPU_NUM_LINES): Rename from OPTION_SPU_NUM_REGIONS.
568         (OPTION_SPU_SOFT_ICACHE, OPTION_SPU_LINE_SIZE): Define.
569         (OPTION_SPU_LRLIVE): Define.
570         (PARSE_AND_LIST_LONGOPTS): Add new soft-icache options.
571         (PARSE_AND_LIST_OPTIONS): Likewise.
572         (PARSE_AND_LIST_ARGS_CASES): Handle them.
573         * emultempl/spu_icache.S: Dummy file.
574         * emultempl/spu_icache.o_c: Regenerate.
575         * Makefile.am (eelf32_spu.c): Depend on spu_icache.o_c.
576         (spu_icache.o_c): Add rule to build.
577         (CLEANFILES): Zap temp files.
578         (EXTRA_DIST): Add spu_icache.o_c.
579         * Makefile.in: Regenerate.
581 2009-01-08  Kai Tietz  <kai.tietz@onevision.com>
583         * pe.em (OPTION_USE_NUL_PREFIXED_IMPORT_TABLES): New.
584         (gld..._add_options): Add new option
585         --use-nul-prefixed-import-tables.
586         (gld..._handle_option): Likewise.
587         * pep.em: Same as for pe.em.
588         * ld.texinfo: Add new option documentation for
589         --use-nul-prefixed-import-tables.
590         * pe-dll.c (pe_use_nul_prefixed_import_tables): New.
591         (make_head): Make prefix leading zero prefix element for
592         idata$4 and idata$5 dependent to new flag.
593         (make_import_fixup_entry): Remove idata4/5 prefix.
594         * pe-dll.h (pe_use_nul_prefixed_import_tables): New.
595         * pep-dll.c (pe_use_nul_prefixed_import_tables): New.
596         * pep-dll.h (pep_use_nul_prefixed_import_tables): New.
597         * NEWS: Add new option.
599 2009-01-05  Kai Tietz  <kai.tietz@onevision.com>
601         * emultempl/pe.em: Prefix dollar characters to be outputed in
602         generated C file.
603         * emultempl/pep.em: Likewise.
605 2009-01-03  Dave Korn  <dave.korn.cygwin@gmail.com>
607         * NEWS:  Mention new feature --exclude-modules-for-implib.
608         * ld.texinfo:  Document new --exclude-modules-for-implib option.
609         * pe-dll.c (exclude_list_struct):  Change type member from int to
610         new enumeration exclude_type.
611         (pe_dll_add_excludes):  Accept exclude_type instead of int param.
612         (auto_export):  Replace magic constants by exclude_type values and
613         handle new choice EXCLUDEFORIMPLIB.
614         (pe_dll_generate_implib):  Accept a pointer to the link_info and
615         iterate all input BFDs looking for EXCLUDEFORIMPLIB modules; re-open
616         fresh BFDs for any found and link into import lib archive chain.
617         * pe-dll.h (exclude_type):  Add new enumerated type to replace magic
618         constants previously used for exclude_list_struct type member.
619         (pe_dll_add_excludes, pe_dll_generate_implib):  Update prototypes.
620         * pep-dll.h (exclude_type, pe_dll_add_excludes,
621         pe_dll_generate_implib):  Likewise to all the above.
622         * emultempl/pe.em (OPTION_EXCLUDE_MODULES_FOR_IMPLIB):  Define new
623         getopts long option code for new --exclude-modules-for-implib option.
624         (gld${EMULATION_NAME}_add_options):  Add new entry to xtra_long[].
625         (gld_${EMULATION_NAME}_list_options):  List usage for it.
626         (gld${EMULATION_NAME}_handle_option):  Use exclude_type enumerated
627         values when calling pe_dll_add_excludes, and handle EXCLUDEFORIMPLIB.
628         (gld_${EMULATION_NAME}_finish):  Pass pointer to link_info when
629         calling pe_dll_generate_implib.
630         * emultempl/pep.em (options):  Define new enumerated value for getopts
631         long option code for new --exclude-modules-for-implib option.
632         (gld${EMULATION_NAME}_add_options, gld_${EMULATION_NAME}_list_options,
633         gld${EMULATION_NAME}_handle_option, gld_${EMULATION_NAME}_finish):
634         Again, likewise to all the above.
636 2009-01-03  Dave Korn  <dave.korn.cygwin@gmail.com>
638         * pe-dll.c (autofilter_liblist):  Add entry for shared libgcc.
639         (libnamencmp):  New function.
640         (auto_export):  Use it in place of strncmp when filtering libraries.
642 For older changes see ChangeLog-2008
644 Local Variables:
645 mode: change-log
646 left-margin: 8
647 fill-column: 74
648 version-control: never
649 End: