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