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