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