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