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