* po/vi.po: Updated Vietnamese translation.
[platform/upstream/binutils.git] / ld / ChangeLog
1 2008-09-29  Nick Clifton  <nickc@redhat.com>
2
3         * po/vi.po: Updated Vietnamese translation.
4
5 2008-09-25  Alan Modra  <amodra@bigpond.net.au>
6
7         * ldexp.c (fold_binary): Evaluate rhs when lhs not valid.
8
9 2008-09-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
10
11         * configure.in: Call AC_SYS_LARGEFILE.
12         * config.in: Regenerate.
13         * configure: Regenerate.
14
15 2008-09-09  Peter Rosin  <peda@lysator.liu.se>  (tiny change)
16
17         * emultempl/pe.em (pe_find_data_imports): Add trailing newline
18         to warning message.
19         * emultempl/pep.em (pep_find_data_imports): Likewise.
20
21 2008-09-08  H.J. Lu  <hongjiu.lu@intel.com>
22
23         2008-09-07  Alan Modra  <amodra@bigpond.net.au>
24
25         * emultempl/beos.em (gld${EMULATION_NAME}_place_orphan): Updated.
26         * emultempl/sunos.em (gld${EMULATION_NAME}_before_allocation): Likewise.
27
28 2008-09-08  Tristan Gingold  <gingold@adacore.com>
29
30         * NEWS: Add a marker for the 2.19 features.
31
32 2008-09-07  Alan Modra  <amodra@bigpond.net.au>
33
34         * ldlang.h (lang_output_section_find): Define.
35         (lang_output_section_statement_lookup): Update prototype.
36         * ldlang.c (lang_output_section_find,
37         lang_output_section_statement_lookup_1): Merge into..
38         (lang_output_section_statement_lookup): ..here.  Update all callers.
39         (process_insert_statements): Set constraint negative
40         for output section statements we might be inserting.  Make error
41         fatal on not finding insertion section.
42         (lang_output_section_find): Rather than comparing
43         output_section_statement.constraint against -1, test whether
44         it is postive.
45         (lang_output_section_statement_lookup_1): Likewise.
46         (output_prev_sec_find, strip_excluded_output_sections): Likewise.
47         (lang_record_phdrs): Likewise.
48         * emultempl/elf32.em (output_rel_find): Likewise.
49         * NEWS: Mention INSERT.
50
51 2008-08-26  Nick Clifton  <nickc@redhat.com>
52
53         PR 6727
54         * emultempl/armelf.em (arm_elf_set_bfd_for_interworking): Scan all
55         input sections in all input bfds and always select the last
56         suitable one, so that interworking stubs are always processed
57         after all other input sections.
58         (arm_elf_before_allocation): Remove redundant use of
59         output_has_begun flag.
60
61 2008-08-24  Alan Modra  <amodra@bigpond.net.au>
62
63         * configure.in: Update a number of obsolete autoconf macros.
64         * configure: Regenerate.
65         * aclocal.m4: Regenerate.
66
67 2008-08-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
68
69         PR ld/6833
70         * ldexp.c (fold_binary <DATA_SEGMENT_ALIGN>): Do not align
71         EXPLD.DATASEG.MIN_BASE.
72         * ldlang.c (lang_size_sections): New variable OLD_BASE.  Rename
73         OLD_MIN_BASE to MIN_BASE with the former alignment from `ldexp.c'.
74         Use OLD_BASE now for the minimal base check after the base decrease by
75         the maximum alignment found.
76
77 2008-08-17  Alan Modra  <amodra@bigpond.net.au>
78
79         PR 6478
80         * ldcref.c (check_local_sym_xref): Use bfd_generic_link_read_symbols.
81         Don't free symbol pointer array.
82         (check_refs): Likewise.
83         * ldmain.c (warning_callback): Likewise.
84         * ldmisc.c (vfinfo): Likewise.
85         * pe-dll.c (process_def_file): Likewise.
86         (pe_walk_relocs_of_symbol, generate_reloc): Likewise.
87         * emultempl/pe.em (pe_find_data_imports): Likewise.
88         (gld_${EMULATION_NAME}_after_open): Likewise.
89         * emultempl/pep.em (pep_find_data_imports): Likewise.
90         (gld_${EMULATION_NAME}_after_open): Likewise.
91         * ldlang.h (lang_input_statement_type): Delete asymbols, symbol_count,
92         passive_position, closed.
93         * ldlang.c (new_afile): Don't set asymbols and symbol_count.
94         * ldmain.c (add_archive_element): xcalloc lang_input_statement_type.
95
96 2008-08-15  Alan Modra  <amodra@bigpond.net.au>
97
98         PR 6526
99         * configure.in: Invoke AC_USE_SYSTEM_EXTENSIONS.
100         * Makefile.in: Regenerate.
101         * aclocal.m4: Regenerate.
102         * config.in: Regenerate.
103         * configure: Regenerate.
104
105 2008-08-09  Alan Modra  <amodra@bigpond.net.au>
106
107         PR 6753
108         * ldmain.c (check_for_scripts_dir, set_scripts_dir): Delete.
109         (main): Don't set_scripts_dir here.
110         * ldfile.c (check_for_scripts_dir, find_scripts_dir): New functions,
111         largely based on ldmain.c versions.
112         (ldfile_find_command_file): Set up search in script dir here without
113         affecting library search.
114         * Makefile.am (ldmain.o): No need to define SCRIPTDIR.
115         (ldfile.o): New rule.
116         * Makefile.in: Regenerate.
117
118 2008-08-08  Anatoly Sokolov  <aesok@post.ru>
119
120         * Makefile.am (ALL_EMULATIONS): Add eavr25.o, eavr31.o, eavr35.o,
121         and eavr51.o.
122         Add rules for eavr25.c, eavr31.c, eavr35.c, eavr51.c.
123         * Makefile.in: Regenerate.
124         * configure.tgt (avr-*-*, targ_extra_emuls): Add avr25, avr31, avr35
125         and avr51.
126         * emulparams/avr25.sh: New file.
127         * emulparams/avr31.sh: New file.
128         * emulparams/avr35.sh: New file.
129         * emulparams/avr51.sh: New file.
130
131 2008-08-08  Richard Sandiford  <rdsandiford@googlemail.com>
132             Daniel Jacobowitz  <dan@codesourcery.com>
133
134         * emulparams/elf32bmip.sh (GOT): Define, moving .got.plt to...
135         (OTHER_RELRO_SECTIONS, OTHER_READWRITE_SECTIONS): ...one of these
136         two variables.
137         * emulparams/elf32bmipn32-defs.sh: Likewise.
138         * emultempl/mipself.em: Include ldctor.h, elf/mips.h and elfxx-mips.h.
139         (is_mips_elf): New macro.
140         (stub_file, stub_bfd): New variables.
141         (hook_stub_info): New structure.
142         (hook_in_stub): New function.
143         (mips_add_stub_section): Likewise.
144         (mips_create_output_section_statements): Likewise.
145         (mips_before_allocation): Likewise.
146         (real_func): New variable.
147         (mips_for_each_input_file_wrapper): New function.
148         (mips_lang_for_each_input_file): Likewise.
149         (lang_for_each_input_file): Define.
150         (LDEMUL_BEFORE_ALLOCATION): Likewise.
151         (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Likewise.
152
153 2008-08-08  Alan Modra  <amodra@bigpond.net.au>
154
155         * ldfile.c (ldfile_open_file_search): Use concat.
156         (try_open): Don't use a fixed size pathname buffer.
157         (ldfile_find_command_file): Likewise.
158         * emultempl/elf32.em (gld${EMULATION_NAME}_open_dynamic_archive): If
159         using EXTRA_SHLIB_EXTENSION, don't open twice.
160
161 2008-08-04  Alan Modra  <amodra@bigpond.net.au>
162
163         * Makefile.am (POTFILES.in): Set LC_ALL=C.
164         * Makefile.in: Regenerate.
165         * po/POTFILES.in: Regenerate.
166
167 2008-08-03  Alan Modra  <amodra@bigpond.net.au>
168
169         * Makefile.am (spu_ovl.o): Merge rule into..
170         (spu_ovl.o_c): ..this one.  Only run cpp for spu target.
171         * Makefile.in: Regenerate.
172
173 2008-08-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
174
175         Include the spu_ovl ASCII form in the repository files.
176         * emultempl/spuelf.em: No longer use `bin2c', use now `spu_ovl.o_c'.
177         * Makefile.am (eelf32_spu.c): Depend now on `spu_ovl.o_c'.
178         ($(srcdir)/emultempl/spu_ovl.o_c): New target.
179         ($(srcdir)/emultempl/spu_ovl.o): Rename to...
180         (spu_ovl.o): ...this one.
181         * Makefile.in: Regenerate.
182         * emultempl/spu_ovl.o_c: New file.
183         * emultempl/spu_ovl.o: File removed.
184
185 2008-07-31  Takashi Ono  <t_ono@hkfreak.net>
186
187         * pe-dll.c (generate_relocs): Don't generate relocs for
188         undefined weak symbols.
189
190 2008-07-31  Jan Kratochvil  <jan.kratochvil@redhat.com>
191
192         * emultempl/spuelf.em: Abort on the missing required `spu_ovl.o'.
193
194 2008-07-30  Alan Modra  <amodra@bigpond.net.au>
195
196         * emultempl/pe.em, emultempl/pep.em: Silence gcc warnings.
197
198 2008-07-18  Joseph Myers  <joseph@codesourcery.com>
199
200         * ld.texinfo (--no-wchar-size-warning): Document new ARM option.
201         * emultempl/armelf.em (no_wchar_size_warning): New.
202         (arm_elf_create_output_section_statements): Pass
203         no_wchar_size_warning to arm_elf_create_output_section_statements.
204         (OPTION_NO_WCHAR_SIZE_WARNING): New.
205         (PARSE_AND_LIST_LONGOPTS): Add no-wchar-size-warning.
206         (PARSE_AND_LIST_OPTIONS): List --no-wchar-size-warning.
207         (PARSE_AND_LIST_ARGS_CASES): Handle --no-wchar-size-warning.
208
209 2008-07-15  Jie Zhang  <jie.zhang@analog.com>
210
211         * emulparams/elf32bfinfd.sh (OTHER_SECTIONS): Define.
212
213 2008-07-12  Craig Silverstein  <csilvers@google.com>
214
215         PR ld/6741
216         * configure.in: Check for, and include, libz.a if it is present.
217         * configure: Regenerate.
218         * config.in: Regenerate.
219
220 2008-07-12  Jie Zhang  <jie.zhang@analog.com>
221
222         Revert
223         2008-07-12  Jie Zhang  <jie.zhang@analog.com>
224         * Makefile.am (eelf32bfin.c): Depend on bfin.em.
225         (eelf32bfinfd.c): Likewise.
226         * Makefile.in: Regenerate.
227         * gen-doc.texi: Set Blackfin.
228         * ld.texinfo: Document --sep-code and Blackfin specific
229         options.
230         * ldmain.c (main): Initialize link_info.sep_code.
231         * lexsup.c (enum option_values): Add OPTION_SEP_CODE.
232         (ld_options[]): Add --sep-code.
233         (parse_args): Deal with --sep-code.
234         * emulparams/bfin.sh (EXTRA_EM_FILE): Define.
235         * emulparams/elf32bfinfd.sh (OTHER_SECTIONS): Define.
236         * emultempl/bfin.em: New file.
237
238 2008-07-12  Jie Zhang  <jie.zhang@analog.com>
239
240         * Makefile.am (eelf32bfin.c): Depend on bfin.em.
241         (eelf32bfinfd.c): Likewise.
242         * Makefile.in: Regenerate.
243         * gen-doc.texi: Set Blackfin.
244         * ld.texinfo: Document --sep-code and Blackfin specific
245         options.
246         * ldmain.c (main): Initialize link_info.sep_code.
247         * lexsup.c (enum option_values): Add OPTION_SEP_CODE.
248         (ld_options[]): Add --sep-code.
249         (parse_args): Deal with --sep-code.
250         * emulparams/bfin.sh (EXTRA_EM_FILE): Define.
251         * emulparams/elf32bfinfd.sh (OTHER_SECTIONS): Define.
252         * emultempl/bfin.em: New file.
253
254 2008-07-09  Danny Smith  <dannysmith@users.sourceforge.net>
255
256            *pe-dll.c (autofilter_symbolprefixlist): Excude all symbols
257            starting with ".".
258            Exclude "_IMPORT_DESCRIPTOR_".
259            (autofilter_symbolsuffixlist): Exclude "_NULL_THUNK_DATA".
260            (autofilter_symbollist_generic): Don't check for ".text".
261            Exclude "_NULL_IMPORT_DESCRIPTOR".
262            (autofilter_symbollist_i386): Likewise.
263
264 2008-07-07  Alan Modra  <amodra@bigpond.net.au>
265
266         * emultempl/armelf.em (elf32_arm_add_stub_section): Use
267         bfd_make_section_with_flags.
268         * emultempl/avrelf.em (avr_elf_create_output_section_statements):
269         Likewise.
270         * emultempl/hppaelf.em (hppaelf_add_stub_section): Likewise.
271         * emultempl/m68hc1xelf.em (m68hc11elf_add_stub_section): Likewise.
272         * emultempl/m68kcoff.em (gld${EMULATION_NAME}_after_open): Likewise.
273         * emultempl/m68kelf.em (m68k_elf_after_open): Likewise.
274         * emultempl/ppc64elf.em (ppc_add_stub_section): Likewise.
275         * emultempl/sh64elf.em (sh64_elf_${EMULATION_NAME}_before_allocation):
276         Likewise.
277
278 2008-07-06  Nathan Sidwell  <nathan@codesourcery.com>
279
280         * ld.texinfo (File Commands): Document that INCLUDE can be used in
281         several different places.
282         * ldgram.y (statement, memory_spec, section): Allow INCLUDE.
283         (memory, memory_spec_list): Simplify BNF
284         (memory_spec_list_opt): New rule.
285         * ldlex.l (INCLUDE): Recognize in EXPRESSION.
286
287 2008-06-20  Alan Modra  <amodra@bigpond.net.au>
288
289         * emultempl/spuelf.em (gld${EMULATION_NAME}_finish): Make "can not
290         build overlay stubs" a fatal error.
291
292 2008-06-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
293
294         * config.in: Regenerate.
295         * configure: Regenerate.
296
297 2008-06-17  Alan Modra  <amodra@bigpond.net.au>
298
299         * emultempl/spuelf.em (extra_stack_space): New variable.
300         (gld${EMULATION_NAME}_finish): Pass it to spu_elf_check_vma.
301         (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS,
302         PARSE_AND_LIST_ARGS_CASES): Handle --extra-stack-space.
303         * emultempl/spu_ovl.S: Mask interrupts during dma and update of
304         overlay manager structures.
305         * emultempl/spu_ovl.o: Regenerate.
306
307 2008-06-16  Hans-Peter Nilsson  <hp@bitrange.com>
308
309         * ld.texinfo (@node MMIX): For the __.MMIX.start. prefix, only
310         mention it as being special for global symbols.
311
312 2008-06-12  Nick Clifton  <nickc@redhat.com>
313
314         * ldlang.c (print_output_section_statement): If the output section
315         statement has an update_dot_tree expression, apply it to
316         print_dot.
317         (print_input_section): Do not update print_dot if it would move
318         print_dot backwards.
319         (lang_do_assignments_1): If the output section statement has an
320         update_dot_tree expression apply it to dot.
321
322 2008-06-07  Alan Modra  <amodra@bigpond.net.au>
323
324         * NEWS: Mention archive:path patterns.
325         * ld.texinfo: Likewise.
326         * ldlang.c: Formatting throughout.
327         (archive_path): Only assume "[A-Za-z]:" is a dos drive.
328         (input_statement_is_archive_path): New function, extracted from..
329         (walk_wild): ..here.
330         (walk_wild_consider_section): Match archive:path here too.
331         (init_map_userdata, sort_def_symbol): Convert to ISO C.
332         * ldmain.c (main): Set link_info.path_separator.
333         * emultempl/spuelf.em (choose_target): Don't set it here.
334
335 2008-06-06  Alan Modra  <amodra@bigpond.net.au>
336
337         * ldlang.c (name_match): New function.
338         (unique_section_p, walk_wild_consider_section): Use it here.
339         (walk_wild_section_general): And here.
340         (archive_path): New function.
341         (walk_wild): Match archive:path filespecs.
342         (open_input_bfds): Don't load archive:path files.
343         * emultempl/spuelf.em (choose_target): Set path_separator.
344         * emulparams/elf32_spu.sh: Add ._ea.* sections to ._ea output.
345
346 2008-06-04  Nick Clifton  <nickc@redhat.com>
347
348         * ld.texinfo (Orphan Sections): Fix texi typo.
349
350 2008-06-04  Chris Metcalf  <cmetcalf@tilera.com>
351
352         * lexsup.c (option_values): Add OPTION_NO_WARN_FATAL.
353         (ld_options): Add entry for --no-fatal-warnings.
354         (parse_args): Handle OPTION_NO_WARN_FATAL.
355         * ld.texinfo (Options): Document new command line switch.
356
357 2008-06-04  Alan Modra  <amodra@bigpond.net.au>
358
359         * emultempl/spuelf.em (spu_elf_relink): Correct --no-auto-overlay arg.
360
361 2008-06-02  Nathan Sidwell  <nathan@codesourcery.com>
362
363         * ldlang.c (closest_target_match): Skip generic big and little
364         endian ELF targets.
365
366 2008-05-31  Evandro Menezes  <evandro@yahoo.com>
367
368         PR ld/6430
369         * ld.h (enum sort_order): New.
370         * ldlang.c (lang_check: Fix comment.
371         (lang_common): Sort commons in ascending or descending order.
372         (lang_one_common): Likewise.
373         * lexsup.c (ld_options): Have --sort-common take an option
374         argument.
375         (parse_args): Handle argument to --sort-common.
376         * ld.texinfo (--sort-common): Document new optional argument.
377         * NEWS: Mention new feature.
378
379 2008-05-28  Christophe Lyon  <christophe.lyon@st.com>
380         
381         * ld.texinfo: State that farcalls stubs are supported for ARM-EABI
382         only.
383
384 2008-05-27  Kai Tietz  <kai.tietz@onevision.com>
385
386         * pe-dll.c (fill_edata): Make sure we calculate vma's in
387         type bfd_vma.
388         (generate_reloc): Likewise.
389         (pe_implied_import_dll): Likewise.
390
391 2008-05-21  Nick Clifton  <nickc@redhat.com>
392
393         PR ld/6519
394         * ld.texinfo (Orphan Sections): Mention that the linker will
395         provide start and stop symbols for orphaned sections if their
396         names are valid C identifiers.
397         * NEWS: Add an addendum to the description of the linker feature
398         for providing orphan section start and end symbols.
399
400 2008-05-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
401
402         * configure.in (--enable-got): New option.  Handle it.
403         * configure: Regenerate.
404         * config.in: Regenerate.
405         * emultempl/m68kelf.em: (got_handling_target_default): New shell
406         variable.
407         (GOT_HANDLING_TARGET_DEFAULT): New macro.
408         (GOT_HANDLING_DEFAULT): New macro.  Initialize it from configure
409         option if one was given.
410         (got_handling): New static variable.
411         (elf_m68k_create_output_section_statements): New static function
412         implementing hook.
413         (PARSE_AND_LIST_PROLOGUE): Define shell variable.
414         (OPTION_GOT): New macro.
415         (PARSE_AND_LIST_LONGOPTS): Define shell variable.  Specify
416         --got option.
417         (got): New linker option.
418         (PARSE_AND_LIST_OPTIONS): Define shell variable.  Print help string
419         for --got option.
420         (PARSE_AND_LIST_ARGS_CASES): Define shell variable.  Handle --got
421         option. 
422         * ld.texinfo: Document --got=<type> option.
423         * gen-doc.texi: Add M68K.
424         * NEWS: Mention the new feature.
425
426 2008-05-21  Evandro Menezes  <evandro@yahoo.com>
427
428         PR ld/6430
429         * ld.texinfo (--sort-common): Correct documentation to indicate
430         that sorting is performed by alignment, not size, biggest
431         alignment first.
432
433 2008-05-21  Christophe Lyon  <christophe.lyon@st.com>
434             Nick Clifton  <nickc@redhat.com>
435
436         * ld.texinfo (ARM): Document --stub-group-size=N option.
437         Move description of --pic-veneer option into the ARM section.
438         * NEWS: Mention the support for long function calls.
439
440 2008-05-15  Christophe Lyon  <christophe.lyon@st.com>
441         
442         * emultempl/armelf.em (build_section_lists): New function.
443         (stub_file): Define.
444         (need_laying_out): Define.
445         (group_size): Define.
446         (hook_stub_info): Define.
447         (hook_in_stub): New function.
448         (elf32_arm_add_stub_section): New function.
449         (gldarm_layout_sections_again): New function.
450         (gld${EMULATION_NAME}_finish): Replace arm_elf_finish(). Generate
451         stubs for long calls if needed.
452         (arm_elf_create_output_section_statements): create stub_file bfd.
453         (arm_for_each_input_file_wrapper): New function.
454         (arm_lang_for_each_input_file): New function.
455         (lang_for_each_input_file): Define.
456         (PARSE_AND_LIST_PROLOGUE): Add option token OPTION_STUBGROUP_SIZE.
457         (PARSE_AND_LIST_LONGOPTS): Add option stub-group-size.
458         (PARSE_AND_LIST_OPTIONS): Add option stub-group-size.
459         (PARSE_AND_LIST_ARGS_CASES): Add OPTION_STUBGROUP_SIZE case.
460         (LDEMUL_FINISH): Update to gld${EMULATION_NAME}_finish.
461         * lang.c (print_input_statement): Skip if bfd has
462         BFD_LINKER_CREATED.
463
464 2008-05-14  Alan Modra  <amodra@bigpond.net.au>
465
466         * Makefile.in: Regenerate.
467
468 2008-05-09  Kai Tietz  <kai.tietz@onevision.com>
469
470         ld/PR6502
471         * emultempl/pep.em (compute_dll_image_base): Use bfd_vma instead
472         of long and change return type to bfd_vma.
473         (definfo): Change type of address from long to bfd_vma.
474         (set_pep_value): Replace strtoul to strtoull.
475         (gld_${EMULATION_NAME}_set_symbols): use bfd_vma instead of long..
476         * pe-dll.c (pe_dll_generate_def_file): Use fprintf_vma to print
477         ImageBase.
478         (quick_reloc): Change argument address from int to bfd_size_type.
479
480 2008-05-08  Tom Tromey  <tromey@redhat.com>
481
482         * ld.texinfo (PowerPC64 ELF64): Fix typo.
483
484 2008-05-08  Alan Modra  <amodra@bigpond.net.au>
485
486         * elf32_spu.sh (OTHER_SECTIONS): Add "._ea".
487         * elf32ppc.sh: If building with spu support, put ".data.spehandle"
488         sections at the start of ".data" and provide a symbol to locate
489         the directory of embedded spe programs.
490
491 2008-05-08  Alan Modra  <amodra@bigpond.net.au>
492
493         * ldexp.c (exp_print_token): Add ABSOLUTE, MIN_K, ASSERT_K.  Correct
494         MAX_K.
495         (fold_binary <SEGMENT_START>): Set expld.result.section to
496         current section.  Expand comment.  Formatting.
497         (fold_name <DEFINED>): Set expld.result.section to current section.
498
499 2008-04-28  Nathan Sidwell  <nathan@codesourcery.com>
500
501         * ldlang.c (lang_size_sections_1): Don't check LMA overflow on
502         non-load sections.
503
504 2008-04-25  Michael Frysinger  <vapier@gentoo.org>
505
506         * configure.tgt (bfin-*-linux-uclibc*): Set targ_emul to elf32bfinfd
507         and targ_extra_emuls to elf32bfin.
508
509 2008-04-23  Paolo Bonzini  <bonzini@gnu.org>
510
511         * aclocal.m4: Regenerate.
512         * configure: Regenerate.
513
514 2008-04-03  Kai Tietz  <kai.tietz@onevision.com>
515
516         * scripttempl/pep.sc: Align start of symbol __CTOR_LIST__.
517
518 2008-04-08  Alan Modra  <amodra@bigpond.net.au>
519
520         * po/POTFILES.in: Regenerate.
521
522 2008-04-08  Alan Modra  <amodra@bigpond.net.au>
523
524         * emultempl/spuelf.em (auto_overlay, auto_overlay_file,
525         auto_overlay_fixed, auto_overlay_reserved, my_argc, my_argv): New vars.
526         (spu_before_allocation): Warn on --auto-overlay and existing overlays.
527         (struct tflist, clean_tmp): Move.
528         (new_tmp_file): New function, extracted from..
529         (embedded_spu_file): ..here.
530         (spu_elf_open_overlay_script, spu_elf_relink): New function.
531         (gld${EMULATION_NAME}_finish): Pass a bunch of --auto-overlay params.
532         Warn on --auto-overlay and zero local store.
533         (gld${EMULATION_NAME}_choose_target): New function to stash argv.
534         (OPTION_SPU_AUTO_OVERLAY, OPTION_SPU_AUTO_RELINK,
535         OPTION_SPU_OVERLAY_RODATA, OPTION_SPU_FIXED_SPACE,
536         OPTION_SPU_RESERVED_SPACE, OPTION_SPU_NO_AUTO_OVERLAY): Define.
537         (PARSE_AND_LIST_LONGOPTS): Add entries for new options.
538         (PARSE_AND_LIST_OPTIONS): Likewise.
539         (PARSE_AND_LIST_ARGS_CASES): Likewise.
540         (LDEMUL_CHOOSE_TARGET): Define.
541
542 2008-04-03  Kai Tietz  <kai.tietz@onevision.com>
543
544         PR ld/6026
545         * pe-dll.c (make_head): Fix iat and thunk addend offset.
546
547 2008-03-31  Nick Clifton  <nickc@redhat.com>
548
549         * po/fr.po: Updated French translation.
550
551 2008-03-24  Ian Lance Taylor  <iant@google.com>
552
553         The sha1 code is now in libiberty.
554         * sha1.c: Remove.
555         * sha1.h: Remove.
556         * Makefile.am (CFILES): Remove sha1.c.
557         (HFILES): Remove sha1.h.
558         (OFILES): Remove sha1.o.
559         (ld_new_SOURCES): Remove sha1.c.
560         (sha1.o): Remove target.
561         * Makefile.in: Rebuild.
562
563 2008-03-20  Alan Modra  <amodra@bigpond.net.au>
564
565         * emultempl/spuelf.em: Update calls to elf32-spu.c funcs.
566
567 2008-03-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
568
569         * aclocal.m4: Regenerate.
570         * configure: Likewise.
571         * Makefile.in: Likewise.
572
573 2008-03-14  Alan Modra  <amodra@bigpond.net.au>
574
575         * emultempl/spuelf.em (gld${EMULATION_NAME}_finish): Protect
576         spu_elf_build_stubs with is_spu_target.
577
578 2008-03-13  Alan Modra  <amodra@bigpond.net.au>
579
580         * Makefile.am: Run "make dep-am".
581         * Makefile.in: Regenerate.
582         * configure: Regenerate.
583
584 2008-03-06  Joseph Myers  <joseph@codesourcery.com>
585             Roman Zippel  <zippel@linux-m68k.org>
586
587         * emulparams/m68kelf.sh (GENERATE_PIE_SCRIPT): Define.
588         (COMMONPAGESIZE): Define.
589
590 2008-02-22  Nick Clifton  <nickc@redhat.com>
591
592         PR ld/5785
593         * ldlang.c (lang_size_sections_1): Honour the setting of an
594         lma_region even if there is no vma region set, or the vma region
595         is the same as the lma region.
596
597 2008-02-18  Nick Clifton  <nickc@redhat.com>
598
599         * scripttempl/armbpabi.sc (ENTRY): Do not define when performing a
600         relocatable link.
601         * scripttempl/elf32cr16.sc: Likewise.
602         * scripttempl/elf32cr16c.sc: Likewise.
603         * scripttempl/elf32crx.sc: Likewise.
604         * scripttempl/elf32sh-symbian.sc: Likewise.
605         * scripttempl/elf_chaos.sc: Likewise.
606         * scripttempl/elfd10v.sc: Likewise.
607         * scripttempl/elfi370.sc: Likewise.
608         * scripttempl/elfm68hc11.sc: Likewise.
609         * scripttempl/elfm68hc12.sc: Likewise.
610         * scripttempl/ip2k.sc: Likewise.
611         * scripttempl/iq2000.sc: Likewise.
612         * scripttempl/mep.sc: Likewise.
613         * scripttempl/v850.sc: Likewise.
614         * scripttempl/xstormy16.sc: Likewise.
615
616 2008-02-16  Alan Modra  <amodra@bigpond.net.au>
617
618         PR ld/5761
619         * ldexp.c (fold_name <LOADADDR>): Check result of evaluating
620         load_base before calling make_abs.
621
622 2008-02-15  Alan Modra  <amodra@bigpond.net.au>
623
624         * emultempl/alphaelf.em (alpha_after_open): Use elf_object_id.
625         * emultempl/hppaelf.em (hppaelf_create_output_section_statements):
626         Likewise.
627         * emultempl/ppc64elf.em (ppc_create_output_section_statements):
628         Likewise.
629         * emultempl/ppc32elf.em (is_ppc_elf32_vec): Delete.  Replace all
630         uses with..
631         (is_ppc_elf): ..this new macro.
632
633 2008-02-15  Alan Modra  <amodra@bigpond.net.au>
634
635         * ldmain.h (output_bfd): Delete.
636         * ldmain.c (output_bfd): Delete.
637         Replace all occurrences of output_bfd with link_info.output_bfd.
638         * ldcref.c: Likewise.
639         * ldctor.c: Likewise.
640         * ldemul.c: Likewise.
641         * ldexp.c: Likewise.
642         * ldfile.c: Likewise.
643         * ldlang.c: Likewise.
644         * ldmisc.c: Likewise.
645         * ldwrite.c: Likewise.
646         * pe-dll.c: Likewise.
647         * emultempl/aix.em: Likewise.
648         * emultempl/alphaelf.em: Likewise.
649         * emultempl/armcoff.em: Likewise.
650         * emultempl/armelf.em: Likewise.
651         * emultempl/avrelf.em: Likewise.
652         * emultempl/beos.em: Likewise.
653         * emultempl/elf-generic.em: Likewise.
654         * emultempl/elf32.em: Likewise.
655         * emultempl/gld960.em: Likewise.
656         * emultempl/hppaelf.em: Likewise.
657         * emultempl/irix.em: Likewise.
658         * emultempl/linux.em: Likewise.
659         * emultempl/lnk960.em: Likewise.
660         * emultempl/m68hc1xelf.em: Likewise.
661         * emultempl/mmix-elfnmmo.em: Likewise.
662         * emultempl/mmo.em: Likewise.
663         * emultempl/pe.em: Likewise.
664         * emultempl/pep.em: Likewise.
665         * emultempl/ppc32elf.em: Likewise.
666         * emultempl/ppc64elf.em: Likewise.
667         * emultempl/scoreelf.em: Likewise.
668         * emultempl/sh64elf.em: Likewise.
669         * emultempl/spuelf.em: Likewise.
670         * emultempl/sunos.em: Likewise.
671         * emultempl/vanilla.em: Likewise.
672         * emultempl/vxworks.em: Likewise.
673         * emultempl/xtensaelf.em: Likewise.
674         * emultempl/z80.em: Likewise.
675         * ldlang.c (open_output): Don't return output, instead write
676         link_info_output_bfd directly.
677         * emultempl/alphaelf.em: Replace occurrences of link_info.hash->creator
678         with link_info.output_bfd->xvec.
679         * emultempl/hppaelf.em: Likewise.
680         * emultempl/ppc32elf.em: Likewise.
681         * emultempl/ppc64elf.em: Likewise.
682         * emultempl/spuelf.em: Likewise.
683
684 2008-02-07  Alan Modra  <amodra@bigpond.net.au>
685
686         * ldlang.c (new_afile): Don't pass unadorned NULL to concat.
687         * ldfile.c (ldfile_add_library_path): Likewise.
688         * emultempl/elf32.em (check_ld_elf_hints, check_ld_so_conf): Likewise.
689         * emultempl/lnk960.em (lnk960_before_parse): Likewise.
690         * emultempl/spuelf.em (embedded_spu_file): Likewise.
691
692 2008-02-07  Alan Modra  <amodra@bigpond.net.au>
693
694         * emultempl/spu_ovl.S: Use low bit of _ovly_table.size as
695         a "present" bit rather than low bit of .buf.  Correct indexing
696         into _ovly_buf_table.  Use relative loads and stores to access
697         overlay manager local vars.
698         * emultempl/spu_ovl.o: Regenerate.
699
700 2008-02-04  H.J. Lu  <hongjiu.lu@intel.com>
701
702         PR 5715
703         * configure: Regenerated.
704
705 2008-01-31  Marc Gauthier  <marc@tensilica.com>
706
707         * configure.tgt (xtensa*-*-*): Recognize processor variants.
708
709 2008-01-28  Fabian Groffen  <grobian@gentoo.org>
710
711         * configure.tgt (x86_64-*-solaris2): Add support for this target.
712
713 2008-01-28  Vincent Riviere  <vincent.riviere@freesbee.fr>
714
715         PR ld/5652
716         * genscripts.sh: Check for the existence of BASH_LINENO not just
717         the BASH shell before generating line numbers in the emulation
718         file.
719
720 2008-01-28  Alan Modra  <amodra@bigpond.net.au>
721
722         * emultempl/spu_ovl.S: Rewrite.
723         * emultempl/spu_ovl.o: Regenerate.
724         * emultempl/spuelf.em (toe): Delete.
725         (spu_place_special_section): Add param to control section placement.
726         Adjust callers.
727         (spu_elf_load_ovl_mgr): Adjust for struct _spu_elf_section_data
728         changes.
729         (spu_before_allocation): Adjust spu_elf_size_stubs call.
730         (gld${EMULATION_NAME}_finish): Adjust spu_elf_build_stubs call.
731
732 2008-01-25  H.J. Lu  <hongjiu.lu@intel.com>
733
734         PR ld/5670
735         * ldlang.c (process_insert_statements): Silence gcc 4.1 alias
736         warning.
737
738 2008-01-25  Alan Modra  <amodra@bigpond.net.au>
739
740         * ld.texinfo (INSERT): Describe.
741         * ldgram.y (ldgram_in_script, ldgram_had_equals): Delete.
742         (INSERT_K, AFTER, BEFORE): Add as tokens.
743         (ifile_p1): Handle INSERT statements.
744         (saved_script_handle, force_make_executable): Move to..
745         * ldmain.c: ..here.
746         (previous_script_handle): New global var.
747         * ldmain.h (saved_script_handle, force_make_executable): Declare.
748         (previous_script_handle): Likewise.
749         * ldlex.l (INSERT_K, AFTER, BEFORE): Add tokens.
750         * lexsup.c (parge_args <-T>): Set previous_script_handle.
751         * ldlang.c (lang_for_each_statement_worker): Handle insert statement.
752         (map_input_to_output_sections, print_statement): Likewise.
753         (lang_size_sections_1, lang_do_assignments_1): Likewise.
754         (insert_os_after): New function, extracted from..
755         (lang_insert_orphan): ..here.
756         (process_insert_statements): New function.
757         (lang_process): Call it.
758         (lang_add_insert): New function.
759         * ldlang.h (lang_insert_statement_enum): New.
760         (lang_insert_statement_type): New.
761         (lang_statement_union_type): Add insert_statement.
762         (lang_add_insert): Declare.
763
764 2008-01-18  Bob Wilson  <bob.wilson@acm.org>
765
766         * scripttempl/elfxtensa.sc: Merge ENTRY and .note.gnu.build-id
767         changes from elf.sc.
768
769 2008-01-16  Alan Modra  <amodra@bigpond.net.au>
770
771         * ldlang.c (lang_size_sections_1): Simplify SEC_NEVER_LOAD test.
772
773 2008-01-16  Alan Modra  <amodra@bigpond.net.au>
774
775         * ldlang.h (lang_afile_asection_pair_statement_enum): Delete.
776         (lang_afile_asection_pair_statement_type): Delete.
777         (lang_statement_union_type): Delete afile_asection_pair_statement.
778         * ldlang.c (lang_insert_orphan): Delete case handling the above.
779         (map_input_to_output_sections, print_statement): Likewise.
780
781 2008-01-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
782
783         * emulparams/shlelf_linux.sh (DATA_START_SYMBOLS): Use PROVIDE
784         with __data_start.
785         * emulparams/shelf_nbsd.sh (DATA_START_SYMBOLS): Likewise.
786
787 2008-01-15  Alan Modra  <amodra@bigpond.net.au>
788
789         PR 5604
790         * ldlang.c (lang_gc_sections): Move code to set SEC_KEEP on entry
791         syms to _bfd_elf_gc_keep.
792         * emultempl/ppc64elf.em (ppc_before_allocation): Don't call
793         ppc64_elf_edit_opd if no_opd_opt.
794
795 2008-01-11  Tristan Gingold  <gingold@adacore.com>
796             Eric Botcazou  <ebotcazou@adacore.com>
797
798         * ldlang.c (lang_end): Warns if the entry point is not found when
799         --gc-sections.
800         Emit an error if no root is specified when --gc-sections -r.
801         * ld.texinfo (Options): Document that --gc-sections is compatible
802         with -r and -q.
803         * ldmain.c (main): Do not error out if -r and --gc-sections.
804         * scripttempl/elf.sc: Emit ENTRY command only if relocating.
805
806 2008-01-10  Daniel Jacobowitz  <drow@sources.redhat.com>
807
808         PR ld/5533
809         * ldlang.c (lang_end): Issue a warning for a missing start symbol
810         of a shared library if the symbol was specified on the command
811         line.
812
813 2008-01-10  Alan Modra  <amodra@bigpond.net.au>
814
815         * ld.texinfo (--gc-sections): Describe linker behaviour.
816
817 For older changes see ChangeLog-2007
818 \f
819 Local Variables:
820 mode: change-log
821 left-margin: 8
822 fill-column: 74
823 version-control: never
824 End: