OSDN Git Service

Fix typo: "Dimitry" should be "Dmitry"
[pf3gnuchains/pf3gnuchains3x.git] / ld / ChangeLog
1 2009-11-30  Alan Modra  <amodra@bigpond.net.au>
2
3         PR ld/11006
4         * lexsup.c (parse_args): Allow nested --start-group, --end-group.
5
6 2009-11-27  Tristan Gingold  <gingold@adacore.com>
7
8         * pe-dll.c (pe_implied_import_dll): Return early if there is no
9         export entries.
10
11 2009-11-26  Nick Clifton  <nickc@redhat.com>
12
13         PR ld/10956
14         * ld.h (struct args_type): Rename 'relax' field to
15         'disable_target_specific_optimizations' and turn it into a
16         tri-state variable.
17         (RELAXATION_DISABLED_BY_DEFAULT): New macro.
18         (RELAXATION_DISABLED_BY_USER): New macro.
19         (RELAXATION_ENABLED): New macro.
20         (DISABLE_RELAXATION): New macro.
21         (ENABLE_RELAXATION): New macro.
22         * lexsup (enum option_values): Add OPTION_NO_RELAX.
23         (struct ld_options): Add --no-relax.
24         (parse_args): Handle OPTION_NO_RELAX.  Use DISABLE_RELAXATION and
25         ENABLE_RELAXATION macros.
26         * ldlang.c (lang_relax_sections): Use RELAXATION_ENABLED macro.
27         (lang_process): Likewise.
28         * ldmain.c (main): Initialise
29         disable_target_specific_optimizations field.
30         (multiple_definition): Use RELAXATION_ENABLED macro.
31         * ld.texinfo: Document new command line option.
32         * emultempl/alphaelf.em: Remove --no-relax option.
33         (before_allocation): Test RELAXATION_DISABLED_BY_USER macro.
34         Use ENABLE_RELAXATION macro.
35         * emultempl/avrelf.em: (after_allocation): Test RELAXATION_ENABLED
36         macro.
37         * emultempl/cr16elf.em: Remove --no-relax option.
38         (before_allocation): Test RELAXATION_DISABLED_BY_USER macro.
39         Use ENABLE_RELAXATION macro.
40         * emultempl/crxelf.em: Remove --no-relax option.
41         (before_allocation): Test RELAXATION_DISABLED_BY_USER macro.
42         Use ENABLE_RELAXATION macro.
43         * emultempl/mmix-elfnmmo.em: (before_allocation): Use
44         ENABLE_RELAXATION macro.
45         * emultempl/needrelax.em: (before_allocation): Use
46         ENABLE_RELAXATION macro.
47         * emultempl/ppc32elf.em: (before_allocation): Test
48         RELAXATION_DISABLED_BY_DEFAULT macro. Use
49         ENABLE_RELAXATION macro.
50         * emultempl/sh64elf.em: (before_allocation): Test
51         RELAXATION_ENABLED macro. Use DISABLE_RELAXATION macro.
52         * emultempl/xtensaelf.em: Remove --no-relax option.
53         (before_allocation): Test RELAXATION_ENABLED macro.
54         Use ENABLE_RELAXATION macro.
55         
56 2009-11-25  Kai Tietz  <kai.tietz@onevision.com>
57
58         * scripttempl/pe.sc: (.note.GNU-stack): Mark as discardable.
59         (.gnu.lto_*): Likewise.
60         * scripttempl/pep.sc: (.note.GNU-stack): Mark as discardable.
61         (.gnu.lto_*): Likewise.
62
63 2009-11-23  Paul Brook  <paul@codesourcery.com>
64
65         * ldexp.c: Copy symbol type for simple assignments.
66
67 2009-11-20  Thomas Schwinge  <thomas@codesourcery.com>
68
69         * emulparams/armelf.sh (OTHER_READONLY_SECTIONS)
70         <__exidx_start, __exidx_end>: Use PROVIDE_HIDDEN.
71         * emulparams/armelf_linux_eabi.sh (OTHER_READONLY_SECTIONS)
72         <__exidx_start, __exidx_end>: Likewise.
73         * emulparams/armsymbian.sh (OTHER_READONLY_SECTIONS)
74         <.ARM.exidx$$Base, __exidx_start, __exidx_end, .ARM.exidx$$Limit>:
75         Likewise.
76
77 2009-11-19  Matthias Klose  <doko@ubuntu.com>
78
79         PR ld/9863
80         * emulparams/armelf_linux.sh (DATA_START_SYMBOLS): Use PROVIDE
81         with __data_start.
82
83 2009-11-19  Ben Elliston  <bje@au.ibm.com>
84
85         * ldlex.l: Enable nounput flex option.
86
87 2009-11-15  Kai Tietz  <kai.tietz@onevision.com>
88
89         * pe-dll.c (pe_undef_alias_cdecl_match): New function.
90         (pe_find_cdecl_alias_match): New function.
91         (pe_process_import_defs): Add matching for import symbols
92         declared as cdecl for fastcall/stdcall.
93         * emultempl/pe.em (pe_undef_cdecl_match): Treat fastcall
94         symbols, too.
95         (pe_fixup_stdcalls): Likewise.
96         (gld_XXX_after_open): Redo scanning for imported
97         fastcall/stdcall symbols as cdecl one.
98         * emultempl/pep.em (pep_undef_cdecl_match): Treat fastcall
99         symbols, too.
100         (pep_fixup_stdcalls): Likewise.
101         (gld_XXX_after_open): Redo scanning for imported
102         fastcall/stdcall symbols as cdecl one.
103
104 2009-11-11  Nick Clifton  <nickc@redhat.com>
105
106         * po/id.po: Updated Indonesian translation.
107
108 2009-11-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
109
110         * configure.in: Call ACX_LARGEFILE.  Stop calling AC_SYS_LARGEFILE.
111         * aclocal.m4: Regenerate.
112         * configure: Regenerate.
113
114 2009-11-10  Nick Clifton  <nickc@redhat.com>
115
116         PR ld/10864
117         * ld.texinfo (Entry Point): Mention that the default entry symbol
118         is not 'start' on some targets.
119
120 2009-11-06  H.J. Lu  <hongjiu.lu@intel.com>
121
122         PR ld/10912
123         * ldmain.c (add_DT_NEEDED_for_dynamic): Default to TRUE.
124
125 2009-11-06  Kai Tietz  <kai.tietz@onevision.com>
126
127         * pe.em (DEFAULT_PSEUDO_RELOC_VERSION): New macro.
128         (gld_XXX_before_parse): Set pseudo-relocation default
129         version to DEFAULT_PSEUDO_RELOC_VERSION.
130         (gldXXX_handle_option): Likewise.
131
132
133 2009-11-05  Nick Clifton  <nickc@redhat.com>
134
135         * lexsup.c: Rename --add-needed to --copy-dt-needed-entries.
136         * ldlang.h (struct lang_input_statement_struct): Rename add_needed
137         to add_DT_NEEDED_for_dynamic.  Rename as_needed to
138         add_DT_NEEDED_for_regular.
139         * ldlang.c: Likewise.
140         * ldlang.h: Likewise.
141         * ldlang.c: Use the new variable names.
142         * ldgram.y: Likewise.
143         * emultempl/elf32.em: Likewise.
144         * ld.texinfo: Document the renamed option.  Also mention its
145         affect on the resolution of dynamic symbols.
146         * NEWS: Mention the changed option name.
147
148 2009-11-04  Kai Tietz  <kai.tietz@onevision.com>
149
150         * emulparams/arm_epoc_pe.sh: Remove ENTRY.
151         * emulparams/arm_wince_pe.sh: Likewise.
152         * emulparams/i386pe.sh: Likewise.
153         * emulparams/i386pe_posix.sh: Likewise.
154         * emulparams/mcorepe.sh: Likewise.
155         * emulparams/mipspe.sh: Likewise.
156         * emulparams/ppcpe.sh: Likewise.
157         * emulparams/armpe.sh: Likewise.
158         * emulparams/i386pep.sh: Likewise.
159         * emulparams/shpe.sh: Likewise.
160         Additionally cleaned up double-defined
161         variables SUBSYSTEM and INITIAL_SYMBOL_CHAR.
162         * emultempl/pe.em: Remove use of ENTRY.
163         (pe_subsystem): New local variable.
164         (gld_XXX_before_parse): Don't set default
165         entry point here.
166         (set_entry_point): New function to set entry
167         point.
168         (set_pe_subsystem): Remove code for entry point.
169         (gld_XXX_after_parse): Use set_entry_point here.
170         * emultempl/pep.em: Likewise.
171
172 2009-10-29  Nathan Sidwell  <nathan@codesourcery.com>
173
174         * emulparams/vxworks.sh (OTHER_READONLY_SECTIONS): Move into ...
175         (OTHER_READWRITE_SECTIONS): ... here.
176
177 2009-10-28  Kai Tietz  <kai.tietz@onevision.com>
178
179         * emultempl/pep.em (U): Define underscore macro.
180         (init): Use for __ImageBase U macro.
181
182 2009-10-23  Kai Tietz  <kai.tietz@onevision.com>
183
184         * deffile.h (def_file_export): New member its_name.
185         (def_file_import): Likewise.
186         (def_file_add_export): Add argument its_name.
187         (def_file_add_import): Likewise.
188         * deffilep.y (def_exports): Add argument its_name.
189         (def_import): Likewise.
190         (EQUAL): Add new token for '=='.
191         (opt_equalequal_name): New rule.
192         (expline): Add rule opt_equalequal_name.
193         (impline): Likewise.
194         (def_file_free): Free for exports and imports
195         the optional member its_name.
196         (def_lex): Add scan of '==' as EQUAL.
197         * pe-dll.c (pe_export_sort): Sort for its_name too.
198         (process_def_file_and_drectve): Adjust calls to
199         def_file_add_export.
200         (generate_edata): Take its_name in account.
201         (make_one): Likewise.
202         (pe_process_import_defs): Likewise.
203         (pe_dll_generate_def_file): Add print of new '==' option.
204         * ld.texinfo: Extend documentation about .def file syntax.
205         * NEWS: Mention new feature.
206
207 2009-10-23  Kai Tietz  <kai.tietz@onevision.com>
208
209         * deffilep.y (def_lex): Allow '<' and '>' characters in identifier
210         strings.
211
212 2009-10-23  Ryan Mansfield  <rmansfield@qnx.com>
213
214         PR ld/10489
215         * emultempl/elf32.em (gld${EMULATION_NAME}_search_needed): Handle
216         drive specifiers for DOS based filesystems in rpath-link strings.
217
218 2009-10-19  Nick Clifton  <nickc@redhat.com>
219
220         * Makefile.am: Remove spurious sanitization marker.
221         * Makefile.in: Regenerate.
222
223 2009-10-16  Dmitry Gorbachev  <d.g.gorbachev@gmail.com>
224
225         * emultempl/pe.em (OPTION_EXCLUDE_ALL_SYMBOLS): New macro.
226         (gld${EMULATION_NAME}_add_options): Add new --exclude-all-symbols option
227         to exclude all symbols from automatic export.
228         (gld_${EMULATION_NAME}_list_options): Describe it.
229         (gld${EMULATION_NAME}_handle_option): Handle it.
230         * emultempl/pep.em: Likewise to all the above.
231         * pe-dll.c (pe_dll_exclude_all_symbols): New variable.
232         (process_def_file_and_drectve): Use it.
233         * pe-dll.h (pe_dll_exclude_all_symbols): Declare.
234         * pep-dll.c (pep_dll_exclude_all_symbols): Define pep_ alias.
235         * pep-dll.h (pe_dll_exclude_all_symbols): Declare.
236         * NEWS: Mention the new feature.
237         * ld.texinfo: Document the new command line switch.
238
239 2009-10-14  Andreas Schwab  <schwab@linux-m68k.org>
240
241         * ldlex.l (yy_input): Remove second argument and return the value
242         instead.
243         (YY_INPUT): Adjust.
244
245 2009-10-14  Alan Modra  <amodra@bigpond.net.au>
246
247         * emultempl/netbsd.em (gldnetbsd_before_parse): Typo fix.
248
249 2009-10-14  Ryan Mansfield  <rmansfield@qnx.com>
250
251         * ldlang.c (load_symbols): Set whole_archive from entry when
252         parsing a linker script.
253
254 2009-10-10  Alan Modra  <amodra@bigpond.net.au>
255
256         * scripttempl/elf32cr16.sc: Revert 2009-09-28 changes.
257         * scripttempl/elf32cr16c.sc: Likewise.
258         * scripttempl/elf32crx.sc: Likewise.
259         * scripttempl/tic54xcoff.sc: Likewise.
260         * scripttempl/aix.sc: Likewise.
261         * scripttempl/avr.sc: Likewise.
262         * scripttempl/elf32msp430.sc: Likewise.
263         * scripttempl/elf32msp430_3.sc: Likewise.
264         * scripttempl/elf32sh-symbian.sc: Likewise.
265         * scripttempl/elf_chaos.sc: Likewise.
266         * scripttempl/elfi370.sc: Likewise.
267         * scripttempl/nw.sc: Likewise.
268         * scripttempl/psos.sc: Likewise.
269         * scripttempl/armbpabi.sc: Likewise.
270         * scripttempl/elf.sc: Likewise.
271         * scripttempl/elf64hppa.sc: Likewise.
272         * scripttempl/elfd10v.sc: Likewise.
273         * scripttempl/elfd30v.sc: Likewise.
274         * scripttempl/elfm68hc11.sc: Likewise.
275         * scripttempl/elfm68hc12.sc: Likewise.
276         * scripttempl/elfmicroblaze.sc: Likewise.
277         * scripttempl/elfxtensa.sc: Likewise.
278         * scripttempl/iq2000.sc: Likewise.
279         * scripttempl/mep.sc: Likewise.
280         * scripttempl/xstormy16.sc: Likewise.
281
282 2009-10-09  Alan Modra  <amodra@bigpond.net.au>
283
284         PR ld/10749
285         * ldlang.c (lang_size_sections_1): Zero section vmas only for COFF.
286
287 2009-10-08  Alan Modra  <amodra@bigpond.net.au>
288
289         PR ld/10744
290         * ldlang.c (lang_new_phdr): Allow FILEHDR/PHDRS on more than the
291         first PT_LOAD header.
292         * ld.texinfo: Update.
293
294 2009-10-06  Nathan Sidwell  <nathan@codesourcery.com>
295
296         * ldlang.c (lang_new_phdr): Check PHDRS and FILEHDR in loadable
297         segments do not appear after a different loadable segment.
298         * ld.texinfo (PHDRS): Document order of processing segments.
299         Document where PHDRS and FILEHDR may appear.
300
301 2009-10-03  Alan Modra  <amodra@bigpond.net.au>
302
303         * emultempl/ppc32elf.em (emit_stub_syms): Init to -1.
304         (ppc_after_open): Set emit_stubs_syms by default when shared.
305         (OPTION_NO_STUBSYMS): Define.
306         (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS,
307         PARSE_AND_LIST_ARGS_CASES): Handle --no-emit-stub-syms.
308         * emultempl/ppc64elf.em (emit_stub_syms): Init to -1.
309         (gld${EMULATION_NAME}_finish): Set emit_stubs_syms by default.
310         (OPTION_NO_STUBSYMS): Define.
311         (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS,
312         PARSE_AND_LIST_ARGS_CASES): Handle --no-emit-stub-syms.
313
314 2009-09-29  Joel Sherrill <joel.sherrill@oarcorp.com>
315
316         * emulparams/m68kelf.sh (NOP): Use 0x4e71 (nop) rather than 0x4e75
317         (rts).
318
319 2009-09-29  DJ Delorie  <dj@redhat.com>
320
321         * Makefile.am: Add rules to build RX emulation.
322         * configure.tgt: Likewise.
323         * NEWS: Mention support for RX architecture.
324         * Makefile.in: Regenerate.
325         * emulparams/elf32rx.sh: New file.
326         * emultempl/rxelf.em: New file.
327
328 2009-09-29  Alan Modra  <amodra@bigpond.net.au>
329
330         * ldlang.c (lang_size_sections_1): Allow scripts to specify a
331         non-zero vma even when relocatable.
332
333 2009-09-28  Alan Modra  <amodra@bigpond.net.au>
334
335         * scripttempl/elf32cr16.sc: Emit empty script for ld -r and ld -Ur.
336         * scripttempl/elf32cr16c.sc: Likewise.
337         * scripttempl/elf32crx.sc: Likewise.
338         * scripttempl/tic54xcoff.sc: Likewise.
339         * scripttempl/aix.sc: Delete ${RELOCATING-0}.
340         * scripttempl/avr.sc: Likewise.
341         * scripttempl/elf32msp430.sc: Likewise.
342         * scripttempl/elf32msp430_3.sc: Likewise.
343         * scripttempl/elf32sh-symbian.sc: Likewise.
344         * scripttempl/elf_chaos.sc: Likewise.
345         * scripttempl/elfi370.sc: Likewise.
346         * scripttempl/nw.sc: Likewise.
347         * scripttempl/psos.sc: Likewise.
348         * scripttempl/armbpabi.sc: Delete ${RELOCATING-0} and ${CONSTRUCTING-0}.
349         * scripttempl/elf.sc: Likewise.
350         * scripttempl/elf64hppa.sc: Likewise.
351         * scripttempl/elfd10v.sc: Likewise.
352         * scripttempl/elfd30v.sc: Likewise.
353         * scripttempl/elfm68hc11.sc: Likewise.
354         * scripttempl/elfm68hc12.sc: Likewise.
355         * scripttempl/elfmicroblaze.sc: Likewise.
356         * scripttempl/elfxtensa.sc: Likewise.
357         * scripttempl/iq2000.sc: Likewise.
358         * scripttempl/mep.sc: Likewise.
359         * scripttempl/xstormy16.sc: Likewise.
360
361 2009-09-27  Christopher Faylor  <me+cygwin@cgf.cx>
362
363         PR ld/10634
364         * ldlang.c (lang_size_sections_1): Always force output vma to zero for
365         relocatable sections.
366         (lang_size_sections_1): Revert previous COFF-only accommodation for
367         relocatable sections.
368
369 2009-09-25  Martin Thuresson  <martint@google.com>
370
371         Update sources to make arm targets compile cleanly with
372         -Wc++-compat:
373         * emultempl/armelf.em: Add casts.
374
375 2009-09-23  Matt Rice  <ratmice@gmail.com>
376
377         * emultempl/elf32.em (gld${EMULATION_NAME}_add_options): Add --audit,
378         --depaudit, and -P options.
379         (gld${EULATION_NAME}_handle_options): Ditto.
380         (gld${EULATION_NAME}_list_options): Ditto.
381         (gld${EMULATION_NAME}_append_to_separated_string): New function for
382         handling rpath-like colon separated strings.
383         (gld${EMULATION_NAME}_before_allocation): Pass the audit and depaudit
384         libs to bfd.  Propagate DT_AUDIT from needed libs to depaudit.
385         * ld.texinfo: Document new options.
386
387 2009-09-23  Nick Clifton  <nickc@redhat.com>
388
389         * po/vi.po: Updated Vietnamese translation.
390
391 2009-09-22  Alan Modra  <amodra@bigpond.net.au>
392
393         * scripttempl/a29k.sc: Delete.
394         * scripttempl/ebmon29k.sc: Delete.
395         * scripttempl/m68klynx.sc: Delete.
396         * scripttempl/sa29200.sc: Delete.
397         * scripttempl/sparclynx.sc: Delete.
398
399 2009-09-21  Alan Modra  <amodra@bigpond.net.au>
400
401         * emultempl/ppc32elf.em (no_tls_get_addr_opt): New var.
402         (ppc_before_allocation): Pass to ppc_elf_tls_setup.
403         (OPTION_NO_TLS_GET_ADDR_OPT): Define.  Redefine other options in
404         terms of previous option.
405         (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add
406         --no-tls-get-addr-optimize.
407         (PARSE_AND_LIST_ARGS_CASES): Handle it.
408         * emultempl/ppc64elf.em (no_tls_get_addr_opt): New var.
409         (ppc_before_allocation): Pass to ppc64_elf_tls_setup.
410         (OPTION_NO_TLS_GET_ADDR_OPT): Define.
411         (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add
412         --no-tls-get-addr-optimize.
413         (PARSE_AND_LIST_ARGS_CASES): Handle it.
414
415 2009-09-18  Nick Clifton  <nickc@redhat.com>
416
417         * po/es.po: Updated Spanish translation.
418
419 2009-09-13  Alan Modra  <amodra@bigpond.net.au>
420
421         PR ld/6766
422         * lexsup.c (parse_args <-e>): Revert 2009-03-18 change.
423         * ldemul.c (after_parse_default): Add entry symbol as undef.
424         * emultempl/alphaelf.em (alpha_after_parse): Call after_parse_default.
425         * emultempl/cr16elf.em (cr16elf_after_parse): Likewise.
426         * emultempl/crxelf.em (crxelf_after_parse): Likewise.
427         * emultempl/hppaelf.em (hppaelf_after_parse): Likewise.
428         * emultempl/ia64elf.em (gld${EMULATION_NAME}_after_parse): Likewise.
429         * emultempl/pe.em (gld_${EMULATION_NAME}_after_parse): Call
430         after_parse_default and delete now duplicate code.
431         * emultempl/pep.em (gld_${EMULATION_NAME}_after_parse): Likewise.
432         * scripttempl/elf32cr16.sc: No need to make entry extern.
433         * scripttempl/elf32cr16c.sc: Likewise.
434         * scripttempl/elf32crx.sc: Likewise.
435         * scripttempl/elf32xc16xs.sc: Only provide ENTRY on final link.
436
437 2009-09-11  Nick Clifton  <nickc@redhat.com>
438
439         * po/ld.pot: Updated by the Translation project.
440         * po/fi.po: Updated Finnish translation.
441
442 2009-09-11  Martin Thuresson  <martint@google.com>
443
444         Updated sources to compile cleanly with -Wc++-compat:
445         * ld.h (enum endian_enum,enum symbolic_enum,enum
446         dynamic_list_enum): Move to top level.
447         * ldcref.c: Add casts.
448         * ldctor.c: Add casts.
449         * ldexp.c
450         * ldexp.h (enum node_tree_enum,enum phase_enum): Move to top level.
451         * ldlang.c: Add casts. (lang_insert_orphan): Use enum name instead
452         of integer.
453         * ldlang.h (enum statement_enum): Move to top level.
454         * ldmain.c: Add casts.
455         * ldwrite.c: Add casts.
456         * lexsup.c: Add casts. (enum control_enum): Move to top level.
457         * mri.c: Add casts. (mri_draw_tree): Use enum name instead of
458         integer.
459
460 2009-09-09  Alan Modra  <amodra@bigpond.net.au>
461
462         * scripttempl/aix.sc: Only provide ENTRY on final link.
463         * scripttempl/alpha.sc: Likewise.
464         * scripttempl/armcoff.sc: Likewise.
465         * scripttempl/crisaout.sc: Likewise.
466         * scripttempl/delta68.sc: Likewise.
467         * scripttempl/ebmon29k.sc: Likewise.
468         * scripttempl/elf32xc16x.sc: Likewise.
469         * scripttempl/elf32xc16xl.sc: Likewise.
470         * scripttempl/elfmicroblaze.sc: Likewise.
471         * scripttempl/epocpe.sc: Likewise.
472         * scripttempl/h8300.sc: Likewise.
473         * scripttempl/h8300h.sc: Likewise.
474         * scripttempl/h8300hn.sc: Likewise.
475         * scripttempl/h8300s.sc: Likewise.
476         * scripttempl/h8300sn.sc: Likewise.
477         * scripttempl/h8300sx.sc: Likewise.
478         * scripttempl/h8300sxn.sc: Likewise.
479         * scripttempl/hppaelf.sc: Likewise.
480         * scripttempl/i386beos.sc: Likewise.
481         * scripttempl/i386coff.sc: Likewise.
482         * scripttempl/i386go32.sc: Likewise.
483         * scripttempl/m68kaux.sc: Likewise.
484         * scripttempl/m68klynx.sc: Likewise.
485         * scripttempl/m88kbcs.sc: Likewise.
486         * scripttempl/maxqcoff.sc: Likewise.
487         * scripttempl/mcorepe.sc: Likewise.
488         * scripttempl/mips.sc: Likewise.
489         * scripttempl/ppcpe.sc: Likewise.
490         * scripttempl/sa29200.sc: Likewise.
491         * scripttempl/sparccoff.sc: Likewise.
492         * scripttempl/sparclynx.sc: Likewise.
493         * scripttempl/tic4xcoff.sc: Likewise.
494         * scripttempl/tic54xcoff.sc: Likewise.
495         * scripttempl/tic80coff.sc: Likewise.
496         * scripttempl/z8000.sc: Likewise.
497
498 2009-09-07  Tristan Gingold  <gingold@adacore.com>
499
500         * po/ld.pot: Regenerate.
501
502 2009-09-05  Martin Thuresson  <martin@mtme.org>
503
504         * emultempl/elf32.em (gld${EMULATION_NAME}_load_symbols,
505         gld${EMULATION_NAME}_try_needed): Rename variable class to
506         link_class.
507
508 2009-09-04  Tristan Gingold  <gingold@adacore.com>
509
510         * NEWS: Add marker for 2.20.
511
512 2009-09-04  Alan Modra  <amodra@bigpond.net.au>
513
514         * scripttempl/elf.sc (.text): Add cold text sections.
515
516 2009-09-04  Jie Zhang  <jie.zhang@analog.com>
517
518         * emulparams/elf32bfinfd.sh (OTHER_SECTIONS): Add .l2.text
519         and .l2.data.
520
521 2009-09-03  Dave Korn  <dave.korn.cygwin@gmail.com>
522
523         * scripttempl/pe.sc (.text): Add "*(.text.*)" in order to catch
524         new GCC hot/cold/unlikely partitions.
525         * scripttempl/pep.sc: Likewise.
526         * scripttempl/epocpe.sc: Likewise.
527         * scripttempl/mcorepe.sc: Likewise.
528         * scripttempl/ppcpe.sc: Likewise.
529
530 2009-09-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
531
532         * Makefile.am (ldgram.o, ldlex.o, deffilep.o): Supply correct
533         source file name for generated files which may be in $(srcdir).
534         * Makefile.in: Regenerate.
535
536 2009-09-01  H.J. Lu  <hongjiu.lu@intel.com>
537
538         * ldver.c (ldversion): Change to "Copyright 2009".
539
540 2009-09-01  Jie Zhang  <jie.zhang@analog.com>
541
542         * scripttempl/elf.sc: Add ${USER_LABEL_PREFIX} to _start, etext,
543         _stack and __bss_start.
544         * emulparams/bfin.sh (ENTRY): Remove.
545
546 2009-08-30  Alan Modra  <amodra@bigpond.net.au>
547
548         PR ld/10569
549         * ldexp.c (fold_name <MAXPAGESIZE>): Return config.maxpagesize.
550         (fold_name <COMMONPAGESIZE>): Similarly.
551         * ldlang.c (output_target): Make global.
552         * ldlang.h (output_target): Declare.
553         * ldmain.c (main): Set config.maxpagesize from bfd_emul_get_maxpagesize.
554         Similarly for config.commonpagesize.
555         * ldemul.c (set_output_arch_default): Call bfd_emul_set_maxpagesize
556         and bfd_emul_set_commonpagesize.
557         * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Don't call
558         bfd_emul_set_maxpagesize or bfd_emul_set_commonpagesize here.
559
560 2009-08-29  Martin Thuresson  <martin@mtme.org>
561
562         * ldexp.c (exp_intop, exp_bigintop, exp_relop, exp_binop)
563         (exp_trinop, exp_unop, exp_nameop, exp_assop): Rename variable new
564         to new_e.
565         * ldfile.c (ldfile_add_library_path): Rename variable new to
566         new_dirs. (ldfile_add_arch): Rename variable new to new_arch.
567         * ldlang.c (new_statement, lang_final, lang_add_wild)
568         (lang_target, lang_add_fill, lang_add_data, lang_add_assignment)
569         (lang_add_insert): Rename variable new to new_stmt. (new_afile):
570         Added missing cast. (lang_memory_region_lookup): Rename variable
571         new to new_region. (init_os): Rename variable new to
572         new_userdata. (lang_add_section): Rename variable new to
573         new_section. (ldlang_add_undef): Rename variable new to
574         new_undef. (realsymbol): Rename variable new to new_name.
575
576 2009-08-26  Nick Clifton  <nickc@redhat.com>
577
578         PR ld/10555
579         * emultempl/elf32.em (_after_open): Do not create a
580         .note.gnu-build-id section if there are no input files.
581
582 2009-08-24  Nick Clifton  <nickc@redhat.com>
583
584         * scripttempl/elfxtensa.sc (DISCARDED): Discard sections with
585         .gnu.lto_ prefix.
586         * scripttempl/armbpabi.sc: Likewise.
587         * scripttempl/elf32sh-symbian.sc: Likewise.
588         * scripttempl/elf64hppa.sc: Likewise.
589         * scripttempl/mep.sc: Likewise.
590
591 2009-08-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
592
593         * Makefile.am (ldmain.o, ldfile.o): Fix typos in non-fastdep
594         rules.
595         (eelf32_spu.o): Add dependency tracking.
596         * Makefile.in: Regenerate.
597
598         * Makefile.am (am__skiplex, am__skipyacc): New.
599         * Makefile.in: Regenerate.
600
601 2009-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
602
603         * Makefile.am (bin_PROGRAMS): Renamed from ...
604         (noinst_PROGRAMS): ... this.
605         (transform): Override, including the renaming of ld-new to ld.
606         (install-exec-local): Installation of ld in $(bindir) not needed
607         here any more.
608         (AM_CPPFLAGS): Renamed from ...
609         (INCLUDES): ... this.
610         (MAINTAINERCLEANFILES): Add ld.1.
611         * Makefile.in: Regenerate.
612
613         * Makefile.am (AUTOMAKE_OPTIONS): Remove cygnus.  Add
614         no-texinfo.tex, no-dist, foreign.
615         (TEXINFO_TEX): New variable.
616         (install-data-local): Removed, not needed any more.
617         (all): Dependencies upon info and ld.1 not needed any more.
618         (MKDEP, DEP, DEP1, dep.sed, dep, dep-in, dep-am): Removed.
619         (mkdep generated section): Removed.
620         (ldgram.o, ldlex.o, deffilep.o, ldmain.o, ldfile.o): Rewrite to
621         use automake dependency tracking mechanism.
622         (EXTRA_ld_new_SOURCES): Add pep-dll.c, pe-dll.c, and
623         $(ALL_EMULATIONS:.o=.c) $(ALL_64_EMULATIONS:.o=.c) so their
624         dependencies are tracked too.
625         (BUILT_SOURCES): New, list $(GENERATED_HFILES) to ensure they
626         are built early.
627         * configure.in: Use AM_MAINTAINER_MODE.
628         * aclocal.m4, configure, Makefile.in: Regenerate.
629
630         * Makefile.am (pdf__strip_dir, install-pdf, install-pdf-am)
631         (install-pdf-recursive, html__strip_dir, install-html)
632         (install-html-am, install-html-recursive): Remove.
633         * Makefile.in: Regenerate.
634
635         * Makefile.in: Regenerate.
636         * aclocal.m4: Likewise.
637         * config.in: Likewise.
638         * configure: Likewise.
639
640 2009-08-21  Richard Guenther  <rguenther@suse.de>
641
642         * scripttempl/elf.sc: Discard sections with .gnu.lto_ prefix.
643
644 2009-08-12  Tristan Gingold  <gingold@adacore.com>
645
646         * ld.h (fat_user_section_struct): Add map_symbol_def_count field.
647         * ldlang.c (hash_entry_addr_cmp): New function.
648         (print_all_symbols): Sort the symbols by address before printing them.
649
650 2009-08-10  Alan Modra  <amodra@bigpond.net.au>
651
652         PR 10474
653         * ldemul.c (after_allocation_default): Run lang_relax_sections.
654         * ldlang.h (lang_relax_sections): Declare.
655         * ldlang.c (relax_sections): Delete.
656         (lang_relax_sections): New function.
657         (lang_process): Don't relax directly from here.
658         * emultempl/alphaelf.em (alpha_finish): Call finish_default.
659         * emultempl/armelf.em (arm_elf_after_allocation): Delete.  Move body..
660         (gld${EMULATION_NAME}_finish): ..to here.  Move existing code..
661         (gld${EMULATION_NAME}_after_allocation): ..to here.  New function.
662         (LDEMUL_AFTER_ALLOCATION): Update.
663         * emultempl/avrelf.em (avr_elf_finish, LDEMUL_FINISH): Delete.
664         (avr_elf_after_allocation): New function.
665         (LDEMUL_AFTER_ALLOCATION): Define.
666         * emultempl/elf-generic.em (gld${EMULATION_NAME}_map_segments): Call
667         lang_relax_sections.
668         * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Delete.  Move..
669         (gld${EMULATION_NAME}_after_allocation): ..code to here.  New function.
670         (LDEMUL_AFTER_ALLOCATION, LDEMUL_FINISH): Update.
671         * emultempl/genelf.em (gld${EMULATION_NAME}_finish): Delete.  Move..
672         (gld${EMULATION_NAME}_after_allocation): ..code to here.  New function.
673         (LDEMUL_FINISH): Delete.
674         (LDEMUL_AFTER_ALLOCATION): Define.
675         * emultempl/hppaelf.em (gld${EMULATION_NAME}_finish): Delete.  Move..
676         (gld${EMULATION_NAME}_after_allocation): ..to here.  New function.
677         (LDEMUL_FINISH): Delete.
678         (LDEMUL_AFTER_ALLOCATION): Define.
679         * emultempl/m68hc1xelf.em (m68hc11elf_finish): Delete.  Move..
680         (m68hc11elf_after_allocation): ..to here.  New function.
681         (LDEMUL_FINISH): Delete.
682         (LDEMUL_AFTER_ALLOCATION): Define.
683         * emultempl/m68kelf.em (m68k_elf_after_allocation): Call
684         gld${EMULATION_NAME}_after_allocation.
685         * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Call
686         gld${EMULATION_NAME}_after_allocation.
687         * emultempl/mmo.em (mmo_finish): Delete.  Move body..
688         (gld${EMULATION_NAME}_after_allocation): ..to here.  New function.
689         (LDEMUL_FINISH): Define.
690         * emultempl/ppc64elf.em (ppc_layout_sections_again): Set elf_gp.
691         (gld${EMULATION_NAME}_finish): Move code sizing sections..
692         (gld${EMULATION_NAME}_after_allocation): ..to here.
693         * emultempl/sh64elf.em (sh64_elf_${EMULATION_NAME}_after_allocation):
694         Call gld${EMULATION_NAME}_after_allocation.
695         * emultempl/spuelf.em (gld${EMULATION_NAME}_finish): Delete
696         bfd_elf_discard_info and map_segments call.
697
698 2009-08-06  Michael Eager <eager@eagercon.com>
699
700         * Makefile.am: Add eelf32mb_linux.o, eelf32microblaze.o to
701         ALL_EMULATIONS, targets.
702         * Makefile.in: Regenerate.
703         * configure.tgt: Add microblaze*-linux*, microblaze* targets.
704         * emulparams/elf32mb_linux.sh: New.
705         * emulparams/elf32microblaze.sh. New.
706         * scripttempl/elfmicroblaze.sc: New.
707
708 2009-08-05  Trevor Smigiel  <Trevor_Smigiel@playstation.sony.com>
709
710         * emulparams/elf32_spu.sh (OTHER_READONLY_SECTIONS): Add .fixup
711         section and __fixup_start symbol.
712         * emultempl/spuelf.em (params): Initialize emit_fixups member.
713         (spu_before_allocation): Call spu_elf_size_sections.
714         (OPTION_SPU_EMIT_FIXUPS): Define.
715         (PARSE_AND_LIST_LONGOPTS): Add --emit-fixups.
716         (PARSE_AND_LIST_ARGS_CASES): Handle --emit-fixups.
717         * ld.texinfo (--emit-fixups): Document.
718
719 2009-08-04  Alan Modra  <amodra@bigpond.net.au>
720
721         PR 10474
722         * emultempl/ppc32elf.em (ppc_before_allocation): Test rawsize,
723         not size, after lang_reset_memory_regions.
724
725 2009-07-30  Alan Modra  <amodra@bigpond.net.au>
726
727         * emulparams/elf32ppc.sh (PLT): Don't include ".iplt".
728         * emulparams/elf_i386.sh (IREL_IN_PLT): Define.
729         * emulparams/elf_x86_64.sh (IREL_IN_PLT): Define.
730         * scripttempl/elf.sc: Create separate .iplt and .rela.iplt sections
731         when !IREL_IN_PLT.
732
733 2009-07-29  Hans-Peter Nilsson  <hp@bitrange.com>
734
735         * scripttempl/mmo.sc: For relocateable links, set $OUTPUT_FORMAT to
736         the new $RELOCATEABLE_OUTPUT_FORMAT, if set.
737         (OUTPUT_FORMAT): Use the variable $OUTPUT_FORMAT.
738         (ENTRY): Don't emit for relocateable links.
739         (/DISCARD/): Don't discard .gnu.warning.* for relocateable links.
740         * emulparams/mmo.sh (RELOCATEABLE_OUTPUT_FORMAT): Set, to
741         elf64-mmix.
742         * emulparams/elf64mmix.sh (OTHER_TEXT_SECTIONS): Empty, don't
743         provide "Main" or set "_start.", for relocateable links.
744
745 2009-07-27  Nick Clifton  <nickc@redhat.com>
746
747         * (po/fi.po): Updated Finnish translation.
748
749 2009-07-25  H.J. Lu  <hongjiu.lu@intel.com>
750
751         * configure.tgt (targ64_extra_emuls): Add elf_l1om if elf_x86_64
752         is supported.  Add elf_l1om_fbsd if elf_x86_64_fbsd is supported.
753         (targ_extra_emuls): Likewise.
754
755         * Makefile.am (ALL_64_EMULATIONS): Add eelf_l1om.o and
756         eelf_l1om_fbsd.o
757         (eelf_l1om.c): New.
758         (eelf_l1om_fbsd.c): Likewise.
759         * Makefile.in: Regenerated.
760
761         * emulparams/elf_l1om.sh: New.
762         * emulparams/elf_l1om_fbsd.sh: Likewise.
763
764 2009-07-23  Ulrich Drepper  <drepper@redhat.com>
765
766         * NEWS: Mention the linker's support for symbols with a binding of
767         STB_GNU_UNIQUE.
768
769 2009-07-22  H.J. Lu  <hongjiu.lu@intel.com>
770
771         PR ld/10429
772         * ldlang.c (insert_os_after): Tie assignments to non-alloc
773         output sections if there is no-input section.
774
775 2009-07-11  Alan Modra  <amodra@bigpond.net.au>
776
777         * ldlang.c (insert_os_after): Don't tie assignments to non-alloc
778         output sections.
779
780 2009-07-10  Alan Modra  <amodra@bigpond.net.au>
781
782         * emultempl/ppc32elf.em (ppc_before_allocation): Turn on
783         linker relaxation if it might be necessary.
784
785 2009-07-10  Alan Modra  <amodra@bigpond.net.au>
786
787         * emulparams/elf32ppc.sh (GOTPLT, PLT): Handle .iplt.
788
789 2009-07-06  Matthias Klose <doko@ubuntu.com>
790
791         * ld.texinfo: Fix typo.
792
793 2009-07-03  Tristan Gingold  <gingold@adacore.com>
794
795         * scripttempl/pep.sc: Put .eh_frame in its own section.
796         * scripttempl/pe.sc: Ditto.
797
798 2009-06-26  Kai Tietz  <kai.tietz@onevision.com>
799
800         * scripttempl/pe.sc (.debug_pubtypes): Added section rule.
801         * scripttempl/pep.sc: Likewise.
802
803 2009-06-25  Tristan Gingold  <gingold@adacore.com>
804
805         * ldlang.c (print_input_section): Add is_discarded parameter.  Adjust
806         prototype.
807         (lang_map): Print the size of discarded sections.
808         (print_statement): Adjust call to print_input_section.
809
810 2009-06-18  Dave Korn  <dave.korn.cygwin@gmail.com>
811
812         Merge cegcc and mingw32ce target name changes from CeGCC project:
813
814         2008-09-24  Pedro Alves  <pedroalves@users.sourceforge.net>
815
816         * configure.tgt (arm*-*-cegcc*): Set LIB_PATH to
817         ${tooldir}/lib/w32api.
818
819         2007-12-25  Pedro Alves  <pedro_alves@portugalmail.pt>
820
821         * configure.tgt: Add arm*-*-cegcc* target.
822
823         2007-12-17  Pedro Alves  <pedro_alves@portugalmail.pt>
824
825         * configure.tgt: Add arm-*-mingw32ce* target.
826
827 2009-06-10  Philip Blundell  <philb@gnu.org>
828
829         * emultempl/armelf.em (gld${EMULATION_NAME}_finish): Avoid crash
830         if section has no ELF data.
831
832 2009-06-06  H.J. Lu  <hongjiu.lu@intel.com>
833
834         * scripttempl/elf.sc: Add .rel.ifunc and .rela.ifunc.
835
836 2009-06-05  H.J. Lu  <hongjiu.lu@intel.com>
837
838         * scripttempl/elf.sc: Remove .rel.ifunc.dyn and .rela.ifunc.dyn.
839
840 2009-06-04  Alan Modra  <amodra@bigpond.net.au>
841
842         * dep-in.sed: Don't use \n in replacement part of s command.
843         * Makefile.am (DEP1): LC_ALL for uniq.
844         * Makefile.in: Regenerate.
845
846 2009-06-01  H.J. Lu  <hongjiu.lu@intel.com>
847
848         * scripttempl/elf.sc (PLT): Add "*(.iplt)".
849         (GOT): Add "*(.igot.plt)a" and "*(.igot)".
850         (GOTPLT): Add "*(.igot)".
851         (__rel_iplt_start): New.
852         (__rel_iplt_end): Likewise.
853         (__rela_iplt_start): Likewise.
854         (__rela_iplt_end): Likewise.
855
856 2009-05-27  Dave Korn  <dave.korn.cygwin@gmail.com>
857
858         * deffilep.y (%union):  Add new string-type semantic value 'digits'.
859         (%token):  Remove NUMBER as token, add DIGITS.
860         (%type):  Add NUMBER as type.  Add new id types anylang_id, opt_id.
861         (ALIGNCOMM):  Parse an anylang_id instead of a plain ID.
862         (anylang_id):  New production.
863         (opt_digits):  Likewise.
864         (opt_id):  Likewise.
865         (NUMBER):  Likewise.
866         (def_lex):  Return strings of digits in raw string form as DIGITS
867         token, instead of converting to numeric integer type.
868
869 2009-05-26  Nathan Sidwell  <nathan@codesourcery.com>
870
871         * ldmain.c (main): Don't reject --relax -r.
872         * ld.texinfo (PowerPC ELF32): Document behaviour of relaxing
873         partial links.
874
875 2009-05-26  Nick Clifton  <nickc@redhat.com>
876
877         * po/id.po: Updated Indonesian translation.
878         * po/ld.pot: Updated template file.
879
880 2009-05-26  Alan Modra  <amodra@bigpond.net.au>
881
882         * dep-in.sed: Output one filename per line with all lines having
883         continuation backslash.  Prefix first line with "A", following
884         lines with "B".
885         * Makefile.am (DEP): Don't use dep.sed here.
886         (DEP1): Run $MKDEP on single files, use dep.sed here on dependencies,
887         sort and uniq.
888         * Makefile.in: Regenerate.
889
890 2009-05-26  Alan Modra  <amodra@bigpond.net.au>
891
892         * ldlang.c (lang_check_section_addresses): Ignore non-alloc sections.
893
894 2009-05-22  Julian Brown  <julian@codesourcery.com>
895
896         * emultempl/armelf.em (fix_cortex_a8): New.
897         (arm_elf_before_allocation): Call bfd_elf32_arm_set_cortex_a8_fix.
898         (arm_elf_create_output_section_statements): Add fix_cortex_a8 to
899         bfd_elf32_arm_set_target_relocs.
900         (OPTION_FIX_CORTEX_A8, OPTION_NO_FIX_CORTEX_A8): New.
901         (PARSE_AND_LIST_LONGOPTS): Add [no-]fix-cortex-a8 options.
902         (PARSE_AND_LIST_OPTIONS): Add [no-]fix-cortex-a8 options.
903         (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_[NO_]FIX_CORTEX_A8.
904         * ld.texinfo (--[no-]fix-cortex-a8): Briefly document new options.
905
906 2009-05-22  Nathan Sidwell  <nathan@codesourcery.com>
907
908         * ldlang.c (lang_check_section_addresses): Ignore non-loadable
909         sections when checking for overlap.  Clarify error message
910         concerns load address.
911
912 2009-05-22  Alan Modra  <amodra@bigpond.net.au>
913
914         * Makefile.am: Run "make dep-am".
915         * Makefile.in: Regenerate.
916
917 2009-05-19  Dave Korn  <dave.korn.cygwin@gmail.com>
918
919         * NEWS:  Mention new feature.
920         * deffile.h (def_file_aligncomm):  Add new struct definition.
921         (def_file):  Add new def_file_aligncomm member.
922         * deffilep.y (%token):  Add new ALIGNCOMM token.
923         (command):  Add production rule for ALIGNCOMM.
924         (def_file_free):  Free any chained def_file_aligncomm structs.
925         (diropts[]):  Add entry for '-aligncomm' .drectve command.
926         (def_aligncomm):  New grammar function.
927         * ld.texinfo:  Document new feature.
928         * pe-dll.c (process_def_file):  Rename from this ...
929         (process_def_file_and_drectve):  ... to this, updating all callers,
930         and process any aligncomms chained to the def file after scanning
931         all .drectve sections.
932         (generate_edata):  Updated to match.
933         (pe_dll_build_sections):  Likewise.
934
935 2009-05-17  Aaron W. LaFramboise  <aaron98wiridge9@aaronwl.com>
936
937         * pe-dll.c (process_def_file): Do not create empty export table.
938
939 2009-05-15  Alan Modra  <amodra@bigpond.net.au>
940
941         * ldlang.c (lang_output_section_statement_lookup): Add function
942         comment.  Make "name" non-const.  Ensure duplicate entries use
943         the same string, allowing simple comparison in hash bucket loop.
944         Tweak constraint check.
945         (next_matching_output_section_statement): New function.
946         * ldlang.h (lang_output_section_statement_lookup): Update.
947         (next_matching_output_section_statement): Declare.
948         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
949         combine orphan sections when input sections flags differ in
950         alloc or load.
951         * emultempl/pe.em: Formatting throughout.
952         (gld${EMULATION_NAME}_place_orphan): As for elf32.em.
953         * emultempl/pep.em: Formatting throughout.
954         (gld${EMULATION_NAME}_place_orphan): As for elf32.em.
955
956 2009-05-14  Ulrich Weigand  <uweigand@de.ibm.com>
957
958         * emultempl/spuelf.em (PARSE_AND_LIST_ARGS_CASES): Always use
959         compact stubs with software i-cache.
960
961 2009-05-14  Alan Modra  <amodra@bigpond.net.au>
962
963         * emultempl/spuelf.em (spu_before_allocation): Call
964         spu_elf_place_overlay_data.
965
966 2009-05-14  Alan Modra  <amodra@bigpond.net.au>
967
968         * ldlang.c (lang_insert_orphan): Add __start_<section> symbol
969         assignment inside output section statement.  Ensure only one
970         set of symbols per output section.
971         * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Add non-
972         dollar sections before dollar sections.  Correct add_child
973         list insertion.
974         * emultempl/pep.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
975
976 2009-05-05  Paul Brook  <paul@codesourcery.com>
977
978         * emultempl/armelf.em (compare_output_sec_vma): New function.
979         (gld${EMULATION_NAME}_finish): Add exidx munging code.
980
981 2009-05-05  Anatoly Sokolov  <aesok@post.ru>
982
983         * scripttempl/avr.sc (MEMORY): Use DATA_ORIGIN.
984         * emulparams/avr1.sh (DATA_ORIGIN): Add.
985         * emulparams/avr2.sh (DATA_ORIGIN): Add.
986         * emulparams/avr25.sh (DATA_ORIGIN): Add.
987         * emulparams/avr3.sh (DATA_ORIGIN): Add.
988         * emulparams/avr31.sh (DATA_ORIGIN): Add.
989         * emulparams/avr35.sh (DATA_ORIGIN): Add.
990         * emulparams/avr4.sh (DATA_ORIGIN): Add.
991         * emulparams/avr5.sh (DATA_ORIGIN): Add.
992         * emulparams/avr51.sh (DATA_ORIGIN): Add.
993         (DATA_LENGTH): Update.
994         * emulparams/avr6.sh (DATA_ORIGIN): Add.
995         (DATA_LENGTH): Update.
996
997 2009-05-04  Dave Korn  <dave.korn.cygwin@gmail.com>
998
999         * NEWS:  Mention new feature.
1000         * ld.texinfo (--version-script):  Document extent of PE support.
1001         (WIN32):  Mention --version-script.  Extend auto-export description.
1002         * pe-dll.c (process_def_file):  Use version script info to filter
1003         symbols from auto-export.
1004         * testsuite/ld-pe/vers-script-1.d:  New file.
1005         * testsuite/ld-pe/vers-script-2.d:  New file.
1006         * testsuite/ld-pe/vers-script-3.d:  New file.
1007         * testsuite/ld-pe/vers-script-4.d:  New file.
1008         * testsuite/ld-pe/vers-script-1.ver:  New file.
1009         * testsuite/ld-pe/vers-script-2.ver:  New file.
1010         * testsuite/ld-pe/vers-script-3.ver:  New file.
1011         * testsuite/ld-pe/vers-script-4.ver:  New file.
1012         * testsuite/ld-pe/vers-script-dll.c:  New file.
1013         * testsuite/ld-pe/vers-script.exp:  New test script.
1014
1015 2009-05-01  Nathan Sidwell  <nathan@codesourcery.com>
1016
1017         * emulparams/vxworks.sh (TEXT_START_ADDR): Override.
1018
1019 2009-04-30  Nick Clifton  <nickc@redhat.com>
1020
1021         * NEWS: Mention support for IFUNC symbols.
1022
1023 2009-04-29  Anthony Green  <green@moxielogic.com>
1024
1025         * emulparams/elf32moxie.sh (STACK_ADDR): Move default stack
1026         position out to accommodate larger programs.
1027
1028 2009-04-29  Chris Demetriou  <cgd@google.com>
1029
1030         * lexsup.c (option_values): Add OPTION_NO_EXPORT_DYNAMIC.
1031         (ld_options): Likewise.
1032         (parse_args): Likewise.
1033         * ld.texinfo: Document --no-export-dynamic.
1034         * NEWS: Mention --no-export-dynamic.
1035
1036 2009-04-29  Alan Modra  <amodra@bigpond.net.au>
1037
1038         * deffilep.y (STACKSIZE_K): Rename from STACKSIZE.
1039
1040 2009-04-25  Alan Modra  <amodra@bigpond.net.au>
1041
1042         PR 10061
1043         * genscripts.sh: Don't pass $EMULATION_NAME as $CUSTOMIZER_SCRIPT
1044         param.
1045
1046 2009-04-21  Daniel Jacobowitz  <dan@codesourcery.com>
1047
1048         * emultempl/armelf.em (bfd_for_interwork, arm_elf_after_open)
1049         (arm_elf_set_bfd_for_interworking): Delete.
1050         (arm_elf_before_allocation): Do not set the interworking BFD.
1051         Move allocation inside not-dynamic block.
1052         (arm_elf_create_output_section_statements): Create glue sections
1053         and set the interworking BFD here.
1054         (LDEMUL_AFTER_OPEN): Delete.
1055
1056 2009-04-16  Richard Sandiford  <r.sandiford@uk.ibm.com>
1057
1058         * ldlang.c (lang_one_common): Use bfd_define_common_symbol.
1059
1060 2009-04-15  Anthony Green  <green@moxielogic.com>
1061
1062         * configure.tgt: Add moxie support.
1063         * Makefile.am: Add moxie files.
1064         * Makefile.in: Rebuilt.
1065         * emulparams/elf32moxie.sh: New file.
1066         * scripttempl/moxie.sc: New file.
1067
1068 2009-04-15  Kazu Hirata  <kazu@codesourcery.com>
1069
1070         * ldlang.c: Do not include limits.h.
1071
1072 2009-04-14  Alan Modra  <amodra@bigpond.net.au>
1073
1074         PR ld/10047
1075         * ldfile.c (find_scripts_dir): Use make_relative_prefix to find
1076         ldscripts in build tree.  Don't repeat search for ../lib/ldscripts.
1077
1078 2009-04-13  H.J. Lu  <hongjiu.lu@intel.com>
1079
1080         * ldfile.c (ldfile_find_command_file): Revert the last change.
1081
1082 2009-04-11  H.J. Lu  <hongjiu.lu@intel.com>
1083
1084         PR ld/10047
1085         * ldfile.c (ldfile_find_command_file): First try raw name.
1086
1087 2009-04-09  Nick Clifton  <nickc@redhat.com>
1088
1089         PR 9824
1090         * ld.texinfo (Output Section Constraint): New node.  Documents the
1091         ONLY_IF_RO and ONLY_IF_RW constraints.
1092         (Symbolic Constants): New node.  Documents the CONSTANT operator.
1093
1094 2009-04-09  Thilo Fischer <thilo.fischer@uni-muenster.de>
1095
1096         * emultempl/spuelf.em (embedded_spu_file): Use pex_one in place
1097         of fork/execvp.
1098
1099 2009-04-08  H.J. Lu  <hongjiu.lu@intel.com>
1100
1101         * lexsup.c (option_values): Add OPTION_WARN_ALTERNATE_EM.
1102         (ld_options): Likewise.
1103         (parse_args): Likewise.
1104
1105         * ld.texinfo: Document --warn-alternate-em.
1106
1107         * NEWS: Mention --warn-alternate-em.
1108
1109 2009-04-07  DJ Delorie  <dj@redhat.com>
1110
1111         * emulparams/elf32mep.sh: Change default endian to little.
1112
1113 2009-04-07  Nick Clifton  <nickc@redhat.com>
1114
1115         * ld.texinfo (Output Section Address): Note that specifying an
1116         address for an output section will only change the location
1117         counter if the output section is used.
1118
1119 2009-04-06  Kazu Hirata  <kazu@codesourcery.com>
1120
1121         * ldfile.c (ldfile_find_command_file): Initialize result.
1122
1123 2009-04-06  Kazu Hirata  <kazu@codesourcery.com>
1124
1125         * ld.texinfo (-L): Mention that -L options do not affect how ld
1126         searches for a linker script unless -T option is specified.
1127         * ldfile.c (ldfile_find_command_file): Append the path obtained
1128         from the program name to the search path instead of
1129         prepending. Add a new parameter "default_only". Restrict the
1130         search to the default script location if the new parameter is
1131         true.
1132         (ldfile_open_command_file_1): New.
1133         (ldfile_open_command_file): Call ldfile_open_command_file_1.
1134         (ldfile_open_default_command_file): New.
1135
1136 2009-04-03  Nathan Sidwell  <nathan@codesourcery.com>
1137
1138         * ldlang.c (lang_leave_output_section_statement): Set lma_region
1139         if it is not overridden and section is for the same vma region as
1140         the previous section.
1141
1142 2009-04-02  Dave Korn  <dave.korn.cygwin@gmail.com>
1143
1144         PR ld/6744
1145         * ld.texinfo (--export-dynamic):  Mention --export-all-symbols.
1146         * emultempl/pe.em (gld_${EMULATION_NAME}_after_parse):  Issue
1147         warning if --export-dynamic was passed on command-line.
1148         * emultempl/pep.em (gld_${EMULATION_NAME}_after_parse):  Likewise.
1149
1150 2009-04-01  Richard Sandiford  <r.sandiford@uk.ibm.com>
1151
1152         * emultempl/aix.em (gld${EMULATION_NAME}_open_dynamic_archive): New
1153         function.
1154         (ld_${EMULATION_NAME}_emulation): Use it.
1155
1156 2009-03-20  H.J. Lu  <hongjiu.lu@intel.com>
1157
1158         PR ld/9970
1159         * ldlang.c (lang_end): Warn missing entry symbol for -pie.
1160
1161 2009-03-19  Alan Modra  <amodra@bigpond.net.au>
1162
1163         * emultempl/spuelf.em (spu_before_allocation): Report errors from
1164         spu_elf_find_overlays.
1165
1166 2009-03-18  H.J. Lu  <hongjiu.lu@intel.com>
1167
1168         PR ld/6766
1169         * lexsup.c (parse_args): Call ldlang_add_undef for -e.
1170
1171 2009-03-18  Alan Modra  <amodra@bigpond.net.au>
1172
1173         * ld.h: Remove alloca handling.
1174
1175 2009-03-17  Alan Modra  <amodra@bigpond.net.au>
1176
1177         * emultempl/spu_icache.S: Add new entry to dummy handler.
1178         * emultempl/spu_icache.o_c: Regenerate.
1179         * emultempl/spuelf.em (params): Init new field.
1180         (no_overlays): New static var.
1181         (spu_before_allocation): Use it.
1182         (OPTION_SPU_COMPACT_STUBS): Define.
1183         (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add compact-stubs.
1184         (PARSE_AND_LIST_ARGS_CASES): Handle compact-stubs.  Adjust no-overlays
1185         handling.
1186
1187 2009-03-17  Alan Modra  <amodra@bigpond.net.au>
1188
1189         * configure.host (HOSTING_LIBS): Two dollars on shell variable
1190         expansion to suit make.
1191
1192 2009-03-17  Alan Modra  <amodra@bigpond.net.au>
1193
1194         * configure.in: Invoke ACX_PROG_CMP_IGNORE_INITIAL.
1195         * Makefile.am (check-DEJAGNU): Set DO_COMPARE.
1196         * aclocal.m4: Regenerate.
1197         * configure: Regenerate.
1198         * Makefile.in: Regenerate.
1199
1200 2009-03-14  Richard Sandiford  <r.sandiford@uk.ibm.com>
1201
1202         * emultempl/aix.em (auto_export_flags): New variable.
1203         (explicit_auto_export_flags): Likewise.
1204         (OPTION_EXPALL, OPTION_EXPFULL): New enum values.
1205         (OPTION_NOEXPALL, OPTION_NOEXPFULL): Likewise.
1206         (gld${EMULATION_NAME}_add_options): Add -bexpall, -bexpfull,
1207         -bnoexpall and -bnoexpfull.
1208         (gld${EMULATION_NAME}_handle_option): Handle them.
1209         (gld${EMULATION_NAME}_before_allocation): Update the call to
1210         bfd_size_dynamic_sections.
1211
1212 2009-03-14  Richard Sandiford  <r.sandiford@uk.ibm.com>
1213
1214         * emultempl/aix.em (gld${EMULATION_NAME}_handle_option): Make
1215         -berok and -bernotok control link_info.unresolved_syms_in_objects
1216         and link_info.unresolved_syms_in_shared_libs instead of
1217         force_make_executable.
1218
1219 2009-03-14  Richard Sandiford  <r.sandiford@uk.ibm.com>
1220
1221         * emultempl/aix.em (gld${EMULATION_NAME}_before_parse): Set
1222         config.dynamic_link to TRUE.
1223
1224 2009-03-14  Richard Sandiford  <r.sandiford@uk.ibm.com>
1225
1226         * emultempl/aix.em (gld${EMULATION_NAME}_before_allocation): Mark
1227         .text, .data and .bss output sections as SEC_KEEP.
1228
1229 2009-03-14  Richard Sandiford  <r.sandiford@uk.ibm.com>
1230
1231         * configure.tgt: Extend AIX 5 behavior to AIX 6 and above.
1232
1233 2009-03-14  Dave Korn  <dave.korn.cygwin@gmail.com>
1234             Danny Smith  <dannysmith@users.sourceforge.net>
1235
1236         * emultmpl/pe.em (pe_dll_characteristics): New variable.
1237         (OPTION_DYNAMIC_BASE, OPTION_FORCE_INTEGRITY, OPTION_NX_COMPAT,
1238         OPTION_NO_ISOLATION. OPTION_NO_SEH, OPTION_NO_BIND,
1239         OPTION_WDM_DRIVER, OPTION_TERMINAL_SERVER_AWARE):
1240         New macros for options to set DllCharacteristics flag bits.
1241         (gld${EMULATION_NAME}_add_options): Add dynamicbase, forceinteg,
1242         nxcompat, no-isolation, no-seh, no-bind, wdmdriver, tsaware options.
1243         (init): Add DllCharacteristics field.
1244         (gld_${EMULATION_NAME}_list_options): List new options.
1245         (gld${EMULATION_NAME}_handle_option): Handle new options.
1246         * emultmpl/pep.em (pe_dll_characteristics): New variable.
1247         (OPTION_DYNAMIC_BASE, OPTION_FORCE_INTEGRITY, OPTION_NX_COMPAT,
1248         OPTION_NO_ISOLATION. OPTION_NO_SEH, OPTION_NO_BIND,
1249         OPTION_WDM_DRIVER, OPTION_TERMINAL_SERVER_AWARE):
1250         New macros for options to set DllCharacteristics flags.
1251         (gld${EMULATION_NAME}_add_options): Add dynamicbase, forceinteg,
1252         nxcompat,no-isolation, no-seh, no-bind, wdmdriver, tsaware options.
1253         (init): Add DllCharacteristics field.
1254         (gld_${EMULATION_NAME}_list_options): List new options.
1255         (gld${EMULATION_NAME}_handle_option): Handle new options.
1256         * ldtexinfo : Document dynamicbase, forceinteg, nxcompat,
1257         no-isolation, no-seh, no-bind, wdmdriver, tsaware options.
1258
1259 2009-03-06  Nick Clifton  <nickc@redhat.com>
1260
1261         * po/es.po: Updated Spanish translation.
1262
1263 2009-03-03  Dave Korn  <dave.korn.cygwin@gmail.com>
1264
1265         * emultempl/pe.em (debug_section_p):  New bfd_map_over_sections hook.
1266         (gld_${EMULATION_NAME}_after_open):  Use it to iterate all sections
1267         of all input BFDs, looking for debug info.  Enable long section names
1268         if any found.
1269         * emultempl/pe.em (debug_section_p):  Likewise.
1270         (gld_${EMULATION_NAME}_after_open):  Likewise.
1271         * NEWS:  Retrospectively adjust news announcement.
1272         * ld.texinfo:  Update documentation to mention new behaviour.
1273
1274 2009-03-03  Alan Modra  <amodra@bigpond.net.au>
1275
1276         * Makefile.am: Run "make dep-am".
1277         * Makefile.in: Regenerate.
1278
1279 2009-03-02  Sebastian Huber  <sebastian.huber@embedded-brains.de>
1280
1281         * ldgram.y: Add support for REGION_ALIAS operator.
1282         * ldlang.c: Likewise.
1283         * ldlang.h: Likewise.
1284         * ldlex.l: Likewise.
1285         * NEWS: Mention the new feature.
1286         * ld.texinfo: Document the new feature.
1287
1288 2009-03-02  Qinwei  <qinwei@sunnorth.com.cn>
1289
1290         * Makefile.am: Replace score elf emulation with score3 and score7
1291         emulations.
1292         * Makefile.in: Regenerate,
1293         * NEWS: Mention support for Score7 architecture.
1294         * configure.tgt: Add score7 emulation to score-elf target.
1295         * emulparams/scoreelf.sh: Add score7 support.
1296         * emultempl/scoreelf.em: Likewise.
1297
1298 2009-03-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1299
1300         * configure.tgt: Only use elf64hppa target emulation for hpux.
1301         * emulparams/elf64hppa.sh: Don't include hppa64linux.sh.
1302         (SCRIPT_NAME): Use new script elf64hppa.
1303         (SCRIPT_NAME, ELFSIZE, NO_REL_RELOCS, ARCH, MACHINE, ENTRY,
1304         TEMPLATE_NAME, GENERATE_SHLIB_SCRIPT, OTHER_READONLY_SECTIONS,
1305         OTHER_READWRITE_SECTIONS, OTHER_BSS_SECTIONS, OTHER_GOT_RELOC_SECTIONS,
1306         DATA_START_SYMBOLS, OTHER_SYMBOLS, DATA_PLT, PLT_BEFORE_GOT,
1307         TEXT_DYNAMIC): Define.
1308         * emulparams/hppa64linux.sh: Adjust comments.
1309         * scripttempl/elf64hppa.sc: New file.
1310
1311 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1312
1313         * configure: Regenerate.
1314
1315 2009-02-27  Dave Korn  <dave.korn.cygwin@gmail.com>
1316
1317         * emultempl/pe.em (gld_${EMULATION_NAME}_before_parse):  Set
1318         default state of auto-import flag based on $target.
1319
1320 2009-02-24  Joseph Myers  <joseph@codesourcery.com>
1321
1322         * ld.texinfo (ARM): Document changed meaning of --stub-group-size.
1323         * emultempl/armelf.em (hook_in_stub): Insert after the input section.
1324         (elf32_arm_add_stub_section): Update comment.
1325         (PARSE_AND_LIST_OPTIONS): Update help for --stub-group-size.
1326
1327 2009-02-24  Sandra Loosemore  <sandra@codesourcery.com>
1328
1329         * ld.texinfo (Options): Correct typos in example.  Recommend
1330         using joined forms of syntax for passing options with arguments
1331         from a driver.
1332         (-a): Use consistent syntax for documenting option arguments.
1333         Clean up indexing and markup.
1334         (-A/--architecture): Likewise.
1335         (-f/--auxiliary): Likewise.
1336         (-F/--filter): Likewise.
1337         (-fini): Likewise.
1338         (-G/--gpsize): Likewise.
1339         (-h/-soname):Likewise.
1340         (-init): Likewise.
1341         (-l/--library): Likewise.
1342         (-L/--library-path): Likewise.
1343         (-m): Likewise.
1344         (--defsym): Likewise.
1345         (-I/--dynamic-linker): Likewise.
1346         (-Map): Likewise.
1347         (--oformat): Likewise.
1348         (--retain-symbols-file): Likewise.
1349         (-rpath): Likewise.
1350         (-rpath-link): Likewise.
1351         (--sort-common): Likewise.
1352         (--sort-section): Likewise.
1353         (--split-by-file): Likewise.
1354         (--split-by-reloc): Likewise.
1355         (--sysroot): Likewise.
1356         (--section-start): Likewise.
1357         (-Tbss, -Tdata, -Ttext): Likewise.
1358         (-Ttext-segment): Likewise.
1359         (--version-script): Likewise.
1360         (--wrap): Likewise.
1361
1362 2009-02-18  Dave Korn  <dave.korn.cygwin@gmail.com>
1363
1364         * ld.texinfo:  Update to mention long section name options.
1365         * NEWS:  Mention new behaviour and command-line options.
1366         * pe-dll.c (pe_use_coff_long_section_names):  New global variable.
1367         (pe_output_file_set_long_section_names):  New function.
1368         (pe_dll_build_sections):  Call it on output BFDs.
1369         (pe_exe_build_sections):  Likewise.
1370         (pe_dll_fill_sections):  Likewise.
1371         (pe_exe_fill_sections):  Likewise.
1372         * pe-dll.h (pe_use_coff_long_section_names):  Declare extern.
1373         (pe_output_file_set_long_section_names):  Add prototype.
1374         * pep-dll.c (pe_use_coff_long_section_names):  Define pep_ alias.
1375         (pe_output_file_set_long_section_names):  Likewise.
1376         * pep-dll.h (pep_use_coff_long_section_names):  Declare extern.
1377         (pep_output_file_set_long_section_names):  Add prototype.
1378         * pe.em (OPTION_ENABLE_LONG_SECTION_NAMES):  New getopt value macro.
1379         (OPTION_DISABLE_LONG_SECTION_NAMES):  Likewise.
1380         (gld${EMULATION_NAME}_add_options):  Add new options to xtra_long[].
1381         (gld_${EMULATION_NAME}_list_options):  Describe them.
1382         (gld${EMULATION_NAME}_handle_option):  Set or clear global
1383         pe_use_coff_long_section_names flag when options recognised.
1384         (gld_${EMULATION_NAME}_after_open):  En/disable long section names
1385         for main output bfd by calling pe_output_file_set_long_section_names.
1386         * pep.em (enum options):  Extend enum with new getopt option values.
1387         (gld${EMULATION_NAME}_add_options):  Add new options to xtra_long[].
1388         (gld_${EMULATION_NAME}_list_options):  Describe them.
1389         (gld${EMULATION_NAME}_handle_option):  Set or clear global
1390         pe_use_coff_long_section_names flag when options recognised.
1391         (gld_${EMULATION_NAME}_after_open):  En/disable long section names
1392         for main output bfd by calling pep_output_file_set_long_section_names.
1393
1394 2009-02-16  Dave Korn  <dave.korn.cygwin@gmail.com>
1395
1396         * emultempl/pe.em (gld_${EMULATION_NAME}_after_open):  Don't emit
1397         inadvertent .reloc sections caused by refactoring accident.
1398
1399 2009-02-16  Alan Modra  <amodra@bigpond.net.au>
1400
1401         * ldlang.c (process_insert_statements): ASSERT that output section
1402         statements are in order.
1403
1404 2009-02-16  Alan Modra  <amodra@bigpond.net.au>
1405
1406         * ldlang.c (push_stat_ptr, pop_stat_ptr): New functions.
1407         (stat_save, stat_save_ptr): New variables.
1408         (lang_insert_orphan): Use push_stat_ptr and pop_stat_ptr.
1409         (load_symbols): Likewise.  Delete dead "bad_load" code.
1410         (open_input_bfds): Warn on script containing output sections.
1411         (lang_enter_output_section_statement): Use push_stat_ptr.
1412         (lang_enter_group): Likewise.
1413         (lang_leave_output_section_statement): Use pop_stat_ptr.
1414         (lang_leave_group): Likewise.
1415         * ldlang.h (push_stat_ptr, pop_stat_ptr): Declare.
1416         * ldctor.c (ldctor_build_sets): Use push_stat_ptr and pop_stat_ptr.
1417         * emultempl/beos.em (gld_${EMULATION_NAME}_set_symbols): Likewise.
1418         * emultempl/pe.em (gld_${EMULATION_NAME}_set_symbols): Likewise.
1419         * emultempl/pep.em (gld_${EMULATION_NAME}_set_symbols): Likewise.
1420         * emultempl/spuelf.em (spu_place_special_section): Likewise.
1421         * emultempl/xtensaelf.em (ld_xtensa_insert_page_offsets): Likewise.
1422
1423 2009-02-09  Nathan Sidwell  <nathan@codesourcery.com>
1424
1425         Missing piece of 2009-01-26 commit
1426         * ldlang.c (lang_process): Don't consider relocatable flag when
1427         checking for overlap.
1428
1429 2009-02-05  Joseph Myers  <joseph@codesourcery.com>
1430
1431         * emulparams/m68kelf.sh: Add newline at end of file.
1432
1433 2009-02-04  Nick Clifton  <nickc@redhat.com>
1434
1435         PR 9805
1436         * ld.texinfo (--allow-shlib-undefined): Correct description of
1437         default settings and tidy up the rest of the entry.
1438
1439 2009-02-04  Alan Modra  <amodra@bigpond.net.au>
1440
1441         * emultempl/spuelf.em (spu_after_open): Don't combine .text.ia.*
1442         during relocatable link.
1443
1444 2009-02-03  Nick Clifton  <nickc@redhat.com>
1445
1446         PR 9797
1447         * ld.texinfo (Constants): Document the base-encoding suffixes
1448         supported in linker scripts.
1449
1450 2009-02-03  Alan Modra  <amodra@bigpond.net.au>
1451
1452         * NEWS: Mention --as-needed change.
1453
1454 2009-02-03  Carlos O'Donell  <carlos@codesourcery.com>
1455
1456         * configure.in: AC_SUBST pdfdir.
1457         * Makefile.am: Add install-pdf, install-pdf-am,
1458         and install-pdf-recursive targets. Define pdf__strip_dir.
1459         * po/Make-in: Add install-pdf target.
1460         * configure: Regenerate.
1461         * Makefile.in: Regenerate.
1462
1463 2009-01-31  Alan Modra  <amodra@bigpond.net.au>
1464
1465         * ld.texinfo (--as-needed): Update.
1466
1467 2009-01-29  Andrew Jenner  <andrew@codesourcery.com>
1468
1469         * emultempl/armelf.em: Correct formatting of help text for
1470         --no-enum-size-warning option.
1471
1472 2009-01-26  Nathan Sidwell  <nathan@codesourcery.com>
1473
1474         * lexsup.c (parse_args): Set check_section_addresses to 1 or 0.
1475         * ld.h (args_type): Make check_section_addresses a char.
1476         * ldmain.c (main): Default check_section_addresses to -1. Check it
1477         for relocatable links.
1478         * ld.texinfo (--check-sections): Update documentation.
1479
1480 2009-01-26  Kai Tietz  <kai.tietz@onevision.com>
1481
1482         * pe-dll.c (tmp_seq2): New static variable.
1483         (make_singleton_name_imp): New.
1484         (make_import_fixup_entry): Use for v2 the _imp_<name> symbol and
1485         avoid duplicate import table generation for same symbol.
1486         (pe_create_runtime_relocator_reference): Make reference for
1487         64-bit 8 bytes.
1488
1489 2009-01-21  Alan Modra  <amodra@bigpond.net.au>
1490
1491         * emultempl/spuelf.em (params): Init new field.
1492         (OPTION_SPU_NON_IA_TEXT): Define.
1493         (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add --non-ia-text.
1494         (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_SPU_NON_IA_TEXT.
1495
1496 2009-01-16  H.J. Lu  <hongjiu.lu@intel.com>
1497
1498         * lexsup.c (option_values): Add OPTION_TTEXT_SEGMENT.
1499         (ld_options): Add -Ttext-segment.
1500         (parse_args): Handle OPTION_TTEXT_SEGMENT.
1501
1502         * ld.texinfo: Document -Ttext-segment.
1503
1504         * NEWS: Mention -Ttext-segment.
1505
1506         * scripttempl/elf.sc (TEXT_START_ADDR): Use SEGMENT_START.
1507         (SHLIB_TEXT_START_ADDR): Likewise.
1508
1509 2009-01-13  Alan Modra  <amodra@bigpond.net.au>
1510
1511         * emultempl/spu_icache.o_c: Regenerate.
1512
1513 2009-01-12  Alan Modra  <amodra@bigpond.net.au>
1514
1515         * emultempl/spuelf.em (params): Init new fields.
1516         (num_lines_set, line_size_set, icache_mgr, icache_mgr_stream): New vars.
1517         (spu_place_special_section): Adjust placement for soft-icache.  Pad
1518         soft-icache section to a fixed size.  Clear addr_tree.
1519         (spu_elf_load_ovl_mgr): Support soft-icache.  Map overlay manager
1520         sections a little more intelligently.
1521         (gld${EMULATION_NAME}_finish): Don't call spu_elf_build_stubs.
1522         (OPTION_SPU_NUM_LINES): Rename from OPTION_SPU_NUM_REGIONS.
1523         (OPTION_SPU_SOFT_ICACHE, OPTION_SPU_LINE_SIZE): Define.
1524         (OPTION_SPU_LRLIVE): Define.
1525         (PARSE_AND_LIST_LONGOPTS): Add new soft-icache options.
1526         (PARSE_AND_LIST_OPTIONS): Likewise.
1527         (PARSE_AND_LIST_ARGS_CASES): Handle them.
1528         * emultempl/spu_icache.S: Dummy file.
1529         * emultempl/spu_icache.o_c: Regenerate.
1530         * Makefile.am (eelf32_spu.c): Depend on spu_icache.o_c.
1531         (spu_icache.o_c): Add rule to build.
1532         (CLEANFILES): Zap temp files.
1533         (EXTRA_DIST): Add spu_icache.o_c.
1534         * Makefile.in: Regenerate.
1535
1536 2009-01-08  Kai Tietz  <kai.tietz@onevision.com>
1537
1538         * pe.em (OPTION_USE_NUL_PREFIXED_IMPORT_TABLES): New.
1539         (gld..._add_options): Add new option
1540         --use-nul-prefixed-import-tables.
1541         (gld..._handle_option): Likewise.
1542         * pep.em: Same as for pe.em.
1543         * ld.texinfo: Add new option documentation for
1544         --use-nul-prefixed-import-tables.
1545         * pe-dll.c (pe_use_nul_prefixed_import_tables): New.
1546         (make_head): Make prefix leading zero prefix element for
1547         idata$4 and idata$5 dependent to new flag.
1548         (make_import_fixup_entry): Remove idata4/5 prefix.
1549         * pe-dll.h (pe_use_nul_prefixed_import_tables): New.
1550         * pep-dll.c (pe_use_nul_prefixed_import_tables): New.
1551         * pep-dll.h (pep_use_nul_prefixed_import_tables): New.
1552         * NEWS: Add new option.
1553
1554 2009-01-05  Kai Tietz  <kai.tietz@onevision.com>
1555
1556         * emultempl/pe.em: Prefix dollar characters to be outputed in
1557         generated C file.
1558         * emultempl/pep.em: Likewise.
1559
1560 2009-01-03  Dave Korn  <dave.korn.cygwin@gmail.com>
1561
1562         * NEWS:  Mention new feature --exclude-modules-for-implib.
1563         * ld.texinfo:  Document new --exclude-modules-for-implib option.
1564         * pe-dll.c (exclude_list_struct):  Change type member from int to
1565         new enumeration exclude_type.
1566         (pe_dll_add_excludes):  Accept exclude_type instead of int param.
1567         (auto_export):  Replace magic constants by exclude_type values and
1568         handle new choice EXCLUDEFORIMPLIB.
1569         (pe_dll_generate_implib):  Accept a pointer to the link_info and
1570         iterate all input BFDs looking for EXCLUDEFORIMPLIB modules; re-open
1571         fresh BFDs for any found and link into import lib archive chain.
1572         * pe-dll.h (exclude_type):  Add new enumerated type to replace magic
1573         constants previously used for exclude_list_struct type member.
1574         (pe_dll_add_excludes, pe_dll_generate_implib):  Update prototypes.
1575         * pep-dll.h (exclude_type, pe_dll_add_excludes,
1576         pe_dll_generate_implib):  Likewise to all the above.
1577         * emultempl/pe.em (OPTION_EXCLUDE_MODULES_FOR_IMPLIB):  Define new
1578         getopts long option code for new --exclude-modules-for-implib option.
1579         (gld${EMULATION_NAME}_add_options):  Add new entry to xtra_long[].
1580         (gld_${EMULATION_NAME}_list_options):  List usage for it.
1581         (gld${EMULATION_NAME}_handle_option):  Use exclude_type enumerated
1582         values when calling pe_dll_add_excludes, and handle EXCLUDEFORIMPLIB.
1583         (gld_${EMULATION_NAME}_finish):  Pass pointer to link_info when
1584         calling pe_dll_generate_implib.
1585         * emultempl/pep.em (options):  Define new enumerated value for getopts
1586         long option code for new --exclude-modules-for-implib option.
1587         (gld${EMULATION_NAME}_add_options, gld_${EMULATION_NAME}_list_options,
1588         gld${EMULATION_NAME}_handle_option, gld_${EMULATION_NAME}_finish):
1589         Again, likewise to all the above.
1590
1591 2009-01-03  Dave Korn  <dave.korn.cygwin@gmail.com>
1592
1593         * pe-dll.c (autofilter_liblist):  Add entry for shared libgcc.
1594         (libnamencmp):  New function.
1595         (auto_export):  Use it in place of strncmp when filtering libraries.
1596
1597 For older changes see ChangeLog-2008
1598 \f
1599 Local Variables:
1600 mode: change-log
1601 left-margin: 8
1602 fill-column: 74
1603 version-control: never
1604 End: