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