OSDN Git Service

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