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