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