OSDN Git Service

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