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