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