OSDN Git Service

Regenerate tree using Autoconf 2.64 and Automake 1.11.
[pf3gnuchains/pf3gnuchains3x.git] / ld / ChangeLog
1 2009-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2
3         * Makefile.in: Regenerate.
4         * aclocal.m4: Likewise.
5         * config.in: Likewise.
6         * configure: Likewise.
7
8 2009-08-21  Richard Guenther  <rguenther@suse.de>
9
10         * scripttempl/elf.sc: Discard sections with .gnu.lto_ prefix.
11
12 2009-08-12  Tristan Gingold  <gingold@adacore.com>
13
14         * ld.h (fat_user_section_struct): Add map_symbol_def_count field.
15         * ldlang.c (hash_entry_addr_cmp): New function.
16         (print_all_symbols): Sort the symbols by address before printing them.
17
18 2009-08-10  Alan Modra  <amodra@bigpond.net.au>
19
20         PR 10474
21         * ldemul.c (after_allocation_default): Run lang_relax_sections.
22         * ldlang.h (lang_relax_sections): Declare.
23         * ldlang.c (relax_sections): Delete.
24         (lang_relax_sections): New function.
25         (lang_process): Don't relax directly from here.
26         * emultempl/alphaelf.em (alpha_finish): Call finish_default.
27         * emultempl/armelf.em (arm_elf_after_allocation): Delete.  Move body..
28         (gld${EMULATION_NAME}_finish): ..to here.  Move existing code..
29         (gld${EMULATION_NAME}_after_allocation): ..to here.  New function.
30         (LDEMUL_AFTER_ALLOCATION): Update.
31         * emultempl/avrelf.em (avr_elf_finish, LDEMUL_FINISH): Delete.
32         (avr_elf_after_allocation): New function.
33         (LDEMUL_AFTER_ALLOCATION): Define.
34         * emultempl/elf-generic.em (gld${EMULATION_NAME}_map_segments): Call
35         lang_relax_sections.
36         * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Delete.  Move..
37         (gld${EMULATION_NAME}_after_allocation): ..code to here.  New function.
38         (LDEMUL_AFTER_ALLOCATION, LDEMUL_FINISH): Update.
39         * emultempl/genelf.em (gld${EMULATION_NAME}_finish): Delete.  Move..
40         (gld${EMULATION_NAME}_after_allocation): ..code to here.  New function.
41         (LDEMUL_FINISH): Delete.
42         (LDEMUL_AFTER_ALLOCATION): Define.
43         * emultempl/hppaelf.em (gld${EMULATION_NAME}_finish): Delete.  Move..
44         (gld${EMULATION_NAME}_after_allocation): ..to here.  New function.
45         (LDEMUL_FINISH): Delete.
46         (LDEMUL_AFTER_ALLOCATION): Define.
47         * emultempl/m68hc1xelf.em (m68hc11elf_finish): Delete.  Move..
48         (m68hc11elf_after_allocation): ..to here.  New function.
49         (LDEMUL_FINISH): Delete.
50         (LDEMUL_AFTER_ALLOCATION): Define.
51         * emultempl/m68kelf.em (m68k_elf_after_allocation): Call
52         gld${EMULATION_NAME}_after_allocation.
53         * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Call
54         gld${EMULATION_NAME}_after_allocation.
55         * emultempl/mmo.em (mmo_finish): Delete.  Move body..
56         (gld${EMULATION_NAME}_after_allocation): ..to here.  New function.
57         (LDEMUL_FINISH): Define.
58         * emultempl/ppc64elf.em (ppc_layout_sections_again): Set elf_gp.
59         (gld${EMULATION_NAME}_finish): Move code sizing sections..
60         (gld${EMULATION_NAME}_after_allocation): ..to here.
61         * emultempl/sh64elf.em (sh64_elf_${EMULATION_NAME}_after_allocation):
62         Call gld${EMULATION_NAME}_after_allocation.
63         * emultempl/spuelf.em (gld${EMULATION_NAME}_finish): Delete
64         bfd_elf_discard_info and map_segments call.
65
66 2009-08-06  Michael Eager <eager@eagercon.com>
67
68         * Makefile.am: Add eelf32mb_linux.o, eelf32microblaze.o to 
69         ALL_EMULATIONS, targets.
70         * Makefile.in: Regenerate.
71         * configure.tgt: Add microblaze*-linux*, microblaze* targets.
72         * emulparams/elf32mb_linux.sh: New.
73         * emulparams/elf32microblaze.sh. New.
74         * scripttempl/elfmicroblaze.sc: New. 
75
76 2009-08-05  Trevor Smigiel  <Trevor_Smigiel@playstation.sony.com>
77
78         * emulparams/elf32_spu.sh (OTHER_READONLY_SECTIONS): Add .fixup
79         section and __fixup_start symbol.
80         * emultempl/spuelf.em (params): Initialize emit_fixups member.
81         (spu_before_allocation): Call spu_elf_size_sections.
82         (OPTION_SPU_EMIT_FIXUPS): Define.
83         (PARSE_AND_LIST_LONGOPTS): Add --emit-fixups.
84         (PARSE_AND_LIST_ARGS_CASES): Handle --emit-fixups.
85         * ld.texinfo (--emit-fixups): Document.
86
87 2009-08-04  Alan Modra  <amodra@bigpond.net.au>
88
89         PR 10474
90         * emultempl/ppc32elf.em (ppc_before_allocation): Test rawsize,
91         not size, after lang_reset_memory_regions.
92
93 2009-07-30  Alan Modra  <amodra@bigpond.net.au>
94
95         * emulparams/elf32ppc.sh (PLT): Don't include ".iplt".
96         * emulparams/elf_i386.sh (IREL_IN_PLT): Define.
97         * emulparams/elf_x86_64.sh (IREL_IN_PLT): Define.
98         * scripttempl/elf.sc: Create separate .iplt and .rela.iplt sections
99         when !IREL_IN_PLT.
100
101 2009-07-29  Hans-Peter Nilsson  <hp@bitrange.com>
102
103         * scripttempl/mmo.sc: For relocateable links, set $OUTPUT_FORMAT to
104         the new $RELOCATEABLE_OUTPUT_FORMAT, if set.
105         (OUTPUT_FORMAT): Use the variable $OUTPUT_FORMAT.
106         (ENTRY): Don't emit for relocateable links.
107         (/DISCARD/): Don't discard .gnu.warning.* for relocateable links.
108         * emulparams/mmo.sh (RELOCATEABLE_OUTPUT_FORMAT): Set, to
109         elf64-mmix.
110         * emulparams/elf64mmix.sh (OTHER_TEXT_SECTIONS): Empty, don't
111         provide "Main" or set "_start.", for relocateable links.
112
113 2009-07-27  Nick Clifton  <nickc@redhat.com>
114
115         * (po/fi.po): Updated Finnish translation.
116
117 2009-07-25  H.J. Lu  <hongjiu.lu@intel.com>
118
119         * configure.tgt (targ64_extra_emuls): Add elf_l1om if elf_x86_64
120         is supported.  Add elf_l1om_fbsd if elf_x86_64_fbsd is supported.
121         (targ_extra_emuls): Likewise.
122
123         * Makefile.am (ALL_64_EMULATIONS): Add eelf_l1om.o and
124         eelf_l1om_fbsd.o
125         (eelf_l1om.c): New.
126         (eelf_l1om_fbsd.c): Likewise.
127         * Makefile.in: Regenerated.
128
129         * emulparams/elf_l1om.sh: New.
130         * emulparams/elf_l1om_fbsd.sh: Likewise.
131
132 2009-07-23  Ulrich Drepper  <drepper@redhat.com>
133
134         * NEWS: Mention the linker's support for symbols with a binding of
135         STB_GNU_UNIQUE.
136
137 2009-07-22  H.J. Lu  <hongjiu.lu@intel.com>
138
139         PR ld/10429
140         * ldlang.c (insert_os_after): Tie assignments to non-alloc
141         output sections if there is no-input section.
142
143 2009-07-11  Alan Modra  <amodra@bigpond.net.au>
144
145         * ldlang.c (insert_os_after): Don't tie assignments to non-alloc
146         output sections.
147
148 2009-07-10  Alan Modra  <amodra@bigpond.net.au>
149
150         * emultempl/ppc32elf.em (ppc_before_allocation): Turn on
151         linker relaxation if it might be necessary.
152
153 2009-07-10  Alan Modra  <amodra@bigpond.net.au>
154
155         * emulparams/elf32ppc.sh (GOTPLT, PLT): Handle .iplt.
156
157 2009-07-06  Matthias Klose <doko@ubuntu.com>
158
159         * ld.texinfo: Fix typo.
160
161 2009-07-03  Tristan Gingold  <gingold@adacore.com>
162
163         * scripttempl/pep.sc: Put .eh_frame in its own section.
164         * scripttempl/pe.sc: Ditto.
165         
166 2009-06-26  Kai Tietz  <kai.tietz@onevision.com>
167
168         * scripttempl/pe.sc (.debug_pubtypes): Added section rule.
169         * scripttempl/pep.sc: Likewise.
170
171 2009-06-25  Tristan Gingold  <gingold@adacore.com>
172
173         * ldlang.c (print_input_section): Add is_discarded parameter.  Adjust
174         prototype.
175         (lang_map): Print the size of discarded sections.
176         (print_statement): Adjust call to print_input_section.
177
178 2009-06-18  Dave Korn  <dave.korn.cygwin@gmail.com>
179
180         Merge cegcc and mingw32ce target name changes from CeGCC project:
181
182         2008-09-24  Pedro Alves  <pedroalves@users.sourceforge.net>
183
184         * configure.tgt (arm*-*-cegcc*): Set LIB_PATH to
185         ${tooldir}/lib/w32api.
186
187         2007-12-25  Pedro Alves  <pedro_alves@portugalmail.pt>
188
189         * configure.tgt: Add arm*-*-cegcc* target.
190
191         2007-12-17  Pedro Alves  <pedro_alves@portugalmail.pt>
192
193         * configure.tgt: Add arm-*-mingw32ce* target.
194
195 2009-06-10  Philip Blundell  <philb@gnu.org>
196
197         * emultempl/armelf.em (gld${EMULATION_NAME}_finish): Avoid crash
198         if section has no ELF data.
199
200 2009-06-06  H.J. Lu  <hongjiu.lu@intel.com>
201
202         * scripttempl/elf.sc: Add .rel.ifunc and .rela.ifunc.
203
204 2009-06-05  H.J. Lu  <hongjiu.lu@intel.com>
205
206         * scripttempl/elf.sc: Remove .rel.ifunc.dyn and .rela.ifunc.dyn.
207
208 2009-06-04  Alan Modra  <amodra@bigpond.net.au>
209
210         * dep-in.sed: Don't use \n in replacement part of s command.
211         * Makefile.am (DEP1): LC_ALL for uniq.
212         * Makefile.in: Regenerate.
213
214 2009-06-01  H.J. Lu  <hongjiu.lu@intel.com>
215
216         * scripttempl/elf.sc (PLT): Add "*(.iplt)".
217         (GOT): Add "*(.igot.plt)a" and "*(.igot)".
218         (GOTPLT): Add "*(.igot)".
219         (__rel_iplt_start): New.
220         (__rel_iplt_end): Likewise.
221         (__rela_iplt_start): Likewise.
222         (__rela_iplt_end): Likewise.
223
224 2009-05-27  Dave Korn  <dave.korn.cygwin@gmail.com>
225
226         * deffilep.y (%union):  Add new string-type semantic value 'digits'.
227         (%token):  Remove NUMBER as token, add DIGITS.
228         (%type):  Add NUMBER as type.  Add new id types anylang_id, opt_id.
229         (ALIGNCOMM):  Parse an anylang_id instead of a plain ID.
230         (anylang_id):  New production.
231         (opt_digits):  Likewise.
232         (opt_id):  Likewise.
233         (NUMBER):  Likewise.
234         (def_lex):  Return strings of digits in raw string form as DIGITS
235         token, instead of converting to numeric integer type.
236
237 2009-05-26  Nathan Sidwell  <nathan@codesourcery.com>
238
239         * ldmain.c (main): Don't reject --relax -r.
240         * ld.texinfo (PowerPC ELF32): Document behaviour of relaxing
241         partial links.
242
243 2009-05-26  Nick Clifton  <nickc@redhat.com>
244
245         * po/id.po: Updated Indonesian translation.
246         * po/ld.pot: Updated template file.
247
248 2009-05-26  Alan Modra  <amodra@bigpond.net.au>
249
250         * dep-in.sed: Output one filename per line with all lines having
251         continuation backslash.  Prefix first line with "A", following
252         lines with "B".
253         * Makefile.am (DEP): Don't use dep.sed here.
254         (DEP1): Run $MKDEP on single files, use dep.sed here on dependencies,
255         sort and uniq.
256         * Makefile.in: Regenerate.
257
258 2009-05-26  Alan Modra  <amodra@bigpond.net.au>
259
260         * ldlang.c (lang_check_section_addresses): Ignore non-alloc sections.
261
262 2009-05-22  Julian Brown  <julian@codesourcery.com>
263
264         * emultempl/armelf.em (fix_cortex_a8): New.
265         (arm_elf_before_allocation): Call bfd_elf32_arm_set_cortex_a8_fix.
266         (arm_elf_create_output_section_statements): Add fix_cortex_a8 to
267         bfd_elf32_arm_set_target_relocs.
268         (OPTION_FIX_CORTEX_A8, OPTION_NO_FIX_CORTEX_A8): New.
269         (PARSE_AND_LIST_LONGOPTS): Add [no-]fix-cortex-a8 options.
270         (PARSE_AND_LIST_OPTIONS): Add [no-]fix-cortex-a8 options.
271         (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_[NO_]FIX_CORTEX_A8.
272         * ld.texinfo (--[no-]fix-cortex-a8): Briefly document new options.
273
274 2009-05-22  Nathan Sidwell  <nathan@codesourcery.com>
275
276         * ldlang.c (lang_check_section_addresses): Ignore non-loadable
277         sections when checking for overlap.  Clarify error message
278         concerns load address.
279
280 2009-05-22  Alan Modra  <amodra@bigpond.net.au>
281
282         * Makefile.am: Run "make dep-am".
283         * Makefile.in: Regenerate.
284
285 2009-05-19  Dave Korn  <dave.korn.cygwin@gmail.com>
286
287         * NEWS:  Mention new feature.
288         * deffile.h (def_file_aligncomm):  Add new struct definition.
289         (def_file):  Add new def_file_aligncomm member.
290         * deffilep.y (%token):  Add new ALIGNCOMM token.
291         (command):  Add production rule for ALIGNCOMM.
292         (def_file_free):  Free any chained def_file_aligncomm structs.
293         (diropts[]):  Add entry for '-aligncomm' .drectve command.
294         (def_aligncomm):  New grammar function.
295         * ld.texinfo:  Document new feature.
296         * pe-dll.c (process_def_file):  Rename from this ...
297         (process_def_file_and_drectve):  ... to this, updating all callers,
298         and process any aligncomms chained to the def file after scanning
299         all .drectve sections.
300         (generate_edata):  Updated to match.
301         (pe_dll_build_sections):  Likewise.
302
303 2009-05-17  Aaron W. LaFramboise  <aaron98wiridge9@aaronwl.com>
304
305         * pe-dll.c (process_def_file): Do not create empty export table.
306
307 2009-05-15  Alan Modra  <amodra@bigpond.net.au>
308
309         * ldlang.c (lang_output_section_statement_lookup): Add function
310         comment.  Make "name" non-const.  Ensure duplicate entries use
311         the same string, allowing simple comparison in hash bucket loop.
312         Tweak constraint check.
313         (next_matching_output_section_statement): New function.
314         * ldlang.h (lang_output_section_statement_lookup): Update.
315         (next_matching_output_section_statement): Declare.
316         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
317         combine orphan sections when input sections flags differ in
318         alloc or load.
319         * emultempl/pe.em: Formatting throughout.
320         (gld${EMULATION_NAME}_place_orphan): As for elf32.em.
321         * emultempl/pep.em: Formatting throughout.
322         (gld${EMULATION_NAME}_place_orphan): As for elf32.em.
323
324 2009-05-14  Ulrich Weigand  <uweigand@de.ibm.com>
325
326         * emultempl/spuelf.em (PARSE_AND_LIST_ARGS_CASES): Always use
327         compact stubs with software i-cache.
328
329 2009-05-14  Alan Modra  <amodra@bigpond.net.au>
330
331         * emultempl/spuelf.em (spu_before_allocation): Call
332         spu_elf_place_overlay_data.
333
334 2009-05-14  Alan Modra  <amodra@bigpond.net.au>
335
336         * ldlang.c (lang_insert_orphan): Add __start_<section> symbol
337         assignment inside output section statement.  Ensure only one
338         set of symbols per output section.
339         * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Add non-
340         dollar sections before dollar sections.  Correct add_child
341         list insertion.
342         * emultempl/pep.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
343
344 2009-05-05  Paul Brook  <paul@codesourcery.com>
345
346         * emultempl/armelf.em (compare_output_sec_vma): New function.
347         (gld${EMULATION_NAME}_finish): Add exidx munging code.
348
349 2009-05-05  Anatoly Sokolov  <aesok@post.ru>
350
351         * scripttempl/avr.sc (MEMORY): Use DATA_ORIGIN.
352         * emulparams/avr1.sh (DATA_ORIGIN): Add.
353         * emulparams/avr2.sh (DATA_ORIGIN): Add.
354         * emulparams/avr25.sh (DATA_ORIGIN): Add.
355         * emulparams/avr3.sh (DATA_ORIGIN): Add.
356         * emulparams/avr31.sh (DATA_ORIGIN): Add.
357         * emulparams/avr35.sh (DATA_ORIGIN): Add.
358         * emulparams/avr4.sh (DATA_ORIGIN): Add.
359         * emulparams/avr5.sh (DATA_ORIGIN): Add.
360         * emulparams/avr51.sh (DATA_ORIGIN): Add.
361         (DATA_LENGTH): Update.
362         * emulparams/avr6.sh (DATA_ORIGIN): Add.
363         (DATA_LENGTH): Update.
364
365 2009-05-04  Dave Korn  <dave.korn.cygwin@gmail.com>
366
367         * NEWS:  Mention new feature.
368         * ld.texinfo (--version-script):  Document extent of PE support.
369         (WIN32):  Mention --version-script.  Extend auto-export description.
370         * pe-dll.c (process_def_file):  Use version script info to filter
371         symbols from auto-export.
372         * testsuite/ld-pe/vers-script-1.d:  New file.
373         * testsuite/ld-pe/vers-script-2.d:  New file.
374         * testsuite/ld-pe/vers-script-3.d:  New file.
375         * testsuite/ld-pe/vers-script-4.d:  New file.
376         * testsuite/ld-pe/vers-script-1.ver:  New file.
377         * testsuite/ld-pe/vers-script-2.ver:  New file.
378         * testsuite/ld-pe/vers-script-3.ver:  New file.
379         * testsuite/ld-pe/vers-script-4.ver:  New file.
380         * testsuite/ld-pe/vers-script-dll.c:  New file.
381         * testsuite/ld-pe/vers-script.exp:  New test script.
382
383 2009-05-01  Nathan Sidwell  <nathan@codesourcery.com>
384
385         * emulparams/vxworks.sh (TEXT_START_ADDR): Override.
386
387 2009-04-30  Nick Clifton  <nickc@redhat.com>
388
389         * NEWS: Mention support for IFUNC symbols.
390
391 2009-04-29  Anthony Green  <green@moxielogic.com>
392
393         * emulparams/elf32moxie.sh (STACK_ADDR): Move default stack
394         position out to accommodate larger programs.
395
396 2009-04-29  Chris Demetriou  <cgd@google.com>
397
398         * lexsup.c (option_values): Add OPTION_NO_EXPORT_DYNAMIC.
399         (ld_options): Likewise.
400         (parse_args): Likewise.
401         * ld.texinfo: Document --no-export-dynamic.
402         * NEWS: Mention --no-export-dynamic.
403
404 2009-04-29  Alan Modra  <amodra@bigpond.net.au>
405
406         * deffilep.y (STACKSIZE_K): Rename from STACKSIZE.
407
408 2009-04-25  Alan Modra  <amodra@bigpond.net.au>
409
410         PR 10061
411         * genscripts.sh: Don't pass $EMULATION_NAME as $CUSTOMIZER_SCRIPT
412         param.
413
414 2009-04-21  Daniel Jacobowitz  <dan@codesourcery.com>
415
416         * emultempl/armelf.em (bfd_for_interwork, arm_elf_after_open)
417         (arm_elf_set_bfd_for_interworking): Delete.
418         (arm_elf_before_allocation): Do not set the interworking BFD.
419         Move allocation inside not-dynamic block.
420         (arm_elf_create_output_section_statements): Create glue sections
421         and set the interworking BFD here.
422         (LDEMUL_AFTER_OPEN): Delete.
423
424 2009-04-16  Richard Sandiford  <r.sandiford@uk.ibm.com>
425
426         * ldlang.c (lang_one_common): Use bfd_define_common_symbol.
427
428 2009-04-15  Anthony Green  <green@moxielogic.com>
429
430         * configure.tgt: Add moxie support.
431         * Makefile.am: Add moxie files.
432         * Makefile.in: Rebuilt.
433         * emulparams/elf32moxie.sh: New file.
434         * scripttempl/moxie.sc: New file.
435
436 2009-04-15  Kazu Hirata  <kazu@codesourcery.com>
437
438         * ldlang.c: Do not include limits.h.
439
440 2009-04-14  Alan Modra  <amodra@bigpond.net.au>
441
442         PR ld/10047
443         * ldfile.c (find_scripts_dir): Use make_relative_prefix to find
444         ldscripts in build tree.  Don't repeat search for ../lib/ldscripts.
445
446 2009-04-13  H.J. Lu  <hongjiu.lu@intel.com>
447
448         * ldfile.c (ldfile_find_command_file): Revert the last change.
449
450 2009-04-11  H.J. Lu  <hongjiu.lu@intel.com>
451
452         PR ld/10047
453         * ldfile.c (ldfile_find_command_file): First try raw name.
454
455 2009-04-09  Nick Clifton  <nickc@redhat.com>
456
457         PR 9824
458         * ld.texinfo (Output Section Constraint): New node.  Documents the
459         ONLY_IF_RO and ONLY_IF_RW constraints.
460         (Symbolic Constants): New node.  Documents the CONSTANT operator.
461
462 2009-04-09  Thilo Fischer <thilo.fischer@uni-muenster.de>
463
464         * emultempl/spuelf.em (embedded_spu_file): Use pex_one in place
465         of fork/execvp.
466
467 2009-04-08  H.J. Lu  <hongjiu.lu@intel.com>
468
469         * lexsup.c (option_values): Add OPTION_WARN_ALTERNATE_EM.
470         (ld_options): Likewise.
471         (parse_args): Likewise.
472
473         * ld.texinfo: Document --warn-alternate-em.
474
475         * NEWS: Mention --warn-alternate-em.
476
477 2009-04-07  DJ Delorie  <dj@redhat.com>
478
479         * emulparams/elf32mep.sh: Change default endian to little.
480
481 2009-04-07  Nick Clifton  <nickc@redhat.com>
482
483         * ld.texinfo (Output Section Address): Note that specifying an
484         address for an output section will only change the location
485         counter if the output section is used.
486
487 2009-04-06  Kazu Hirata  <kazu@codesourcery.com>
488
489         * ldfile.c (ldfile_find_command_file): Initialize result.
490
491 2009-04-06  Kazu Hirata  <kazu@codesourcery.com>
492
493         * ld.texinfo (-L): Mention that -L options do not affect how ld
494         searches for a linker script unless -T option is specified.
495         * ldfile.c (ldfile_find_command_file): Append the path obtained
496         from the program name to the search path instead of
497         prepending. Add a new parameter "default_only". Restrict the
498         search to the default script location if the new parameter is
499         true.
500         (ldfile_open_command_file_1): New.
501         (ldfile_open_command_file): Call ldfile_open_command_file_1.
502         (ldfile_open_default_command_file): New.
503
504 2009-04-03  Nathan Sidwell  <nathan@codesourcery.com>
505
506         * ldlang.c (lang_leave_output_section_statement): Set lma_region
507         if it is not overridden and section is for the same vma region as
508         the previous section.
509
510 2009-04-02  Dave Korn  <dave.korn.cygwin@gmail.com>
511
512         PR ld/6744
513         * ld.texinfo (--export-dynamic):  Mention --export-all-symbols.
514         * emultempl/pe.em (gld_${EMULATION_NAME}_after_parse):  Issue
515         warning if --export-dynamic was passed on command-line.
516         * emultempl/pep.em (gld_${EMULATION_NAME}_after_parse):  Likewise.
517
518 2009-04-01  Richard Sandiford  <r.sandiford@uk.ibm.com>
519
520         * emultempl/aix.em (gld${EMULATION_NAME}_open_dynamic_archive): New
521         function.
522         (ld_${EMULATION_NAME}_emulation): Use it.
523
524 2009-03-20  H.J. Lu  <hongjiu.lu@intel.com>
525
526         PR ld/9970
527         * ldlang.c (lang_end): Warn missing entry symbol for -pie.
528
529 2009-03-19  Alan Modra  <amodra@bigpond.net.au>
530
531         * emultempl/spuelf.em (spu_before_allocation): Report errors from
532         spu_elf_find_overlays.
533
534 2009-03-18  H.J. Lu  <hongjiu.lu@intel.com>
535
536         PR ld/6766
537         * lexsup.c (parse_args): Call ldlang_add_undef for -e.
538
539 2009-03-18  Alan Modra  <amodra@bigpond.net.au>
540
541         * ld.h: Remove alloca handling.
542
543 2009-03-17  Alan Modra  <amodra@bigpond.net.au>
544
545         * emultempl/spu_icache.S: Add new entry to dummy handler.
546         * emultempl/spu_icache.o_c: Regenerate.
547         * emultempl/spuelf.em (params): Init new field.
548         (no_overlays): New static var.
549         (spu_before_allocation): Use it.
550         (OPTION_SPU_COMPACT_STUBS): Define.
551         (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add compact-stubs.
552         (PARSE_AND_LIST_ARGS_CASES): Handle compact-stubs.  Adjust no-overlays
553         handling.
554
555 2009-03-17  Alan Modra  <amodra@bigpond.net.au>
556
557         * configure.host (HOSTING_LIBS): Two dollars on shell variable
558         expansion to suit make.
559
560 2009-03-17  Alan Modra  <amodra@bigpond.net.au>
561
562         * configure.in: Invoke ACX_PROG_CMP_IGNORE_INITIAL.
563         * Makefile.am (check-DEJAGNU): Set DO_COMPARE.
564         * aclocal.m4: Regenerate.
565         * configure: Regenerate.
566         * Makefile.in: Regenerate.
567
568 2009-03-14  Richard Sandiford  <r.sandiford@uk.ibm.com>
569
570         * emultempl/aix.em (auto_export_flags): New variable.
571         (explicit_auto_export_flags): Likewise.
572         (OPTION_EXPALL, OPTION_EXPFULL): New enum values.
573         (OPTION_NOEXPALL, OPTION_NOEXPFULL): Likewise.
574         (gld${EMULATION_NAME}_add_options): Add -bexpall, -bexpfull,
575         -bnoexpall and -bnoexpfull.
576         (gld${EMULATION_NAME}_handle_option): Handle them.
577         (gld${EMULATION_NAME}_before_allocation): Update the call to
578         bfd_size_dynamic_sections.
579
580 2009-03-14  Richard Sandiford  <r.sandiford@uk.ibm.com>
581
582         * emultempl/aix.em (gld${EMULATION_NAME}_handle_option): Make
583         -berok and -bernotok control link_info.unresolved_syms_in_objects
584         and link_info.unresolved_syms_in_shared_libs instead of
585         force_make_executable.
586
587 2009-03-14  Richard Sandiford  <r.sandiford@uk.ibm.com>
588
589         * emultempl/aix.em (gld${EMULATION_NAME}_before_parse): Set
590         config.dynamic_link to TRUE.
591
592 2009-03-14  Richard Sandiford  <r.sandiford@uk.ibm.com>
593
594         * emultempl/aix.em (gld${EMULATION_NAME}_before_allocation): Mark
595         .text, .data and .bss output sections as SEC_KEEP.
596
597 2009-03-14  Richard Sandiford  <r.sandiford@uk.ibm.com>
598
599         * configure.tgt: Extend AIX 5 behavior to AIX 6 and above.
600
601 2009-03-14  Dave Korn  <dave.korn.cygwin@gmail.com>
602             Danny Smith  <dannysmith@users.sourceforge.net>
603
604         * emultmpl/pe.em (pe_dll_characteristics): New variable.
605         (OPTION_DYNAMIC_BASE, OPTION_FORCE_INTEGRITY, OPTION_NX_COMPAT,
606         OPTION_NO_ISOLATION. OPTION_NO_SEH, OPTION_NO_BIND,
607         OPTION_WDM_DRIVER, OPTION_TERMINAL_SERVER_AWARE):
608         New macros for options to set DllCharacteristics flag bits.
609         (gld${EMULATION_NAME}_add_options): Add dynamicbase, forceinteg,
610         nxcompat, no-isolation, no-seh, no-bind, wdmdriver, tsaware options.
611         (init): Add DllCharacteristics field.
612         (gld_${EMULATION_NAME}_list_options): List new options.
613         (gld${EMULATION_NAME}_handle_option): Handle new options.
614         * emultmpl/pep.em (pe_dll_characteristics): New variable.
615         (OPTION_DYNAMIC_BASE, OPTION_FORCE_INTEGRITY, OPTION_NX_COMPAT,
616         OPTION_NO_ISOLATION. OPTION_NO_SEH, OPTION_NO_BIND,
617         OPTION_WDM_DRIVER, OPTION_TERMINAL_SERVER_AWARE):
618         New macros for options to set DllCharacteristics flags.
619         (gld${EMULATION_NAME}_add_options): Add dynamicbase, forceinteg,
620         nxcompat,no-isolation, no-seh, no-bind, wdmdriver, tsaware options.
621         (init): Add DllCharacteristics field.
622         (gld_${EMULATION_NAME}_list_options): List new options.
623         (gld${EMULATION_NAME}_handle_option): Handle new options.
624         * ldtexinfo : Document dynamicbase, forceinteg, nxcompat,
625         no-isolation, no-seh, no-bind, wdmdriver, tsaware options.
626
627 2009-03-06  Nick Clifton  <nickc@redhat.com>
628
629         * po/es.po: Updated Spanish translation.
630
631 2009-03-03  Dave Korn  <dave.korn.cygwin@gmail.com>
632
633         * emultempl/pe.em (debug_section_p):  New bfd_map_over_sections hook.
634         (gld_${EMULATION_NAME}_after_open):  Use it to iterate all sections
635         of all input BFDs, looking for debug info.  Enable long section names
636         if any found.
637         * emultempl/pe.em (debug_section_p):  Likewise.
638         (gld_${EMULATION_NAME}_after_open):  Likewise.
639         * NEWS:  Retrospectively adjust news announcement.
640         * ld.texinfo:  Update documentation to mention new behaviour.
641
642 2009-03-03  Alan Modra  <amodra@bigpond.net.au>
643
644         * Makefile.am: Run "make dep-am".
645         * Makefile.in: Regenerate.
646
647 2009-03-02  Sebastian Huber  <sebastian.huber@embedded-brains.de>
648
649         * ldgram.y: Add support for REGION_ALIAS operator.
650         * ldlang.c: Likewise.
651         * ldlang.h: Likewise.
652         * ldlex.l: Likewise.
653         * NEWS: Mention the new feature.
654         * ld.texinfo: Document the new feature.
655
656 2009-03-02  Qinwei  <qinwei@sunnorth.com.cn>
657
658         * Makefile.am: Replace score elf emulation with score3 and score7
659         emulations.
660         * Makefile.in: Regenerate,
661         * NEWS: Mention support for Score7 architecture.
662         * configure.tgt: Add score7 emulation to score-elf target.
663         * emulparams/scoreelf.sh: Add score7 support.
664         * emultempl/scoreelf.em: Likewise.
665
666 2009-03-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
667
668         * configure.tgt: Only use elf64hppa target emulation for hpux.
669         * emulparams/elf64hppa.sh: Don't include hppa64linux.sh.
670         (SCRIPT_NAME): Use new script elf64hppa.
671         (SCRIPT_NAME, ELFSIZE, NO_REL_RELOCS, ARCH, MACHINE, ENTRY,
672         TEMPLATE_NAME, GENERATE_SHLIB_SCRIPT, OTHER_READONLY_SECTIONS,
673         OTHER_READWRITE_SECTIONS, OTHER_BSS_SECTIONS, OTHER_GOT_RELOC_SECTIONS,
674         DATA_START_SYMBOLS, OTHER_SYMBOLS, DATA_PLT, PLT_BEFORE_GOT,
675         TEXT_DYNAMIC): Define.
676         * emulparams/hppa64linux.sh: Adjust comments.
677         * scripttempl/elf64hppa.sc: New file.
678
679 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
680
681         * configure: Regenerate.
682
683 2009-02-27  Dave Korn  <dave.korn.cygwin@gmail.com>
684
685         * emultempl/pe.em (gld_${EMULATION_NAME}_before_parse):  Set
686         default state of auto-import flag based on $target.
687
688 2009-02-24  Joseph Myers  <joseph@codesourcery.com>
689
690         * ld.texinfo (ARM): Document changed meaning of --stub-group-size.
691         * emultempl/armelf.em (hook_in_stub): Insert after the input section.
692         (elf32_arm_add_stub_section): Update comment.
693         (PARSE_AND_LIST_OPTIONS): Update help for --stub-group-size.
694
695 2009-02-24  Sandra Loosemore  <sandra@codesourcery.com>
696
697         * ld.texinfo (Options): Correct typos in example.  Recommend
698         using joined forms of syntax for passing options with arguments 
699         from a driver.
700         (-a): Use consistent syntax for documenting option arguments.
701         Clean up indexing and markup.
702         (-A/--architecture): Likewise.
703         (-f/--auxiliary): Likewise.
704         (-F/--filter): Likewise.
705         (-fini): Likewise.
706         (-G/--gpsize): Likewise.
707         (-h/-soname):Likewise.
708         (-init): Likewise.
709         (-l/--library): Likewise.
710         (-L/--library-path): Likewise.
711         (-m): Likewise.
712         (--defsym): Likewise.
713         (-I/--dynamic-linker): Likewise.
714         (-Map): Likewise.
715         (--oformat): Likewise.
716         (--retain-symbols-file): Likewise.
717         (-rpath): Likewise.
718         (-rpath-link): Likewise.
719         (--sort-common): Likewise.
720         (--sort-section): Likewise.
721         (--split-by-file): Likewise.
722         (--split-by-reloc): Likewise.
723         (--sysroot): Likewise.
724         (--section-start): Likewise.
725         (-Tbss, -Tdata, -Ttext): Likewise.
726         (-Ttext-segment): Likewise.
727         (--version-script): Likewise.
728         (--wrap): Likewise.
729
730 2009-02-18  Dave Korn  <dave.korn.cygwin@gmail.com>
731
732         * ld.texinfo:  Update to mention long section name options.
733         * NEWS:  Mention new behaviour and command-line options.
734         * pe-dll.c (pe_use_coff_long_section_names):  New global variable.
735         (pe_output_file_set_long_section_names):  New function.
736         (pe_dll_build_sections):  Call it on output BFDs.
737         (pe_exe_build_sections):  Likewise.
738         (pe_dll_fill_sections):  Likewise.
739         (pe_exe_fill_sections):  Likewise.
740         * pe-dll.h (pe_use_coff_long_section_names):  Declare extern.
741         (pe_output_file_set_long_section_names):  Add prototype.
742         * pep-dll.c (pe_use_coff_long_section_names):  Define pep_ alias.
743         (pe_output_file_set_long_section_names):  Likewise.
744         * pep-dll.h (pep_use_coff_long_section_names):  Declare extern.
745         (pep_output_file_set_long_section_names):  Add prototype.
746         * pe.em (OPTION_ENABLE_LONG_SECTION_NAMES):  New getopt value macro.
747         (OPTION_DISABLE_LONG_SECTION_NAMES):  Likewise.
748         (gld${EMULATION_NAME}_add_options):  Add new options to xtra_long[].
749         (gld_${EMULATION_NAME}_list_options):  Describe them.
750         (gld${EMULATION_NAME}_handle_option):  Set or clear global
751         pe_use_coff_long_section_names flag when options recognised.
752         (gld_${EMULATION_NAME}_after_open):  En/disable long section names
753         for main output bfd by calling pe_output_file_set_long_section_names.
754         * pep.em (enum options):  Extend enum with new getopt option values.
755         (gld${EMULATION_NAME}_add_options):  Add new options to xtra_long[].
756         (gld_${EMULATION_NAME}_list_options):  Describe them.
757         (gld${EMULATION_NAME}_handle_option):  Set or clear global
758         pe_use_coff_long_section_names flag when options recognised.
759         (gld_${EMULATION_NAME}_after_open):  En/disable long section names
760         for main output bfd by calling pep_output_file_set_long_section_names.
761
762 2009-02-16  Dave Korn  <dave.korn.cygwin@gmail.com>
763
764         * emultempl/pe.em (gld_${EMULATION_NAME}_after_open):  Don't emit
765         inadvertent .reloc sections caused by refactoring accident.
766
767 2009-02-16  Alan Modra  <amodra@bigpond.net.au>
768
769         * ldlang.c (process_insert_statements): ASSERT that output section
770         statements are in order.
771
772 2009-02-16  Alan Modra  <amodra@bigpond.net.au>
773
774         * ldlang.c (push_stat_ptr, pop_stat_ptr): New functions.
775         (stat_save, stat_save_ptr): New variables.
776         (lang_insert_orphan): Use push_stat_ptr and pop_stat_ptr.
777         (load_symbols): Likewise.  Delete dead "bad_load" code.
778         (open_input_bfds): Warn on script containing output sections.
779         (lang_enter_output_section_statement): Use push_stat_ptr.
780         (lang_enter_group): Likewise.
781         (lang_leave_output_section_statement): Use pop_stat_ptr.
782         (lang_leave_group): Likewise.
783         * ldlang.h (push_stat_ptr, pop_stat_ptr): Declare.
784         * ldctor.c (ldctor_build_sets): Use push_stat_ptr and pop_stat_ptr.
785         * emultempl/beos.em (gld_${EMULATION_NAME}_set_symbols): Likewise.
786         * emultempl/pe.em (gld_${EMULATION_NAME}_set_symbols): Likewise.
787         * emultempl/pep.em (gld_${EMULATION_NAME}_set_symbols): Likewise.
788         * emultempl/spuelf.em (spu_place_special_section): Likewise.
789         * emultempl/xtensaelf.em (ld_xtensa_insert_page_offsets): Likewise.
790
791 2009-02-09  Nathan Sidwell  <nathan@codesourcery.com>
792
793         Missing piece of 2009-01-26 commit
794         * ldlang.c (lang_process): Don't consider relocatable flag when
795         checking for overlap.
796
797 2009-02-05  Joseph Myers  <joseph@codesourcery.com>
798
799         * emulparams/m68kelf.sh: Add newline at end of file.
800
801 2009-02-04  Nick Clifton  <nickc@redhat.com>
802
803         PR 9805
804         * ld.texinfo (--allow-shlib-undefined): Correct description of
805         default settings and tidy up the rest of the entry.
806
807 2009-02-04  Alan Modra  <amodra@bigpond.net.au>
808
809         * emultempl/spuelf.em (spu_after_open): Don't combine .text.ia.*
810         during relocatable link.
811
812 2009-02-03  Nick Clifton  <nickc@redhat.com>
813
814         PR 9797
815         * ld.texinfo (Constants): Document the base-encoding suffixes
816         supported in linker scripts.
817
818 2009-02-03  Alan Modra  <amodra@bigpond.net.au>
819
820         * NEWS: Mention --as-needed change.
821
822 2009-02-03  Carlos O'Donell  <carlos@codesourcery.com>
823
824         * configure.in: AC_SUBST pdfdir.
825         * Makefile.am: Add install-pdf, install-pdf-am,
826         and install-pdf-recursive targets. Define pdf__strip_dir.
827         * po/Make-in: Add install-pdf target.
828         * configure: Regenerate.
829         * Makefile.in: Regenerate.
830
831 2009-01-31  Alan Modra  <amodra@bigpond.net.au>
832
833         * ld.texinfo (--as-needed): Update.
834
835 2009-01-29  Andrew Jenner  <andrew@codesourcery.com>
836
837         * emultempl/armelf.em: Correct formatting of help text for
838         --no-enum-size-warning option.
839
840 2009-01-26  Nathan Sidwell  <nathan@codesourcery.com>
841
842         * lexsup.c (parse_args): Set check_section_addresses to 1 or 0.
843         * ld.h (args_type): Make check_section_addresses a char.
844         * ldmain.c (main): Default check_section_addresses to -1. Check it
845         for relocatable links.
846         * ld.texinfo (--check-sections): Update documentation.
847
848 2009-01-26  Kai Tietz  <kai.tietz@onevision.com>
849
850         * pe-dll.c (tmp_seq2): New static variable.
851         (make_singleton_name_imp): New.
852         (make_import_fixup_entry): Use for v2 the _imp_<name> symbol and
853         avoid duplicate import table generation for same symbol.
854         (pe_create_runtime_relocator_reference): Make reference for
855         64-bit 8 bytes.
856
857 2009-01-21  Alan Modra  <amodra@bigpond.net.au>
858
859         * emultempl/spuelf.em (params): Init new field.
860         (OPTION_SPU_NON_IA_TEXT): Define.
861         (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add --non-ia-text.
862         (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_SPU_NON_IA_TEXT.
863
864 2009-01-16  H.J. Lu  <hongjiu.lu@intel.com>
865
866         * lexsup.c (option_values): Add OPTION_TTEXT_SEGMENT.
867         (ld_options): Add -Ttext-segment.
868         (parse_args): Handle OPTION_TTEXT_SEGMENT.
869
870         * ld.texinfo: Document -Ttext-segment.
871
872         * NEWS: Mention -Ttext-segment.
873
874         * scripttempl/elf.sc (TEXT_START_ADDR): Use SEGMENT_START.
875         (SHLIB_TEXT_START_ADDR): Likewise.
876
877 2009-01-13  Alan Modra  <amodra@bigpond.net.au>
878
879         * emultempl/spu_icache.o_c: Regenerate.
880
881 2009-01-12  Alan Modra  <amodra@bigpond.net.au>
882
883         * emultempl/spuelf.em (params): Init new fields.
884         (num_lines_set, line_size_set, icache_mgr, icache_mgr_stream): New vars.
885         (spu_place_special_section): Adjust placement for soft-icache.  Pad
886         soft-icache section to a fixed size.  Clear addr_tree.
887         (spu_elf_load_ovl_mgr): Support soft-icache.  Map overlay manager
888         sections a little more intelligently.
889         (gld${EMULATION_NAME}_finish): Don't call spu_elf_build_stubs.
890         (OPTION_SPU_NUM_LINES): Rename from OPTION_SPU_NUM_REGIONS.
891         (OPTION_SPU_SOFT_ICACHE, OPTION_SPU_LINE_SIZE): Define.
892         (OPTION_SPU_LRLIVE): Define.
893         (PARSE_AND_LIST_LONGOPTS): Add new soft-icache options.
894         (PARSE_AND_LIST_OPTIONS): Likewise.
895         (PARSE_AND_LIST_ARGS_CASES): Handle them.
896         * emultempl/spu_icache.S: Dummy file.
897         * emultempl/spu_icache.o_c: Regenerate.
898         * Makefile.am (eelf32_spu.c): Depend on spu_icache.o_c.
899         (spu_icache.o_c): Add rule to build.
900         (CLEANFILES): Zap temp files.
901         (EXTRA_DIST): Add spu_icache.o_c.
902         * Makefile.in: Regenerate.
903
904 2009-01-08  Kai Tietz  <kai.tietz@onevision.com>
905
906         * pe.em (OPTION_USE_NUL_PREFIXED_IMPORT_TABLES): New.
907         (gld..._add_options): Add new option
908         --use-nul-prefixed-import-tables.
909         (gld..._handle_option): Likewise.
910         * pep.em: Same as for pe.em.
911         * ld.texinfo: Add new option documentation for
912         --use-nul-prefixed-import-tables.
913         * pe-dll.c (pe_use_nul_prefixed_import_tables): New.
914         (make_head): Make prefix leading zero prefix element for
915         idata$4 and idata$5 dependent to new flag.
916         (make_import_fixup_entry): Remove idata4/5 prefix.
917         * pe-dll.h (pe_use_nul_prefixed_import_tables): New.
918         * pep-dll.c (pe_use_nul_prefixed_import_tables): New.
919         * pep-dll.h (pep_use_nul_prefixed_import_tables): New.
920         * NEWS: Add new option.
921
922 2009-01-05  Kai Tietz  <kai.tietz@onevision.com>
923
924         * emultempl/pe.em: Prefix dollar characters to be outputed in
925         generated C file.
926         * emultempl/pep.em: Likewise.
927
928 2009-01-03  Dave Korn  <dave.korn.cygwin@gmail.com>
929
930         * NEWS:  Mention new feature --exclude-modules-for-implib.
931         * ld.texinfo:  Document new --exclude-modules-for-implib option.
932         * pe-dll.c (exclude_list_struct):  Change type member from int to
933         new enumeration exclude_type.
934         (pe_dll_add_excludes):  Accept exclude_type instead of int param.
935         (auto_export):  Replace magic constants by exclude_type values and
936         handle new choice EXCLUDEFORIMPLIB.
937         (pe_dll_generate_implib):  Accept a pointer to the link_info and
938         iterate all input BFDs looking for EXCLUDEFORIMPLIB modules; re-open
939         fresh BFDs for any found and link into import lib archive chain.
940         * pe-dll.h (exclude_type):  Add new enumerated type to replace magic
941         constants previously used for exclude_list_struct type member.
942         (pe_dll_add_excludes, pe_dll_generate_implib):  Update prototypes.
943         * pep-dll.h (exclude_type, pe_dll_add_excludes,
944         pe_dll_generate_implib):  Likewise to all the above.
945         * emultempl/pe.em (OPTION_EXCLUDE_MODULES_FOR_IMPLIB):  Define new
946         getopts long option code for new --exclude-modules-for-implib option.
947         (gld${EMULATION_NAME}_add_options):  Add new entry to xtra_long[].
948         (gld_${EMULATION_NAME}_list_options):  List usage for it.
949         (gld${EMULATION_NAME}_handle_option):  Use exclude_type enumerated
950         values when calling pe_dll_add_excludes, and handle EXCLUDEFORIMPLIB.
951         (gld_${EMULATION_NAME}_finish):  Pass pointer to link_info when
952         calling pe_dll_generate_implib.
953         * emultempl/pep.em (options):  Define new enumerated value for getopts
954         long option code for new --exclude-modules-for-implib option.
955         (gld${EMULATION_NAME}_add_options, gld_${EMULATION_NAME}_list_options,
956         gld${EMULATION_NAME}_handle_option, gld_${EMULATION_NAME}_finish):
957         Again, likewise to all the above.
958
959 2009-01-03  Dave Korn  <dave.korn.cygwin@gmail.com>
960
961         * pe-dll.c (autofilter_liblist):  Add entry for shared libgcc.
962         (libnamencmp):  New function.
963         (auto_export):  Use it in place of strncmp when filtering libraries.
964
965 For older changes see ChangeLog-2008
966 \f
967 Local Variables:
968 mode: change-log
969 left-margin: 8
970 fill-column: 74
971 version-control: never
972 End: