OSDN Git Service

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