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