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