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