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