OSDN Git Service

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