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